iis-7.5

ASP.NET websites under IIS 7.5 (Windows 7) running extremely slow

让人想犯罪 __ 提交于 2019-12-04 08:26:38
问题 I've just installed Windows 7 x64 Ultimate on my desktop PC. I installed IIS, Visual Studio 2008, registered ASP.NET, etc. I have this ASP.NET 3.5 website I'm working on running EXTREMELY slow on this new IIS. On STA and PROD servers (Windows 2003 Server) and on my old XP/IIS 5.1 everything runs smoothly. A page which usually takes 1-2 seconds to load is taking 8 seconds!!! I saw this post on IIS forum. It says something about Vista/7 not pooling connections (just to let you know, the website

MSDeploy.exe can connect as Administrator, but not any other Windows account

时光怂恿深爱的人放手 提交于 2019-12-04 08:24:39
问题 I'm integrating MSDeploy into my build process, and having problems authenticating. The following command works fine: msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=Administrator,password=secret -dest:package=c:\DeployTest\KPC.zip However, this does NOT work: msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=kpcpublish,password=secret -dest:package=c:\DeployTest\KPC.zip And yields the error: Error Code: ERROR_USER

IIS 7.5 not compressing JSON when set in application web.config

半城伤御伤魂 提交于 2019-12-04 07:06:10
I've been working on enabling JSON compression from one of our MVC3 sites. From various articles I've read it seems as though I should be able to set the application/json; charset=utf-8 MIME type in the applications web.config file. But doing so does not enable compression. But when added to the applicationhost.config file, it works. Am I missing something here? My application web.config has the following added to it: <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> <dynamicTypes> <add

How can I register a WCF service programmatically within an IIS environment

风格不统一 提交于 2019-12-04 06:51:36
问题 Let's say we have 2 projects with following layout Project "web" global.asax (I thought of this destination for registration within eg void Application_Start(System.Object sender, System.EventArgs e ) web.config Project "wcf" DemoService.cs IDemoService.cs web.config would look like this <configuration> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="fooBehavior"> <serviceMetadata httpGetEnabled="true" /> </behavior> </serviceBehaviors> </behaviors> <services> <service

How to correctly debug web applications on local IIS 7.5 with VS 2010 Beta2?

╄→гoц情女王★ 提交于 2019-12-04 05:24:07
I'm sort of new to developing Asp.net webapplication projects while running them on a local IIS. Till now I used the 'Use Visual Studio Development Server' option. I'm using Visual Studio 2010 Beta 2. Edit: less complex sample code Following code sample: List<string> _list = new List<string>(); _list.Add("asd"); _list.Add("asd2"); _list.Add("asd3"); Now I want to debug / step through some line of codes with _list . While using 'Use Visual Studio Development Server' I can see the contents of _list in the quick watch. If I select 'Use Local IIS Web server' and debug through the same piece of

IIS 7.5 with process idenity set to user has wrong USERPROFILE

瘦欲@ 提交于 2019-12-04 05:08:31
问题 First of all, this is my third question on the similar topic.. and still I have no answer, maybe only approaching it (see first, second). My web application (ASP.NET MVC3 under IIS 7.5) runs git to access some github repositories. After I upgraded my workstation to Windows SP1 it stopped to work. The reason was that as soon as git started, it actually runs ssh.exe to communicate with github. The ssh.exe appears to hangs up, so all application hangs. The application pool used by that

IIS 7 Canonical URL redirect

丶灬走出姿态 提交于 2019-12-04 04:58:12
I would like to make a website always have www in the address, and enforce it via IIS rewrite. For example, test.com would become www.test.com. The typical example rewrite rule is: <rule name="Canonical Host Name" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" negate="true" pattern="^www\.test\.com$" /> </conditions> <action type="Redirect" url="http://www.test.com/{R:1}" redirectType="Permanent" /> </rule> However this requires me to enter the full url of my website. It will not work for development and staging environments that have URLs like www.test.dev

VS 2012 Automatically updating IIS path on launch

落花浮王杯 提交于 2019-12-04 04:03:40
My employer recently upgraded us from VS 2010 to VS 2012. It's been great, but there is one minor annoyance that I'm hoping someone here can help with. In VS 2010 when I switched branches it would ask me whether I wanted to update the IIS paths. Something along the lines of "the path for port:blah is pointing here. Would you like to change it?" VS 2012 doesn't bother asking. It just changes it. I can't seem to find a setting that discourages this behavior, so I'm hoping someone else out there has. Searching IIS on any site brings up way too many results to sift through, especially considering

IIS rewrite rule to redirect specific domain url to different url on same domain

时光怂恿深爱的人放手 提交于 2019-12-04 03:58:25
I simply want an IIS 7.5 rewrite rule to redirect http://www.domain.com/url1 to http://www.domain.com/url2 (same domain). This can be achieved by: <rule name="Redirect url" enabled="true" stopProcessing="true"> <match url="^url1" /> <action type="Redirect" url="http://www.domain.com/url2" appendQueryString="false" redirectType="Permanent" /> </rule> However, this website listens to several domains, thus above becomes a global rule for all domains. How do I make this specific to domain.com? Have tried changing match url and adding conditions but cannot get it to work. Thanks. James Barry I got

Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden

大兔子大兔子 提交于 2019-12-04 03:54:21
Can anyone tell me where does following HTTP error message come from: Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden. This web site does not allow Urls which might include embedded HTML tags. We're using dynamically generated URLs and in this specific case the URL contains the characters '<' or '>'. We do URL encode the generated URL (so '%3C' appeary instead of '<') but it doesn't help. Our setup is ASP.NET MVC / IIS 7.5 / IE8. It's strange but it looks like the error appears only on some machines. So it could be that the IE internet