Rotativa.AspNetCore icon indicating copy to clipboard operation
Rotativa.AspNetCore copied to clipboard

Setup error: "The name 'RotativaConfiguration' does not exist in the current context"

Open mikeaxle opened this issue 7 years ago • 3 comments

I keep getting the error:

Error CS0103: The name 'RotativaConfiguration' does not exist in the current context (CS0103)

I've followed steps from several tutorials but keep ending up with this error after I add in this to the Startup.cs:

RotativaConfiguration.Setup(env);

I am using Visual Studio Mac Community, in case this makes any difference

mikeaxle avatar Jul 17 '18 10:07 mikeaxle

Are you adding this using?

using Rotativa.AspNetCore;

or alternatively, just do:

Rotativa.AspNetCore.RotativaConfiguration.Setup(env);

Does this fix it?

webgio avatar Jul 17 '18 13:07 webgio

@webgio this using Rotativa.AspNetCore; is not being recognized as a package, but this using Rotativa.NetCore; is, and there is no method there called RotativaConfiguration, the error checking says I may be missing a reference? not so sure what to do here... no one else seems to have this issue

mikeaxle avatar Jul 17 '18 19:07 mikeaxle

I do have tha same issue. Did you solve your issue?

larsjonsson70 avatar Feb 03 '20 13:02 larsjonsson70