iis-7

ASP.NET code to detect whether IIS “Windows Authentication” is enabled

不想你离开。 提交于 2020-01-02 01:36:29
问题 I would like to be able to detect, from ASP.NET code, whether IIS currently has "Windows Authentication" "available"? Starting from my application installed and currently running under "Anonymous Access", I want to detect: "Windows Authentication" component has actually been installed in IIS (e.g. some IIS7 have it not installed by default); and... "Windows Authentication" is actually "Enabled" on my virtual root/location. I want this information to let the Administrator know whether he needs

IIS7: Possible causes of 'Unrecognized configuration path' error

半城伤御伤魂 提交于 2020-01-02 00:53:11
问题 After setting up an ASP.NET website in IIS7 I get an Internal Server Error (500.19) that says: 'Unrecognized configuration path'. What are possible causes of this error? (Setting up other ASP.NET websites works OK, but for a particular website it does not work and I cannot figure out the difference.) Detailed error description: Error Summary: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed

Application_Start() gets called more than once

你说的曾经没有我的故事 提交于 2020-01-02 00:52:20
问题 I have an application made on asp.net mvc 2 and it is on IIS 7.5 on my pc I tried profiling it and I noticed that Application_Start gets called more than once , anybody knows why is this happening ? 回答1: The Application_Start event is fired once when the application domain is loaded. If you see it firing more than once then this would mean that the application restarts. There are multiple reasons an application domain could get unloaded like deleting modifying some of the files like web

What is the worker process for IIS7?

北城余情 提交于 2020-01-01 23:21:10
问题 I'm trying to do 'Attach to Process' for debugging in Visual Studio 2008 and I can't figure out what process to attach to. Help. 回答1: Indeed it is still w3wp.exe - You'll need to check the ' Show processes in all sessions ' option to get it to show up though. (It caught me out for a while too.) 回答2: Isn't it w3wp.exe? 回答3: Here's a useful article for identifying w3wp processes, if you're running more than one. For IIS 6.0 Start > Run > Cmd Go To Windows > System32 Run cscript iisapp.vbs You

What is the worker process for IIS7?

纵饮孤独 提交于 2020-01-01 23:15:42
问题 I'm trying to do 'Attach to Process' for debugging in Visual Studio 2008 and I can't figure out what process to attach to. Help. 回答1: Indeed it is still w3wp.exe - You'll need to check the ' Show processes in all sessions ' option to get it to show up though. (It caught me out for a while too.) 回答2: Isn't it w3wp.exe? 回答3: Here's a useful article for identifying w3wp processes, if you're running more than one. For IIS 6.0 Start > Run > Cmd Go To Windows > System32 Run cscript iisapp.vbs You

Is it possible to use a Relative path when setting a custom error page in IIS7?

时间秒杀一切 提交于 2020-01-01 23:10:41
问题 I'm trying to set a custom 404 error page for my web application. The trouble is that this application will be deployed to a number of different environments. Sometimes it will be in a virtual directory and sometimes it won't. I have the error page in a directory called ErrorPages and have set up my config like this: <httpErrors errorMode="Custom" existingResponse="Replace"> <remove statusCode="404"/> <error statusCode="404" path="/VirtualDir/ErrorPages/404.aspx" responseMode="ExecuteURL" />

Angular 2 routing raising 404 errors

倖福魔咒の 提交于 2020-01-01 15:48:18
问题 HTML5 PushState means refresh URL or enter direct URL in browser works perfectly fine when I run my angular app using 'npm start' command from VS 2015 command prompt. However when I deploy same application on IIS and change <base href="/"/> to <base href="/MyVirtualApplication/" /> then HTML5's PushState or History API doesn't work properly and raising 404 error. Please do suggest. 回答1: EDIT : IIS Setup for Url Rewriting: You need to install this to make the following work: http://www.iis.net

Angular 2 routing raising 404 errors

自作多情 提交于 2020-01-01 15:48:12
问题 HTML5 PushState means refresh URL or enter direct URL in browser works perfectly fine when I run my angular app using 'npm start' command from VS 2015 command prompt. However when I deploy same application on IIS and change <base href="/"/> to <base href="/MyVirtualApplication/" /> then HTML5's PushState or History API doesn't work properly and raising 404 error. Please do suggest. 回答1: EDIT : IIS Setup for Url Rewriting: You need to install this to make the following work: http://www.iis.net

Angular 2 routing raising 404 errors

£可爱£侵袭症+ 提交于 2020-01-01 15:48:04
问题 HTML5 PushState means refresh URL or enter direct URL in browser works perfectly fine when I run my angular app using 'npm start' command from VS 2015 command prompt. However when I deploy same application on IIS and change <base href="/"/> to <base href="/MyVirtualApplication/" /> then HTML5's PushState or History API doesn't work properly and raising 404 error. Please do suggest. 回答1: EDIT : IIS Setup for Url Rewriting: You need to install this to make the following work: http://www.iis.net

Do you lose functionality when hosting ASP.NET MVC on IIS 6? If so, what?

末鹿安然 提交于 2020-01-01 11:37:12
问题 As a dev team, we're looking to switch to asp.net MVC and I've heard rumors about IIS 6 not being able to support all of the MVC functionality. Is this true? Is there any official set of functionality supported in IIS 7 vs IIS 6? Should we completely avoid running it on IIS6? 回答1: You do not loose any functionality of ASP.Net MVC; however, you have one of two options. You can either define an extension on your URL's which will allow you to set up mapping. So for example: www.example.com/books