iis-7

401 Using Multiple Authentication Methods IE 10 only

♀尐吖头ヾ 提交于 2019-12-13 20:24:43
问题 I am not sure if this is more of a coding issue or server setup issue... On our production site we've run into an issue that is specific to Internet Explorer 10. I am using jQuery doing an ajax POST to a web service on the same domain and in IE10 I am getting a 401 response, IE9 works perfectly fine. I should mention that we have mirrored code in another area of our site and it works perfectly fine in IE10. The only difference between the two areas is that one is under a subdomain and the

Read IIS7 configuration from within web application?

眉间皱痕 提交于 2019-12-13 18:17:46
问题 Here's what I want to do: My web application is very slow at first until all pages have been precompiled and the cache has been populated. I want to 'warm up' the application in Global.asax by triggering a few HTTP requests to the slowest pages. The problem is that I don't know which port the application is running on. Could be 80 (my local IIS or the deployed server, 8080 on our test server or some random port for some colleagues who use the ASP.NET development server) I thought it would be

Reset Static variables in IIS

≡放荡痞女 提交于 2019-12-13 16:24:48
问题 I have assigned value for static variable in Application start event of ASP.NET MVC application. protected void Application_Start() { public static list<string> versionInfo = VersionAccess.LoadVersionInfo(); } In this static variable "versionInfo" assigned list of some values that get from database. Used this static variable throughout the mvc application. This is working fine when i hosted this app in IIS. And later i have added some more values in database. So the static variable values

“Could not load file or assembly 'X.dll' or one of its dependencies. The specified module could not be found.” - on host server

一世执手 提交于 2019-12-13 16:18:17
问题 The X.dll is my C++/CLI dll, placed in the bin folder of the website. It works OK on local machine and initially it worked OK on the server. But I changed hosting accounts and suddenly I got this error. Should I somehow reference this assembly in the web.config? I've heard there are issues like this with unmanaged dlls, but the assembly in question is managed. Full message: Could not load file or assembly 'X.dll' or one of its dependencies. The specified module could not be found. at System

Custom 404 Page not showing when StatusCode is not 200

微笑、不失礼 提交于 2019-12-13 15:11:11
问题 In my web.config file I have custom errors enabled: <customErrors mode="On" defaultRedirect="~/Error"> <error redirect="~/Error/NotFound" statusCode="404" /> </customErrors> My NotFound action: public ActionResult NotFound() { Response.StatusCode = 404; //no issues when this is not set return View(); } The problem: This configuration works fine on a local server, but when I move it to a remote server custom 404 pages are not shown (IIS default 404 is displayed) unless the status code of

Cannot put breakpoint in an ASP.NET MVC view when running in IIS7

∥☆過路亽.° 提交于 2019-12-13 14:13:42
问题 I'm forced to use IIS7 because Casini is only x86 and we are running with x64 ELMAH. Something I've noticed since I've switched is that I cannot set breakpoints in ASP.NET MVC views anymore. I'm not totally sure it's because of IIS7, is it? Does it happen to you as well? The Visual Studio (2008) project is configured to use the local IIS7. I normally run the project by pressing F5, which actually doesn't run anything. It compiles the code and attaches itself to the corresponding IIS7 process.

Custom http status code for specific resource in IIS

梦想与她 提交于 2019-12-13 13:23:07
问题 I have a web site with a single 'app_offline.htm' file. How can i configure IIS to return it with specific status code (say, 209) instead of default one (200)? 回答1: An alternative to using the 'app_offline.htm' feature of ASP.Net could be to use the IIS URL Rewrite Module, it has a huge bag of tricks and setting custom response codes is one of them. If the content of the page is not important, only the response code, then with that module you can configure a rule that will return a blank

“Unable to connect to remote server fail” in HttpWebRequest

时光总嘲笑我的痴心妄想 提交于 2019-12-13 11:35:19
问题 I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). I find when the # of request threads are big (e.g. 2000 threads), the client will receive error "Unable to connect to remote server fail" when invoking response = (HttpWebResponse)request.GetResponse().My confusion is -- I have set timeout to be a large value, but I got such fail message within a minute. I think even if the connection are really larger

My Working Application MVC3 Razor Unexplainably stopped working :-( IIS 7

▼魔方 西西 提交于 2019-12-13 10:09:24
问题 I have the following projects within my solution. MyWebApplication.Data --> Here i interact with my Data Repository MyWebApplication.Services --> Here i interact with the Data Layer MyWebApplication.Web --> The UI which relies on the Service Layer MyWebApplication.Tests --> Unit testing project For MONTHS i have had NO problems with IIS in my local dev environment. Ready for a long weekend of programming but all day i have been getting 500 Server Errors when simply trying to resolve the Home

WCF Service as a replacement for ASPX service

拟墨画扇 提交于 2019-12-13 07:46:24
问题 Hopefully you will be able to help me with this. I have been interested in developing a n-tier web app, UI - WCF Service - Entity Framework Data Layer, so that my datalayer is not directly access from the web app. I have created my data layer, WCF service and web app all in their own projects contained within one solution, and I am able to add a Service Reference (WCF Service) to the web app. This all works fine, and I understand how it all works. However I am confused at how I would deploy