iis-6

Directory listing denied on ASP.Net MVC 4 app running in IIS 6 Virtual Directory

人走茶凉 提交于 2019-12-04 17:49:39
问题 I am trying to get ASP.Net MVC 4 working on IIS6 and am running into the always fun Directory Listing Denied error. Before you start posting about extensionless urls and how I need to read the Haacked blog post.. I have :) So with that out of the way here is the setup: I have created a new Web Site and configured it to use ASP.Net 4.0. I had to do this because the existing Default Web Site is configured for ASP.Net 2.0 and this breaks extensionless urls. Under the new web site I created a

ASP.net MVC performance with extensionless url on IIS 6

落花浮王杯 提交于 2019-12-04 17:21:17
We are getting ready to do a an initial deployment of an ASP.net MVC app on IIS 6 running on Windows Server 2003. We've been reading about performance issues involving the use of extenionless urls in MVC applications specifically in the case of removing the '.aspx' extension from the controller portion of the url. Has anyone who has deployed an MVC app in the past experienced any performance degradation in this area? Was it noticeable, and was it worth it for having the cleaner URLs? Our application will rarely have to deal with more than 1000 or so concurrent users. Edit: Thanks for all the

Pre-compress static files in IIS 6

别来无恙 提交于 2019-12-04 17:17:16
I am implementing Gzip compression for CSS and JS files on my site and just need to double check something. Is the file compressed on every request? or is it collected and sent from the Temporary folder (if the file exists)? I just want to be sure that my files are not compressed on every request. Also, is this a default behaviour or do I need some extra configurtion? And last, do I need to worry or configure something when using hash tags in the path (to inform the browser that the file has changed) and static file compression? or it should work with no problem. Edit: I am just using static

How do I resolve absolute URLs for different sites in the same parent IIS virtual directory in .NET?

拥有回忆 提交于 2019-12-04 17:16:03
My goal is to share images, css, js, etc. across multiple websites that are all hosted under the same parent virtual directory in IIS. Of course, I could hard code the images paths, but I'd hoped .NET had a method that could intelligently resolve URLs using the IIS configuration. Here is my file/virtual directory structure: Parent Site (Virtual Directory) default.aspx mypage.aspx otherpage.aspx images - logo.jpg css - site.css Subsite1 (Virtual Directory) - default.aspx - products.aspx Subsite2 (Virtual Directory) - default.aspx - products.aspx - miscellaneous.aspx Parent Site , Subsite1 , and

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

偶尔善良 提交于 2019-12-04 14:29:30
问题 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..

IIS 6.0 preventing “PUT” & “DELETE” method types on WCF 4.0 web service calls (403 Forbidden)

瘦欲@ 提交于 2019-12-04 14:08:05
I am a developer trying to assist my server admin in figuring out how to get this issue corrected. But I have an app that is using WCF 4.0 configure-less setup to make RESTful webservices calls. Everything works fine locally but when pushed to my server all PUT and DELETE requests return a 403 forbidden error. After searching around I've been unable to find anything that seems to work, and I'm not sure if there is some logs that would help figure this out, I'm not a server guy and apparently neither is my "server guy". So any tips on where to point him or what might be causing this would be

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

雨燕双飞 提交于 2019-12-04 14:07:18
问题 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? 回答1: 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

Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, or one of its dependencies

好久不见. 提交于 2019-12-04 13:22:44
Please somebody help me fix this issue. Umbraco application as parent on IIS6 has the following version of System.Web.WebPages.Razor. <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> <section name="pages" type="System.Web.WebPages.Razor

Catch IIS level error to handle in ASP.NET

自作多情 提交于 2019-12-04 12:31:38
I am developing an ASP.NET site with C# on IIS 7, but I hope for an answer that will apply to IIS 6 as well. Part of this site is the ability to upload up to 5 images at a time. I have a nice algorithm to resize the image that is uploaded to my optimal size and ratio. So the only real size limitation I have is during the initial upload. I have modified my web.config to raise the packet limit from 4MB to 32MB. For the most part this takes care of my issues. My question comes in the rare cases that a user tries to load more than my limit. I can raise the limit, but there is always a chance a

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

限于喜欢 提交于 2019-12-04 12:25:55
问题 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