简体   繁体   English

CS0246:找不到类型或名称空间名称“ Employee”(您是否缺少using指令或程序集引用?)?

[英]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: 所以我有:

  1. Enabled ASP.NET (confirmed) 启用的ASP.NET(已确认)
  2. Confirmed that it is using .net 2.0 确认它正在使用.net 2.0
  3. 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 我右键单击了IIS中的目录,然后单击了灰色的“应用程序名称”旁边的“创建”按钮以使其成为应用程序
  4. I've compiled and deployed (using VS publish tools) the application to the INFO directory (which is a share) 我已经使用VS发布工具将应用程序编译并部署到INFO目录(是共享目录)中

... 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.

相关问题 错误 CS0246:找不到类型或命名空间名称“IWebHostEnvironment”(您是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'IWebHostEnvironment' could not be found (are you missing a using directive or an assembly reference?) CS0246 找不到类型或命名空间名称“ErrorViewModel”(您是否缺少 using 指令或程序集引用?) - CS0246 The type or namespace name 'ErrorViewModel' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246:找不到类型或命名空间名称“BannerPosition”是否缺少 using 指令或程序集引用? - error CS0246: The type or namespace name 'BannerPosition' could not be found are you missing a using directive or an assembly reference? 错误 CS0246:找不到类型或命名空间名称“Npgsql”(您是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'Npgsql' could not be found (are you missing a using directive or an assembly reference?) CS0246:找不到类型或命名空间名称'MySql'(您是否缺少using指令或程序集引用 - CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference 错误CS0246找不到类型或名称空间名称“ Windows”(是否缺少using指令或程序集引用?) - Error CS0246 The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246:找不到类型或命名空间名称“StreamingContext”(是否缺少 using 指令或程序集引用?) - Error CS0246: The type or namespace name 'StreamingContext' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246 找不到类型或命名空间名称“CreateRandomAnswersForKey”(您是否缺少 using 指令或程序集引用?)? - Error CS0246 The type or namespace name 'CreateRandomAnswersForKey' could not be found (are you missing a using directive or an assembly reference?)? CS0246 找不到类型或命名空间名称“MailKit”(是否缺少 using 指令或程序集引用? - CS0246 The type or namespace name 'MailKit' could not be found (are you missing a using directive or an assembly reference? CS0246 C#找不到类型或名称空间名称“ ForeignKeyAttribute”(是否缺少using指令或程序集引用?) - CS0246 C# The type or namespace name 'ForeignKeyAttribute' could not be found (are you missing a using directive or an assembly reference?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM