Webapp适用于2010年而不是2015年

时间:2016-08-09 08:41:29

标签: asp.net visual-studio webforms

我有一个WebApp,从2010年开始运行时可以正常运行,但在使用2015时失败并显示此消息:

Access is denied. 
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. 
Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance.
Version Information: Microsoft .NET Framework Version:2.0.50727.8689; ASP.NET Version:2.0.50727.8670

该项目无需升级即可加载到2015年。为什么不在2015年运行?

编辑:回答@Aristos,它使用webforms,URL为http://my_app:port_here/(设置为动态端口),项目/解决方案是VS中的Web应用程序。它从2010年开始,但不是从2015年开始

1 个答案:

答案 0 :(得分:0)

找到我的问题的答案:this is the correct answer

Screenshot of 'Properties' window