global.asax cannot find class in App_Code

G

Guest

I'll make this quick and easy. I have a global.asax in the root of wwwroot.

I have a .cs in an App_code directory inside a web app folder in wwwroot

I get this error and I don't know why:

mpiler Error Message: CS0246: The type or namespace name 'JDV_VPP_Provider'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:



Line 5: void Application_Start(object sender, EventArgs e)
Line 6: {
Line 7: JDV_VPP_Provider fileProvider = new JDV_VPP_Provider();
Line 8:
System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(fileProvider);
Line 9: }


Source File: c:\Inetpub\wwwroot\global.asax Line: 7

I've spent all day wondering why if my class is in the app_code of one of my
applications, why global.asax is complaining. Everything is spelled
correctly as in the class name.

Here's my code: http://www.webfound.net/allcode.zip

Any help would make my day as I have spent all day wasting my time on this
problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top