iis-7.5

mvc mini profiler (1.4) & IIS

旧街凉风 提交于 2019-12-04 03:46:25
问题 The solution works great with cassini but as soon as I make it run into IIS (7.5 on Windows 7 / 64), it stops working. All js & css file are never downloaded and the script fails. I looked into the MiniProfilerHanler , the GetHttpHandler method is called for each required js & css but the ProcessRequest method never runs. The same behavior is observed using the sample.mvc project that goes along with the mini profiler sources. 回答1: this is an older question but if you are still trying to get

SignalR Negotiate 404

前提是你 提交于 2019-12-04 02:53:09
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/ ). This one is using SignalR. This seems like a bug in SignalR since the signalr/hubs path is

How can I debug a VB6 IIS Application on Windows 7 64-bit

有些话、适合烂在心里 提交于 2019-12-04 02:46:43
I have a need to be able to debug a Visual Basic 6 IIS Application on Windows 7 64-bit. Not just for a single problem but for continuing development. An attempt to debug results in an error "An unspecified error has occurred" from the WebClass runtime. If I do not debug and simply access the compiled webclass the page loads just fine. Therefore, I don't believe there is anything wrong with the registration / configuration of the application but rather this is somehow related to Windows OS security blocking the VB6 IDE from hooking into IIS and allowing it to debug. Here are all of the things

How can I block all mobile phones from accessing my website

一个人想着一个人 提交于 2019-12-04 02:24:10
问题 I'm in the process of building an ASP.Net/C# site on IIS 7.5 and I would like to block all mobile phones from accessing this website. How can I block/deny access to this website (which uses Windows Authentication) from all types of mobile phones? I'm building an internal application that I want only desktops with IE to access. This is more of a security need than anything. Ideally I would like to check to see if the user is accessing this website via mobile phone (or just approved browsers)

How to use aspnet_regsql.exe

守給你的承諾、 提交于 2019-12-04 02:03:19
I'm having problems Creating Users in a Silverlight Business Application that uses the Local IIS Web Server. If I use the Visual Studio Development Server I have no problems, but once I check "Use Local IIS Web Server" in the properties page and run the application, whenever I try to create a new user using "login->Register now" I get an "Unable to connect to SQL Server" error. I found a similar problem as mine and the solution was to use aspnet_regsql in the command prompt. If I have to use this tool, then I don't know how to use it: aspnet_regsql.exe -S DBServerName -U DBLogin -P DBPassword

IIS 7.5, App pool not in applicationHost.config

霸气de小男生 提交于 2019-12-04 01:33:22
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 management snap-in). I have run iisreset several times and completely restarted the server. Does

IIS 7.5 MVC requires authentication to get static files

别说谁变了你拦得住时间么 提交于 2019-12-04 01:29:52
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 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 only had the IIS_USRS account. For me it ended up being specific static content files that required

IIS 7.5 URL Rewrite - Rewrite a Folder from an URL

旧时模样 提交于 2019-12-04 01:28:34
I use IIS 7.5 and URL Rewrite. I have a website with the following file hierarchy: webroot webroot/LegacySite Both webroot/ and legacy/ are separate App-Folders in IIS. I need to rewrite my URLs so: If a request is http://mysite.co/LegacySite/page.aspx the URL will be rewritten to http://mysite.co/page.aspx Below my Web.Conf (in the webroot folder) does not work properly, could you point out what I'm missing? <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="MyRole" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP

IRegisteredObject not working as expected

做~自己de王妃 提交于 2019-12-03 21:39:07
Background I'm working on an ASP.NET 4 web site (not web application). I'm trying to use IRegisteredObject to allow some long-running code to run in a non-request thread. For testing, I've set the IIS 7.5 application pool's recycle interval to low values so that it will try to recycle while the background thread is running. Code public class AspFriendlyBackgroundJob { private readonly object key = new object(); private readonly Task task; public AspFriendlyBackgroundJob(Action work) { lock (key) { HostingEnvironment.RegisterObject(new Stopper(this)); task = Task.Factory.StartNew(work); } }

WCF Max Instances seems to be limited to 10

蓝咒 提交于 2019-12-03 19:11:36
问题 I have a simple WCF service hosted in IIS7.5 exposed over a wsHttp binding using message security and InstanceContextMode.PerCall I have a simple UI that spins up a configurable number of threads, each calling the service. I have added the perfmon counter ServiceModel4.Instances. Regardless of the number of threads created and calling the service, perfmon shows that the service creates a maximum of 10 Instances. My client config is as follows: <?xml version="1.0" encoding="utf-8" ?>