iis-6

ASP.net MVC site : Redirect all “non WWW” request to WWW

99封情书 提交于 2019-12-03 10:03:48
问题 Recently I migrated an ASP.net site to ASP.net MVC site. Earlier there were two host headers one mydomain.com and another is www.mydomain.com. My SEO says you should use only one url "www.domain.com" for SEO advantage. I am looking for an option to do 301 permanent redirect all mydomain.com request to www.mydomain.com. The site is hosted in IIS6 and developed in ASP.net MVC 4. 回答1: Unfortunately, the URL rewrite module does not work with IIS6 (only IIS7 or greater). Have you considered

WCF not running under IIS 6.0

倾然丶 夕夏残阳落幕 提交于 2019-12-03 09:35:11
问题 Trying to get my WCF service running under IIS 6. I have created the .svc and aspnet_isapi.dll mapping according to: http://msdn.microsoft.com/en-us/library/ms752241.aspx When viewing the Server1.svc page, I am getting a 404. I have tested the site with a simple .aspx page to ensure the URL is working, but again the .svc extension isn't. I have .NET 3.5 SP1 installed, my web.config is referencing 3.5 assemblies, and I don't get an error when viewing a .aspx page so it is picking those

How do I set the cachability of static files in IIS?

[亡魂溺海] 提交于 2019-12-03 08:54:56
I have some static images in a folder on my IIS 6-based website that I want to be downloaded as little as possible (to preserve bandwidth). I've set the Content Expiration to expire after 30 days. Is there anything else I can do in IIS to try to maximize the caching by browsers, proxy, and gateway caches? Such as adding a Cache-Control header? Anything else? Mischa Kroon http://www.galcho.com/Blog/post/2008/02/27/IIS7-How-to-set-cache-control-for-static-content.aspx This is a blog post covering the following: Allow overriding static content setting set cache settings using following commands

How to enable 32-bit applications mode in IIS 6 and IIS 7 using c#

╄→尐↘猪︶ㄣ 提交于 2019-12-03 08:39:10
I want to change Enable32BitAppOnWin64 property using C#. I know that the way of interacting with IIS 6 and IIS 7 are different. but I need the solution for both versions. There are a few differences in programmatically managing IIS 6 and IIS 7. IIS 6 is programmatically managed using the DirectoryEntry class and the metabase database API. IIS 7 is managed using the Microsoft.Web.Administration assembly and the ServerManager class. Furthermore IIS 6 is not able to run both 64 bit and 32 bit worker processes at the same time (see this MSDN BLOG ). So setting Enable32BitAppOnWin64 to true for

How to read an IIS 6 Website's Directory Structure using WMI?

匆匆过客 提交于 2019-12-03 08:35:19
I need to read a website's folders using WMI and C# in IIS 6.0. I am able to read the Virtual directories and applications using the "IISWebVirtualDirSetting" class. However the physical folders located inside a website cannot be read using this class. And for my case i need to read sub folders located within a website and later on set permission on them. For my requirement i dont need to work on Virtual Directories/Web Service Applications (which can be easily obtained using the code below..). I have tried to use IISWebDirectory class but it has been useful. Here is the code that reads IIS

Configuring IIS 6.0 to execute cgi(.exe)

五迷三道 提交于 2019-12-03 08:08:35
I already create a virtual directory (cgi-bin) with permission : Scripts and Executable... When I test : http://localhost/cgi-bin/mapserv.exe , I got 404 error, The page cannot be found Am I supposed to Add a EXTENSION mapping to .exe files ? Which executable ? Thanks! I solved that: Go to Web Service Extensions in the IIS service manager Select Add a new web service extension. On the required files tab, add C:\YourMapserverInstalldir\mapserv.exe Set it to allow Thanks anyway... Yes, you will have to create an application mapping between the file name extension of your script and the script

How to create a self-signed wildcard SSL certificate for IIS 6?

巧了我就是萌 提交于 2019-12-03 08:06:05
I'm trying to create a self-signed wildcard SSL certificate for use on a number of development and test servers running IIS 6. Following various guides has led to a couple ways of generating the certificates, but I haven't had any luck getting it to work. The most successful ways I've had were following this OpenSSL guide and using makecert.exe like so: makecert.exe -r -b 01/01/2009 -e 01/01/2042 -sr LocalMachine -ss MY -a sha1 -n CN="*.example.com" -sky exchange -pe -eku 1.3.6.1.5.5.7.3.1 -sy 12 -sp "Microsoft RSA SChannel Cryptographic Provider" wildcard.cer Both of which generate

Can't get ServiceStack to work in IIS6 with HTTPS

一笑奈何 提交于 2019-12-03 07:15:33
I'm having a problem getting ServiceStack to work with HTTPS in IIS6 and I can't seem to find any documentation on setting this up. Currently I have an endpoint setup like so - http://example.com/api.ashx . When I browse to this, i get the useful ServiceStack generated page which explains the APIs available at http://example.com/api.ashx/metadata . When i browse to https://example.com/api.ashx (notice https) i instead get this error message - Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could

Difference between IIS 6.0 vs IIS 7.0

社会主义新天地 提交于 2019-12-03 05:19:54
We are using Windows 2003 server with IIS 6.0 and thinking of migrating to Window Server 2008 with IIS 7.0 to host our .Net applications Is anyone aware what are the benefits or drawbacks of it? One definite benefit is the new "Integrated Mode" on application pools. This allows asp.net to hook into the pipeline earlier than was possible in iis6. Some of our applications use this to do url rewriting for files which was previous impossible with out adding a wildcard extension mapping to the asp.net dll. Another feature that I've found useful is remote management. I believe remote management may

In WiX how can I select an IIS website by name?

ε祈祈猫儿з 提交于 2019-12-03 04:30:37
问题 What I would like to do is show the installer user a list of the websites on their server and allow them to choose one (using the method described here: http://www.cmcrossroads.com/content/view/13160/120/, which now seems broken see here for the core code). The installer would then create a virtual directory in the chosen website. However, my searching seems to have revealed that the only way to specify a website in WiX is by IP, Port, and Header. Asking for these is not very user friendly,