iis-express

How to Run PHP on IIS7.5 Express?

爱⌒轻易说出口 提交于 2019-11-27 17:30:43
问题 I have Win XP SP3 and have installed IIS7.5 Express and want to run PHP on it. I am able to run simple HTML code on the server, I am able to start and stop the server by running iisservices.exe, but I am not able to run php scripts on it. If I have the following PHP file: <? php echo "hello world"; ?> <html>HI</html> The output is HI but the PHP script doesn't run. I have followed the steps described in this article to install PHP: http://learn.iis.net/page.aspx/724/install-and-configure-php/

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

三世轮回 提交于 2019-11-27 17:15:46
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 is blank a 401 status is returned in the headers What I have tried thus far is using suggestions from

IIS Express gives Access Denied error when debugging ASP.NET MVC

余生颓废 提交于 2019-11-27 17:04:29
I have created an ASP.NET MVC 3 project, and am using IIS Express as the web server when developing. When I try to debug, I get the error message below. How can this be solved? Server Error in '/' Application. 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

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

人走茶凉 提交于 2019-11-27 16:56:25
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 denied. (0x80070005). This does not seem entirely uncommon but I have tried many of the suggestions without

IIS 7.5 Express New Virtual Dir

喜欢而已 提交于 2019-11-27 14:57:33
问题 how do i add new virtual directory? I'm getting error (The type or namespace name 'xxx' could not be found) but the files are all in /bin. i have tried editing the applicationhost.config like this: <site name="WebSite1" id="1" serverAutoStart="true"> <application path="/" applicationPool="Clr2IntegratedAppPool"> <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" /> <virtualDirectory path="/SubFolderApp" physicalPath="%IIS_SITES_HOME%\WebSite1\SubFolderApp" allowSubDirConfig=

HTTP Error 405.0 - Method Not Allowed in IIS Express

自闭症网瘾萝莉.ら 提交于 2019-11-27 14:51:18
问题 When issuing a perfectly cromulent verb to a local IIS Express web-site under Visual Studio 2013: CROMULENT http://localhost:7579/Handler.ashx HTTP/1.1 Host: localhost:7579 the server responds with the error: HTTP/1.1 405 Method Not Allowed Allow: GET, HEAD, OPTIONS, TRACE That is a request to a "generic handler" (i.e. .ashx ) . If if i try again to a static resource: SCHWIFTY http://localhost:7579/Default.htm HTTP/1.1 Host: localhost:7579 the server responds with the error: HTTP/1.1 405

IIS Express will not start

眉间皱痕 提交于 2019-11-27 14:45:10
问题 I'm just putting this one out there since its a Google Zero-resulter which means I win a prize? Cannot start IIS Express 7.5 after reinstall from one account, but I can when logged-in under my other domain account. What's odd is that the account it fails under is my 'super' account with local admin rights, and is also the account I installed it under. The error stems from diprestr.dll not loading... C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error Starting IIS Express ...

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

狂风中的少年 提交于 2019-11-27 13:04:00
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 environment was Windows 8.0 Pro with VS2013 Ultimate. I have since flushed my system and done a completely

Can Visual Studio restart IIS Express on new debugging session?

倖福魔咒の 提交于 2019-11-27 13:02:22
问题 I have an ASP.Net application that performs some database initialization during Application_Start in Global.asax. I'm using IIS Express to debug the application. I find that if I stop debugging, clear the database, and restart again, the Application_Start code does not get called and my database is not initialized properly, so my application fails. This is because the IIS Express instance is still running after debugging stops. Rather than restarting it, Visual Studio appears to be attaching

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

别说谁变了你拦得住时间么 提交于 2019-11-27 12:52:15
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: model.RememberMe)) { return RedirectToLocal(returnUrl); } // If we got this far, something failed,