是否可以在visual studio 2015上执行ASP.NET 2.0代码。 [英] Is it possible to execute ASP.NET 2.0 code on visual studio 2015..

查看:98
本文介绍了是否可以在visual studio 2015上执行ASP.NET 2.0代码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在visual studio 2015专业版中执行基于asp.net 2.0的应用程序,那么它的显示构建成功但在localhost浏览器上给出错误如下:



服务器'/'应用程序中的错误

访问被拒绝。

描述:访问服务此请求所需的资源时发生错误。服务器可能未配置为访问到requestURL。

错误消息:由于服务器配置,未授权登录失败。验证您是否有权根据您提供的凭据和身份验证方法查看此目录或页面



您能帮助我吗。



我尝试了什么:



我必须使用VS2015专业人员在本地系统上设置此代码

解决方案

是的,你可以在VS 2015中编写和编译 .Net 2.0代码。



你得到的错误很可能是由于IIS配置造成的。



答:检查网站上是否允许匿名访问

https://support.microsoft.com/en-gb/help/253667/error-message-http-401-2-unauthorized-logon-failed-due-to-server-confi [ ^ ]



B:检查IIS用户是否可以访问Web应用程序文件夹。

If i am executing application based on asp.net 2.0 in visual studio 2015 professional then its showing build succeed but on localhost browser giving error Like below:

server error in '/' application
access is denied.
Description: An error is occured while accessing the resources required to serve this request.The server may not be configured for access to the requestedURL.
Error Message: Unauthorised 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 method

Could you please help me.

What I have tried:

I have to setup this code on my local system using VS2015 professional

解决方案

Yes you can write and compile .Net 2.0 code in VS 2015.

The errors you are getting are, most likely due to the IIS configuration.

A: Check that anon access is allowed on the site via IIS
https://support.microsoft.com/en-gb/help/253667/error-message-http-401-2-unauthorized-logon-failed-due-to-server-confi[^]

B: Check the IIS user has access to the web app folder.


这篇关于是否可以在visual studio 2015上执行ASP.NET 2.0代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆