CS0246: The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?)?
I am having a terrible time deploying a web app.
Environment
There is an intranet site that currently has lot's of files and folders, and works fine. It was not configured to use ASP.NET, it was just plain static web pages.
This is on a Win2k3 box with IIS 6.0.
What I have tried:
The application works fine on my development machine. The class Employee
is in the same directory, with the same namespace as the asp.net page that is giving me this error.
There is a directory "INFO" that I have been attempting to deploy my application to. S开发者_运维问答o I have:
- Enabled ASP.NET (confirmed)
- Confirmed that it is using .net 2.0
- I have right clicked the directory in IIS and clicked the button "Create" next to the greyed out "Application Name" to make it an application
- I've compiled and deployed (using VS publish tools) the application to the INFO directory (which is a share)
... and still it is not working.
Any ideas? What else do I need to do to get this thing working??
So it looks like this ?
MyWebapp/bin
MyWebapp/info/bin
Try setting the info directory to an application in IIS. The folder above it should be an application as well I think.... it's hard to know based on what you've said.
精彩评论