iis-7.5

SignalR Negotiate 404

假装没事ソ 提交于 2019-12-05 15:43:07
问题 I am using SignalR 2.0. Everything works fine when running locally on my VS 2012. But when I publish the site on IIS, it breaks. The site loads but one of the scripts returns 404 Not Found. The script is something like. https://example.com/signalr/negotiate?xxx This path doesn't exist indeed. The correct path should be: https://example.com /private /signalr/negotiate?xxx Note the part in bold. Inside the WebSite (https://example.com/) I have another Application (https://example.com/private/).

IIS 7.5, App pool not in applicationHost.config

不羁岁月 提交于 2019-12-05 15:40:31
问题 I am running IIS 7.5 on Windows Server 2008 R2 x64. I added a new app pool via the iis manager and wanted to set the autostart and startmode options in the applicationHost.config file. However, the new app pool is not appearing in either of the applicationHost config files (%WINDIR%\System32\inetsrv\Config and %WINDIR%\SysWOW64\inetsrv\config). The app pool has an application added to it (the application is still listed under the old app pool in the config files, though it is correct in the

IIS 7.5 MVC requires authentication to get static files

為{幸葍}努か 提交于 2019-12-05 15:17:19
问题 I have just installed windows 7 and I'm trying to get my MVC application that was working in IIS 7 working in IIS 7.5. The problem I have is that when it tries to load any static files (css, gif, jpg...) it requires authentication. So if I try to go to: http://example.com/Content/site.css It redirects to: http://example.com/Account/LogIn?ReturnUrl=/Content/site.css 回答1: I ended up finding the problem. It seems that i need the IIS_USRS & IUSR accounts to have read access. I'm sure in vista i

IIS 7 how to preserve website subfolder Authentication settings

假装没事ソ 提交于 2019-12-05 14:48:42
In IIS you can set folder-level settings using the Features view (see screenshot). I want to disable Anonymous authentication for several subfolders of my website and save those settings to source control. I want to know where does IIS save these settings. They are not in the website web.config or the web.config inside subfolders. Is there anyway I can save the IIS settings with the source code or do I have to perform these tasks with each fresh deployement? Add the following to your root web.config for each folder you want to secure: <location path="secure_folder"> <system.webServer>

Configuring ASP.NET MVC app's IIS 7.5 Application Pool identity as login on SQL Server 2008 R2

…衆ロ難τιáo~ 提交于 2019-12-05 14:15:23
I am trying to use IIS 7.5 Application Pool identity as login on SQL Server 2008 R2 so that my ASP.NET web app can connect to the database... Using this approach worked fine on my local dev machine (IIS 7.5 and SQL Server 2008 R2 on same machine). However, when I try to set up the same on production (IIS and SQL servers are separate) I am unable to add "IIS APPPOOL\MyAppAppPool" login to SQL Server 2008 R2. Notice that in either case you cannot use "Browse..." when creating a login in SQL Server since "IIS APPPOOL\MyAppAppPool" user identity is dynamic (or "special")... Any ideas? Update: For

VS2010 TFS Build Failure-Could not complete the request to remote agent

懵懂的女人 提交于 2019-12-05 12:48:09
I received this error when trying to run a build from within VS2010. C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3588): Web deployment task failed.(Could not complete the request to remote agent URL 'https://http//[serverName]:8172/msdeploy.axd?site=Default Web Site'.) Could not complete the request to remote agent URL 'https://http//[serverName]:8172/msdeploy.axd?site=Default Web Site'. The remote name could not be resolved: 'http' I'm not sure why it says "https://http//..." The code is checked in to a remote TFS server. I created a Build

Redirect all naked domain urls to subdomain(www) urls preserving the url, except for one page on IIS/ASP.NET

允我心安 提交于 2019-12-05 12:00:17
Whats the best way to achieve the above? I do know that it can be achieved at HttpModule level. Is it possible just via web.config(easier and faster to code execute). It's easy to do this with the URL rewrite module through the web.config : <rewrite> <rules> <clear /> <rule name="Redirect naked domains to www.domain.com" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" negate="true" pattern="^www\." /> <add input="{REQUEST_URI}" negate="true" pattern="^noredirect/forthis/page\.aspx$" /> <add input="{REQUEST_URI}" negate="true" pattern

PHP on IIS7 - Receiving “Object Moved” html page instead of actually redirecting

跟風遠走 提交于 2019-12-05 09:25:44
I'm learning PHP on my computer with IIS7.5 as the web server and am having a problem completing a 301 redirect correctly. The tutorials and forums all say to use the following: Header('Location: ' . $url, true, 301); OR Header('Location: ' . $url); In both cases, instead of actually redirecting, the browser (Chrome and Firefox) display this: Object Moved This document may be found here Using the FireFox web developer toolbar, I retrieved the page headers, which were: Content-Type: text/html; charset=UTF-8 Server: Microsoft-IIS/7.5 X-Powered-By: PHP/5.3.5, ASP.NET Date: Mon, 21 Mar 2011 18:47

Programmatically assigning IIS Application Pool Identity “users” to Groups

我怕爱的太早我们不能终老 提交于 2019-12-05 09:02:39
The Problem: When new IIS Application Pools are created and set to use the Application Pool Identity for permissions, I am unsure how to add those identities to User Groups such as Administrator or Performance Counter Users. The Background: I'm currently writing a C#.NET library which uses Microsoft.Web.Administration in order to do the following: Detect if IIS 7.x is installed, and if so, what components. Install or upgrade IIS 7.x to a provided list of required components. Create/manage one or more web sites through IIS. Automatically create/manage one application pool per web site The