[英]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. 我在部署Web应用程序时经历了可怕的时光。
Environment 环境
There is an intranet site that currently has lot's of files and folders, and works fine. 有一个Intranet站点,当前有很多文件和文件夹,并且运行良好。 It was not configured to use ASP.NET, it was just plain static web pages.
它没有配置为使用ASP.NET,而只是纯静态网页。
This is on a Win2k3 box with IIS 6.0. 这在带有IIS 6.0的Win2k3框中。
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. Employee
类位于与asp.net页面相同的目录中,并且具有相同的名称空间,这给了我这个错误。
There is a directory "INFO" that I have been attempting to deploy my application to. 我一直试图将应用程序部署到目录“ INFO”。 So I have:
所以我有:
... 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. 尝试将信息目录设置为IIS中的应用程序。 The folder above it should be an application as well I think.... it's hard to know based on what you've said.
我认为它上面的文件夹也应该是一个应用程序...。根据您所说的内容很难知道。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.