iis-express

IIS Express or Cassini

谁都会走 提交于 2019-11-30 05:47:40
问题 I'm a little confused about something. I am using Visual Studio 2010 and am a little unsure whether VS 2010 uses IIS Express or Cassini when running web applications. What is the difference? Thanks, Sachin 回答1: VS 2010 SP1 supports both IIS Express and Cassini (VS 2010 supports only cassini). You can configure your project to use IIS Express or Cassini. By default VS 2010 SP1 uses Cassini and to change right click on your web site/web application and select "use iis express". (When IIS

Chrome returns “Bad Request - Request Too Long” when navigating to local IIS Express

痴心易碎 提交于 2019-11-30 04:31:40
I have a web application that runs perfectly fine when I use the Visual Studio 2010 development server (Cassini). However when I try to use IIS Express to host the site Chrome just displays a "Bad Request - Request Too Long" error. The IIS Express site does display in other browsers (FireFox and IE9) so I'm kind of confused. The error occurs in Chrome when I try request pages in my application or even basic resources like an image, so I don't think it is an issue with URL rewriting or routing. Just to see if the problem was somehow a result of my site's code, I created a new MVC3 website and

IIS express: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to

老子叫甜甜 提交于 2019-11-30 04:29:58
In Visual studio, Solution->Web.Project->Properties->Web, I have changed my Project Url from http://localhost:51123/ to http://localhost:51123/NewProjectName and I keep getting this error: " Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to .... " on every module added. Adding a remove tag works but then it should have been a problem even before i changed the url. Any suggestions? orjanto I think IIS Express probably has 2 <application> -blocks and both will be pointing to the same physicalPath. Go to the IIS Express config file in: My Documents

How do I start IIS Express?

六眼飞鱼酱① 提交于 2019-11-30 03:22:13
I've used the Web PI to install IIS Express. In the tray, there is not the IIS Express icon. How do I start IIS Express without using the command line? I want that IIS runs permanently, so without command line. Philippe See Running IIS Express from the Command Line Open a command prompt. cd \Program Files\IIS Express , or cd \Program Files (x86)\IIS Express on 64-bit OS iisexpress /? to show usage For example, you can start your IIS Express named site by issuing the command iisexpress /site:WebSite1 where WebSite1 is a site from the user profile configuration file (C:\Program Files (x86)\IIS

Assembly Not Referenced compilation error in foreach loop in Razor view

偶尔善良 提交于 2019-11-30 02:30:33
问题 EDIT: I have checked and attempted a lot of the other Assembly Not Referenced issues found on SE, but I haven't found many dealing with what should be a built-in assembly ( System.Collections.Generic.List<t> ). This makes it difficult to manually add or remove the reference etc. I am trying to build a PartialView from an API response. I have confirmed the response is correct and well-formed, my objects are being built correctly, but when I generate the Partial View, a Compilation Error is

VS 2012 launching app based on wrong path

随声附和 提交于 2019-11-30 01:44:44
I have a app which is under source control (TFS 2012 also) on c:\Dev\MyApp\Main. Because im developing a new feature I decided to open a branch on c:\Dev\MyApp\BranchNewFeature. I developed and when I decided that it was time to test it was like i hadn't done any changes at all. I hit F5 and i see the baseline version of the app... Looking into it I noticed a very curious fact: When i check IIS Express the "launch path" for the applications is the old one (c:\Dev\MyApp\Main). Can anyone help me make IIS Express point to the new path? (C:\Dev\MyApp\BranchNewFeature) Chris Gillum I ran into the

Creating a virtual directory failed with the error

非 Y 不嫁゛ 提交于 2019-11-30 01:39:26
I can't solve this problem I suggest I have to change c:\Windows\System32\drivers\etc\hosts file and add after # localhost name resolution is handled within DNS itself. the next line: 127.0.0.1 mysite.dev but it doesn't help. Any suggestions? Error ocсurrs when I try to open web site project in Microsoft Visual Studio 2012. More often than not, at least in my case, this happens is when a *.csproj.user file is in the project directory and has <UseIISExpress>true</UseIISExpress> in it. Alternatively, as mentioned by Zachary Cutler you can also simply: close Visual Studio, delete the *.csproj

IIS Express is automatically disabling anonymous authentication for my project, why?

我与影子孤独终老i 提交于 2019-11-30 01:22:42
When I switch my ASP.NET MVC project from Cassini web server to IIS Express, this is added to my applicationhost.config file: <location path="MyProject"> <system.webServer> <security> <authentication> <anonymousAuthentication enabled="false" /> <windowsAuthentication enabled="false" /> </authentication> </security> </system.webServer> </location> It's causing the site not to load with 401.2 - Unauthorized and I can't fix it on the Web.config level - it will then complain that the section is locked at parent level (HTTP 500.19). I can fix it by amending the applicationhost.config file but I don

How to use ServerManager to read IIS sites, not IIS express, from class library OR how do elevated processes handle class libraries?

非 Y 不嫁゛ 提交于 2019-11-30 01:20:55
I have some utility methods that uses Microsoft.Web.Administration.ServerManager that I've been having some issues with. Use the following dead simple code for illustration purposes. using(var mgr = new ServerManager()) { foreach(var site in mgr.Sites) { Console.WriteLine(site.Name); } } If I put that code directly in a console application and run it, it will get and list the IIS express websites. If I run that app from an elevated command prompt, it will list the IIS7 websites. A little inconvenient, but so far so good. If instead I put that code in a class library that is referenced and

When using iis express no css applied on a remote pc

天大地大妈咪最大 提交于 2019-11-29 23:35:20
问题 I came up with a necessity to work with my asp.net mvc site from a remote pc while developing. So, I configured it to use IIS Express. At first, a problem raised with windows authentication. My site is supposed to work in windows domain intranet, so I wanted to use integrated windows authentication. I managed to make it work on firefox with How To: Firefox and Integrated Windows Authentication from IIS Express Windows Authentication (answer by bees73). But IExplorer still asks to print login