iis-express

remove virtual directory in IIS Express created in error

若如初见. 提交于 2019-12-09 07:57:10
问题 I clicked on create virtual directory of the web tab of the properties menu. My application now isn't running (the published version is) It just hangs when any of my controllers code is executed I think I've messed up the IIS config Can anyone help me out? 回答1: My file was located here: C:\Users\YourUserName\Documents\IISExpress\config\applicationhost.config Entries will look like this <application path="/virtualDirectoryName" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/

How do I configure a website project to use IIS Express?

你离开我真会死。 提交于 2019-12-09 02:29:59
问题 I have a website project, not a web application. I have Visual Studio SP1 (beta) installed, but I only see the option to use an external web server; there is no "Use IIS Express" option like with web applications. Is this supported? If so, how do I set it up to use IIS Express? 回答1: I just installed Visual Studio 2010 SP1 as well as IIS Express and I found a right-click option on my web project called "Use IIS Express". Scott Guthrie talks about it here: VS 2010 SP1 (Beta) and IIS Express .

IISExpress AppPool identity verification

倾然丶 夕夏残阳落幕 提交于 2019-12-08 19:58:48
问题 I needed to run IISExpress under a specific identity. After going through this post how to run iisexpress app pool under a different identity I changed the processModel's username and password attributes in my \Documents\IISExpress\config\applicationhost.config file. I would like to verify the change in my web application. Is there a way to verify? Ultimately, what I'm after is that my security works properly using the PrincipalPermission attribute. I believe the Name property on this

IIS Express with VS2010 SP1 Constantly Rebuilds Web Site

五迷三道 提交于 2019-12-08 19:45:55
问题 I'm working with larger solution that has several website projects and recently it was decided to switch from Cassini to IIS Express. There are about 10 or so developers who all share the same solution/project and thus web.configs and they are all working happily with IIS Express except for me. The problem is that for no pattern I can figure out, IIS Express constantly resets itself and performs a new build thus resetting the session. Here are some of the reasons it will rebuild itself:

IIS Express (WebMatrix 2) won't serve .cshtml files in WebAPI project (VS10/WinXP)

走远了吗. 提交于 2019-12-08 18:33:24
I am trying to run a WebAPI project on WinXP through WebMatrix 2. I'm getting this error when attempting to browse index.cshtml (in the root): "This type of page is not served." I created a WebAPI project under the MVC4 project type in Visual Studio 2010, then set the project to run under IIS Express. What I've Tried: The .NET CLR settings in the VS-created WebMatrix site is .NET 4.0 (Integrated). I've already tried playing with the runAllManagedModulesForAllRequests setting in Web.config, no luck. The error occurs in both the development server and IIS Express. I have already rebooted.

Can IIS Express support reverse proxies?

血红的双手。 提交于 2019-12-08 15:41:30
问题 I'd like to set up a reverse proxy in IIS Express but it doesn't appear that Application Request Routing is supported (though I can't find anything which officially documents this). My goal is to get a web server to proxy an incoming request to http://web.server/api/example to a second server (e.g. http://some.api.server/example) where web.server is running on IIS Express. How might this be achieved? 回答1: No...you need ARR (application request routing) for doing this and arr can be installed

Can I use DirectoryEntry to list sites within IIS Express

﹥>﹥吖頭↗ 提交于 2019-12-08 13:47:30
I am on Windows XP. We have Windows 2008 Servers. Need to run IIS Express until we get workstations or virtual machines with newer version of local O.S. for the real IIS 7.X. Can I use DirectoryEntry to list my Sites and Virtual Directories when I run c# code under IIS Express? I have examples for setting up the Virtual Directories under IIS Express so that I think I have covered. Now I want to list them to ensure they exist. Anyone know how to do this in C#? Just a small snippet of what I have been trying causes com exceptions... DirectoryEntry iisServer = new DirectoryEntry("IIS://localhost

Can I use DirectoryEntry to list sites within IIS Express

一世执手 提交于 2019-12-08 05:36:12
问题 I am on Windows XP. We have Windows 2008 Servers. Need to run IIS Express until we get workstations or virtual machines with newer version of local O.S. for the real IIS 7.X. Can I use DirectoryEntry to list my Sites and Virtual Directories when I run c# code under IIS Express? I have examples for setting up the Virtual Directories under IIS Express so that I think I have covered. Now I want to list them to ensure they exist. Anyone know how to do this in C#? Just a small snippet of what I

Run Web Service using IIS Express without Visual Studio

橙三吉。 提交于 2019-12-08 02:56:26
问题 I have created asmx web service in PC1. Now I have coped this project to some other PC2. I have installed only IIS Express and .NET Framework. I want to run web service in PC2 using IIS Express. Is it possible or not? Thanks!! 回答1: Under the IIS Express folder in the C:\Program (x86) folder there's the appcmd.exe . First you need to add a virtual directory with the follwoing command: appcmd add vdir /app.name:<site_name>/ /path:/<virtual_directory> /physicalPath:<physical_location> If there

Why does SSL 443 fail to work in IIS Express for custom domains of Visual Studio web projects?

送分小仙女□ 提交于 2019-12-08 00:10:16
问题 I have VS2013 set up with IIS Express to use a custom domain as follows: http://mydomain.local https://mydomain.local The port 80 url works great, the port 443 does not ( Bad Request , Page Cannot Be Displayed, aka site doesn't exist). Why? Clearly IIS Express is struggling to map or use port 443 with this name, but why? applicationhost.config: <site name="MyDomain" id="16"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="C:\Projects