开发者

Namespace declarations in web.config not being picked up after Converting to Web Application

开发者 https://www.devze.com 2023-01-17 11:46 出处:网络
I recently decided to convert my .Net Web Site to a Web Application. I followed the guidelines by creating a new Web Application, copying the files from my Web Site, including the files in my applicat

I recently decided to convert my .Net Web Site to a Web Application. I followed the guidelines by creating a new Web Application, copying the files from my Web Site, including the files in my application and then selecting the option Convert to Web Application.

However since I have done that 开发者_Go百科I have received hundreds of errors relating to namespaces, specifically the compiler can not resolve references in the section of web.config.

Is there another solution to this apart from going through this large application and including the relevant Imports in each page code-behind?

I'm using .Net 4 and Visual Studio 2010

Thanks in advance


I think you should try to set full class name with assembly, for example: "MyNamespace.MyClass, MyAssembly" (also you can set assembly version and key).

0

精彩评论

暂无评论...
验证码 换一张
取 消