iis-express

localhost refused to connect Error in visual studio

烈酒焚心 提交于 2019-11-26 19:14:27
问题 I have copied my solution file from another system and tried to run it on my machine: For this, I have gone to the project folder and deleted the previous solution file and copied the new one. Now, it started giving me error. connection refused etc. So, I got one solution from here: How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress - Error 502 (Cannot debug from Visual Studio)? According to it, I changed the port number from 1049 to 1052. It loaded and

How do I display custom error pages in Asp.Net Mvc 3?

狂风中的少年 提交于 2019-11-26 18:55:30
问题 I want all 401 errors to be be redirected to a custom error page. I have initially setup the following entry in my web.config. <customErrors defaultRedirect="ErrorPage.aspx" mode="On"> <error statusCode="401" redirect="~/Views/Shared/AccessDenied.aspx" /> </customErrors> When using IIS Express I receive the stock IIS Express 401 error page. In the event when I do not use IIS Express a blank page is returned. Using Google Chrome's Network tab to inspect the response, I see that while the page

Unable to launch the IIS Express Web server, Failed to register URL, Access is denied

一个人想着一个人 提交于 2019-11-26 18:46:22
问题 Some web projects are causing me problems while others work fine. I decided to focus on one of the problematic ones. I'm using Visual Studio 2013 on Windows 7. I think I'm running it as administrator, the window title says PROJECT NAME - Microsoft Visual Studio (Administrator) . When I try to run the project I get a popup saying: Unable to launch the IIS Express Web server. Failed to register URL "http://localhost:62940/" for site "SITE NAME" application "/". Error description: Access is

How do I restore a missing IIS Express SSL Certificate?

蓝咒 提交于 2019-11-26 18:12:04
After setting up HTTPS in IIS Express, according to such articles as this and this , I am unable to actually load an IIS Express site using HTTPS. In Chrome , I am only getting: This webpage is not available (with error code "ERR_CONNECTION_RESET") ...and in IE I am only getting: Internet Explorer cannot display the webpage ...when I follow the directions in those articles. It appears this has to do with the fact that the "IIS Express Development Certificate" that IIS Express installs automatically has been removed. How do I get this certificate reinstalled? After going to Add/Remove Programs

Browse Web Site With IP Address Rather than localhost

旧巷老猫 提交于 2019-11-26 18:00:23
问题 I am using VS2012 with IIS Express and can not seem to browse my web sites using my IP Address. Is there some way to do that? It used to work fine with earlier versions of VS. For example, this address works fine: http://localhost:64651/ But, this address does not work. http://192.168.252.165:64651/ I am sure of the IP Address, since I just got it using ipconfig. 回答1: Go to your IISExpress>Config folder, locate applicationhost.config . Change <bindings> as below: <bindings> <binding protocol=

Add MIME mapping in web.config for IIS Express

孤人 提交于 2019-11-26 17:01:33
I need to add a new MIME mapping for .woff file extensions to IIS Express. If I add the following snippet to the "applicationhost.config" of IIS Express it works fine: <staticContent lockAttributes="isDocFooterFileName"> <mimeMap fileExtension=".woff" mimeType="font/x-woff" /> ... But I would actually like to do add it to my "web.config" so that not every developer would need to change their "applicationhost.config" locally. So I removed it again from the "applicationhost.config" file and added the following snippet to the project's "web.config": <system.webServer> ... <staticContent> <mimeMap

Creating virtual directories in IIS express

Deadly 提交于 2019-11-26 17:00:47
Is there any way to create a virtual directory in IIS express? I know that Cassini can't do this and it would be nice to be able to do this without using a full version of IIS. I've got it so far that I can browse to my application locally in IIS express like this: http://localhost:1132/ What I would like to do is create a virtual directory called "OffSiteStuff" and point it to some location on my C drive, like "c:\offsitestuff" and then browse to items in that folder like this: http://localhost:1132/OffSiteStuff/UserUploadedImage.jpg I know I could do this with a folder within my site and

ASP.NET MVC5/IIS Express unable to debug - Code Not Running

僤鯓⒐⒋嵵緔 提交于 2019-11-26 16:12:26
问题 I start a VS2013 VB.Net MVC5 Web Application, set a breakpoint in HomeController About method and run "Start Debugging", navigate to About page and receive the message "Code not running - The current Thread is not currently running or the call stack could not be obtained" preventing any debugging. If I set a breakpoint in Global.asax Application_Start, the breakpoint works fine. Changing the "Enable Edit & Continue" makes no difference. Anyone have any ideas what is happening? Update : My

Upgrading to ASP.NET 4.5/MVC 4 forms authentication fails

泪湿孤枕 提交于 2019-11-26 16:08:35
问题 I've just downoaded a VS 2012 along with ASP.NET 4.5 and MVC 4.0 and was kicking the tires with a sample app and found that the forms authentication that works perfectly with ASP.NET 4.0/MVC 3 no longer seems to work with the latest release. When I make a call to the Login function in the action controller, the WebSecurity.Login call fails: public ActionResult Login(LoginModel model, string returnUrl) { if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password, persistCookie:

how to run iisexpress app pool under a different identity

走远了吗. 提交于 2019-11-26 13:49:37
问题 is there a way to run iisexpress app pool under a different identity other than the currently logged in user? I am getting around this problem using the "runas" command currently but I would like to know if there is something built-in to iisexpress that I can utilize. 回答1: It looks like this should be possible. In your IIS Express site's applicationhost.config file, there is a <processModel/> element defined in <applicationPoolDefaults> under <applicationPools> The <processModel> element has