调试VS 2015项目(.aspx,.aspx.cs,.cs) [英] Debugging VS 2015 project ( .aspx, .aspx.cs, .cs )

查看:97
本文介绍了调试VS 2015项目(.aspx,.aspx.cs,.cs)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在桌面上安装了Visual Studio 2015 Enterprise,运行正常。我成功调试了我的ASP.NET C# 项目  (.aspx,  .aspx.cs,。cs。)   我安装了Visual Studio 2015 Enterprise 在 两台笔记本电脑。  
我 尝试调试我的项目中的网页,我收到消息  "U 无法启动IIS Express Web服务器"。  ;  Internet Explorer 11上显示的另一个
错误消息    "无法显示此页面。 确保网址hhtp:// localhost:55104不正确。"  
我打开了我的项目的属性窗口,然后点击:  网络标签。     在网址 文本框,我的网址似乎是正确的。它写着:  localhost 55104 。 我运行了Bing搜索,发现了很多不同的
建议,以及如何解决这个问题。 我删除了IIS Express文件夹,然后重新创建了Visual Studio 2015文件夹。  我右键点击了 的.aspx 网页然后点击:  使用Internet Explorer浏览。   我将
转到控制面板,然后打开程序和功能。 我卸载了IIS Express。然后我下载了IIExpress 7.5,然后安装了这个应用程序。 我已经打开了Visual Studio 2015,然后选择了我的项目,然后打开
属性窗口,选择了   网页标签,然后点击了  :  创建虚拟目录。  这些尝试解决我的错误消息都没有成功。   打开Visual Studio 2015,然后选择工具,选项,项目
和解决方案,Web项目,然后选择"使用64位版本的IIS Express进行网站和项目"。 这对我的问题没有帮助。    我同时使用Windows 7和Window 10,64位操作系统,4 gig RAM。   
以下是Visual Studio的版本:   Microsoft Visual Studio Enterprise 2015,版本14.0.25431.01更新3,

Microsoft .NET Framework,
版本4.6.01586。    
您对此Visual Studio 2015问题以及您的建议有何了解?   

解决方案

< blockquote>

Hi Rico,


欢迎来到MSDN论坛。


>>我尝试调试项目中的网页,然后收到消息"无法启动IIS Express Web服务器"。 


您是否创建了新的asp.net应用程序或打开现有项目,然后遇到此问题?如果它是现有的应用程序,请确保它存储在您当地的
计算机上,您可以尝试创建一个新的asp.net应用程序,单击F5进行调试并检查此问题是否仍然存在。


> ;> Internet Explorer 11上显示的另一条错误消息    "此页面无法显示。 确保网址
hhtp:// localhost:55104不正确。" 


请检查"hhtp:// localhost:55104"是错误的类型,还是属性> Web>下的确切值;服务器?


有很多可能的原因可能导致此错误消息,请尝试使用以下内容:


  1. 禁用防火墙并以管理员身份运行
  2. 将门户代码更改为55104 <55214
  3. 在属性> Web>服务器下,确保未选中"覆盖应用程序根URL"选项
  4. 删除解决方案文件夹下的隐藏文件夹.vs
  5. 从IIS Express切换到本地IIS


最好的问候,


萨拉


I installed Visual Studio 2015 Enterprise on a desktop and it runs fine. I successfully debug my ASP.NET C#  projects  ( .aspx,  .aspx.cs, .cs ).    I installed Visual Studio 2015 Enterprise  on  two laptop computers.   I  try to debug the webpages in my project and I get the message  "Unable to launch the IIS Express Web Server".   Another error message that is displayed on the Internet Explorer 11    "This page can’t be displayed.  Make sure the web address hhtp://localhost:55104 is incorrect."   I open the Properties Window for my project and click :   Web tab.     In the URL  textbox, my URL seems to be correct. It reads : localhost 55104 .  I ran a Bing search and found many different suggestion on how to solve this issue.  I have deleted the IIS Express folder and then Visual Studio 2015 recreated the folder.   I right click a  .aspx  webpage and then click :   Browse with Internet Explorer.   I went to the Control Panel, then open the Program and Features.  I uninstalled IIS Express. Then I downloaded IIExpress 7.5, then installed this application.  I have opened Visual Studio 2015, then selected my Project, then opened the Property Window, selected  Web tab, then clicked  :   Create Virtual Directory.  None of these attempts to resolve my error message succeeded.   have opened Visual Studio 2015, then selected Tools, Options, Project and Solutions, Web Projects, then selected "Use the 64 bit version of IIS Express for web sites and projects".  This did not help my issue.     I use both Windows 7 and Window 10, 64 bit operating system, 4 gig of RAM.    Here is the version of Visual Studio :   Microsoft Visual Studio Enterprise 2015, Version 14.0.25431.01 Update 3,

Microsoft .NET Framework, Version 4.6.01586.     What do you know about this Visual Studio 2015 issue and what do you suggest ?   

解决方案

Hi Rico,

Welcome to the MSDN forum.

>> I try to debug the webpages in my project and I get the message "Unable to launch the IIS Express Web Server". 

Did you create a new asp.net application or open the existing project, then meet this issue? If it is the existing application, please make sure it stores on your local computer, and you can try to create a new asp.net application, click F5 to debug it and check if this issue persists or not.

>>Another error message that is displayed on the Internet Explorer 11    "This page can’t be displayed.  Make sure the web address hhtp://localhost:55104 is incorrect." 

Please check "hhtp://localhost:55104" is the wrong type or it is the exact value under Properties>Web>Servers?

There have lots of possible reasons that maybe caused this error message, please have a try with the following:

  1. Disable the firewall and run as admin
  2. Change the portal code like 55104 to 55214
  3. Under Properties>Web>Servers and make sure the option ‘override application root URL‘ is unchecked
  4. Delete the hidden folder .vs under the solution folder
  5. Switch from IIS express to local IIS

Best regards,

Sara


这篇关于调试VS 2015项目(.aspx,.aspx.cs,.cs)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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