iis-6

Unable to start debugging on the web server. The debugger cannot connect to the remote computer in MVC

廉价感情. 提交于 2019-12-08 16:41:49
问题 I've just started to work on a MVC project. It's a web portal. I've set my sites on my local IIS 6.0 But when I want to start debugging, I get this error: Unable to start debugging on the web server. The debugger cannot connect to the remote computer. The debugger was unable to resolve the specified computer name. I don't understand that when I want to debug my project locally, what "Remote computer" it's talking about??!! Please help me guys, this is my first task in this company and I have

IIS7.5 Not Compiling Code From App_Code folder

孤街浪徒 提交于 2019-12-08 13:52:19
问题 I just recently upgraded to IIS7.5 locally. Our Production system is IIS6.0 (Windows Server 2005). I have a folder setup with an APP_Code folder in production, linked to IIS as a virtual directory. The code compiles fine there. However, my test environment is local (Windows 7 with IIS7.5). The code here will not compile from the APP_Code folder, same folder and virtual directory construction. I do not have a web.config file (using default inheritance). I did not experience these issues until

Upgraded app to MVC 4, AUTH_USER is blank

早过忘川 提交于 2019-12-08 09:00:01
问题 I have a hybrid classic ASP + ASP.NET MVC 4 application running under Win Server 2k3 (IIS6) which we have upgraded to use MVC 4. The ASP app is attached to the .NET application via a virtual directory. They run in the same application pool (if that matters). This particular app is an admin control panel, and uses basic authentication: Before upgrading the project, when access the url for the virtual folder, the browser would display a login prompt, where I enter my domain-qualified username

Default.aspx page won't load on IIS 6

筅森魡賤 提交于 2019-12-08 07:39:31
问题 Running IIS 6 with a main website using .net 4. I have many sub websites under that mostly running .net 4 and when browsing to them default.aspx auto loads without issue. One of the websites, however, is running .net 3.5 and default.aspx won't load by itself when browsing to an open ended url: http://127.0.0.1/TestApp however if I browse directly to the file it works fine: http://127.0.0.1/TestApp/Default.aspx. Looking at the Documents under the .net 3.5 web application it does show Default

Using a custom URL rewriter, IIS6, and urls with .htm, .html, etc

纵饮孤独 提交于 2019-12-08 06:28:21
问题 I have a custom site I'm building with automatic url rewriting using a custom engine. The rewriting works fine as long as the page url doesn't end in somehting like .htm or .html. For these pages it goes directly to the iis 404 page instead of hitting my rewriting engine first. I have the * wildcard handler in the "Home Directory" section of the IIS6 configuration of that website but these urls seem to be ignored by it (altho things like css, jpg, js, etc to get sent to the url handler in my

ASP.Net Response Filter Clashing with SharePoint 2010 Publishing Site Defaults

青春壹個敷衍的年華 提交于 2019-12-08 05:43:58
问题 I'm debugging an HttpModule with an ASP.NET response filter. This dynamically rewrites portions of rendered SharePoint WCM pages. The publishing pages render fine in SP2007 on both Server 2003 and Server 2008. However the equivalent pages fail to render in SP2010 B2 on Server 2008 R2 / IIS7. The following error is returned by ASP.NET: Post cache substitution is not compatible with modules in the IIS integrated pipeline that modify the response buffers. Either a native module in the pipeline

Best way to reload web assemblies without IISReset

China☆狼群 提交于 2019-12-08 05:09:56
问题 What's the best way to reload assemblies after you do a publish to a website and or gac some assemblies. An easy trick I've learned is to touch the web.config and it reloads the app domain. What are the best practices related to this? Is it possible to update a Server Activated Serviced Component without an IISRESET that is referenced by a webpage? Thanks 回答1: you can run iisapp.vbs /a "App Pool Name" /r This will restart the app pool and leave the rest of the app pools untouched. No IIS

Mod_rewrite for IIS

烂漫一生 提交于 2019-12-08 05:04:28
问题 Is there anything similar to mod_rewrite for IIS 6/7? I want to be able to point several domains (I'm guessing using CNAMEs) to one domain "abc.com", and then do a redirect to "abc.com/start.html" once the browser hits that domain. 回答1: If you're using ASP.NET, URLRewriting.net is good and open source. 回答2: The more advanced tool is ISAPI Rewrite (there is free and paid versions) http://www.isapirewrite.com/ It allows you setting almost all kinds of rules which mod_rewrite can do. 回答3: We use

Time out with a .NET WebRequest on IIS 6.0

旧时模样 提交于 2019-12-08 04:54:46
问题 In my ASP.NET 2.0 web service I am trying to access Google API to translate some texts. Following code does this right : string result = ""; // create the web request to the Google Translate REST interface System.Net.WebRequest oRequest = System.Net.WebRequest.Create("http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=" + System.Web.HttpUtility.UrlEncode("Text to translate") + "&langpair=" + "en" + "%7C" + "fr"); // make the web call System.Net.WebResponse oResponse =

Where to write URL rewrite rule in IIS 6

不问归期 提交于 2019-12-08 04:46:46
问题 I have got this code for detection of mobile device. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <clear /> <rule name="MobDedect" stopProcessing="true"> <match url=".*" ignoreCase="false" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_USER_AGENT}" pattern="android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi