简体   繁体   English

C#ASP.Net类型或名称空间名称“ Secure”在名称空间“ source_extranet”中不存在

[英]C# ASP.Net The type or namespace name 'Secure' does not exist in the namespace 'source_extranet'

Afternoon all, 下午都

I really need your help as this is a Nightmare! 我真的需要您的帮助,因为这是一场噩梦!

I was earlier having a problem with referencing a 3rd Party Dll ( Here ) but have overcome this problem and am now having a problem referencing my own classes! 我之前遇到了引用第三方Dll( 这里 )的问题,但是已经克服了这个问题,现在遇到了引用我自己的类的问题!

Everything seems fine at build with no errors at all but when I go to run the application it comes up with the following Compilation Error: 一切看起来都很好,没有任何错误,但是当我运行该应用程序时,它出现了以下编译错误:

Compiler Error Message: CS0234: The type or namespace name 'Secure' does not exist in the namespace 'source_extranet' (are you missing an assembly reference?) 编译器错误消息:CS0234:类型或名称空间名称'Secure'在名称空间'source_extranet'中不存在(您是否缺少程序集引用?)

The line that the Error points to this line in the class: Error指向类中此行的行:

source_extranet.Secure.BackendCustomData newdata =
new source_extranet.Secure.BackendCustomData();

This line of code points to a class in the same folder as the calling code class. 这行代码指向与调用代码类位于同一文件夹中的类。

I have scoured Google looking for an answer and haven't found anything that points me to an answer to my problem. 我搜寻了Google寻找答案,却没有发现任何指向我问题答案的东西。

Any help would be AMAZING! 任何帮助将是惊人的!

Check that your class Secure also uses the source_extranet namespace. 检查您的Secure类是否也使用source_extranet命名空间。 And if its a partial class make sure the partials also have the right namespace. 并且如果它是局部类,请确保局部也具有正确的名称空间。

This has all been going wrong because a colleague was attempting to add in additional functionality and was clearly very unsuccessful! 这一切都出错了,因为一位同事正在尝试添加其他功能,但显然非常失败!

Upon reverting his changes it is now working perfectly. 恢复他的更改后,它现在可以完美运行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 名称空间“系统”中不存在类型或命名空间名称“事务”(您是否缺少程序集引用?) - C#ASP.NET - The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?) - C# ASP.NET ASP.NET - 类型或命名空间不存在 - ASP.NET - type or namespace does not exist 项目参考-名称空间中不存在类型或名称空间名称'Library'; 目标框架匹配(Asp.net) - Project reference - Type or namespace name 'Library' does not exist in the namespace; target framework matches (Asp.net) ASP.NET类型或名称空间名称'Data'在名称空间WebMatrix中不存在 - ASP.NET The type or namespace name 'Data' does not exist in the namespace WebMatrix ASP.NET RAZOR类型或名称空间名称在名称空间中不存在(但存在) - ASP.NET RAZOR The type or namespace name does not exist in the namespace (but it exists) 类型或名称空间名称'ToolkitScriptManager'在ASP.NET Webforms的名称空间'AjaxControlToolkit'中不存在 - The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' in ASP.NET Webforms ASP.NET Core 3.0:命名空间中不存在类型或命名空间名称“CreateDefaultBuilder” - ASP.NET Core 3.0: The type or namespace name 'CreateDefaultBuilder' does not exist in the namespace c#错误名称空间中不存在类型或名称空间名称'SampleMain' - c# error The type or namespace name 'SampleMain' does not exist in the namespace 找不到类型或名称空间名称“类型/名称空间”。-Asp.Net-C# - The type or namespace name 'type/namespace' could not be found.. - Asp.Net - C# 在 Docker Kube.netes 中部署 Asp.Net 应用程序后,命名空间“资源”中不存在类型或命名空间名称“资源文件” - The type or namespace name 'Resource File' does not exist in the namespace 'Resources' after deploying the Asp.Net app in Docker Kubernetes
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM