iis-7

Get .net to handle all requests in IIS7

99封情书 提交于 2020-01-02 05:46:10
问题 I had an application that was running on IIS 6. All requests went through aspnet_isapi.dll. This was achieved via a wildcard application mapping (which did not verify the file existed). I have copied said application to a machine running IIS7, and would like to get it working again. In the application, any request with an extension of .aspx (or .ashx) are handled in the normal way. Other requests with different extensions (such as .html and .xml) are handled by a custom http module. Some

Can Url Rewrite only rewrite to an internal url?

家住魔仙堡 提交于 2020-01-02 05:24:06
问题 I've installed IIS 7.0 with SharePoint and Url Rewrite module. Are the following sentences or perhaps I have configured something incorrectly to see this result? Url Redirect can redirect a url to any internal (on the same site) or external urls (on a separate site). Url Rewrite can only rewrite to an internal url? Many thanks in advance. 回答1: Url Rewrite can redirect a url to any internal (on the same site) or external urls (on a separate site). 回答2: You can actually rewrite to a different

How do I check whether IIS 6 Management Compatibility feature has been installed?

懵懂的女人 提交于 2020-01-02 05:22:06
问题 Using either VB.NET, C#, or VBScript, how can I check if the IIS 6 Management Compatibility feature and its subfeatures have been installed on a machine running IIS 7.x? 回答1: I performed some tests using a trial copy of Registry Workshop (the Compare Registries function) and found the following: If IIS 7.x is installed, the following Registry key contains information about the installed subcomponents: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Components Each installed feature is

How to configure an Http Handler in IIS 7?

混江龙づ霸主 提交于 2020-01-02 04:48:35
问题 Here's what I want to do: I've created a class library project and this has a class implementing the IHttpHandler interface. Let's call this class ZipHandler. Let's say the namespace is Zip. I want that whenever any Http request comes for a zip file, my ZipHandler should handle it, regardless of whether the request is to an Asp.Net application or a normal virtual directory. Queries: Is it possible (it should be given the hype about integrated pipeline etc. in IIS 7)? How to do it? 回答1: Here's

What version of SSL does IIS 7 use by default, and how does one force it to use SSL v3?

﹥>﹥吖頭↗ 提交于 2020-01-02 04:44:44
问题 I have heard that SSL v2 is a lot less secure than SSL v3 due to flaws in the encryption algorithms it uses. I would like to force my websites running on IIS 7 to use SSL v3. Anyone know how this is done? Also is it worth forcing 128-bit encryption as well? Has anyone had any performance issues with doing this? 回答1: IIS 7 supports at least SSL 3.0, TLS 1.0 and higher. In SSL/TLS, the version used for each connection is negotiated. The client sends a 'hello' message first which indicates the

How would an HttpModule for Custom Authentication interact with Windows Authentication?

匆匆过客 提交于 2020-01-02 03:50:08
问题 I am trying to create a custom HttpModule which controls which users can view a site. I am trying to leverage Windows Authentication to do this. On an individual page, I would probably do something like this: if (HttpContext.Current.User.Identity.Name.Contains("jsmith")) { Response.Write("You do not have the correct permissions to view this site."); Response.End(); } But because I want to make this more configurable at the application level, I would like to use an HttpModule. Here is the

Content Length of HTTP Request > body size

孤街醉人 提交于 2020-01-02 03:37:07
问题 I'm managing a web site which is running fine for last couple of months over IIS 7.5 built with MVC 3.0 ASP.net. Every now and then we are facing a problem when our AJAX POST request (fired through jQuery) fails as the JSON being posted is getting truncated. What we've found so far is that for all such request, the "Content-Length" header of the request has more data than we are actually getting in the request. We've already set maxRequestLength to 51200 in our web.config and I believe the

IIS7 - Specifying content-length header in ASP causes “connection reset” error

百般思念 提交于 2020-01-02 02:54:04
问题 I'm migrating a series of websites from an existing IIS5 server to a brand new IIS7 web server. One of the pages pulls a data file from a blob in the database and serves it to the end user: Response.ContentType = rs("contentType") Response.AddHeader "Content-Disposition", "attachment;filename=" & Trim(rs("docName"))&rs("suffix")' let the browser know the file name Response.AddHeader "Content-Length", cstr(rs("docsize"))' let the browser know the file size Testing this in the new IIS7 install,

Allow Double URL Encoded Request Paths To Be Valid

非 Y 不嫁゛ 提交于 2020-01-02 02:28:07
问题 I have a standard ASP.Net WebForms application running on IIS 7.0 with an Integrated Managed Pipeline. Many of the images on our site have spaces in their files names (e.g. './baseball drawing.gif' ). When we place these images into our html pages we url encode the paths so that our html img tags look like this < img src='./baseball%20drawing.gif' /> Now, the problem comes in when certain search engines and webcrawlers try to index our site. When they scrape our pages they will html encode

WIX: Where and how should my CustomAction create and read a temporary file?

两盒软妹~` 提交于 2020-01-02 02:20:20
问题 I have a script CustomAction (Yes, I know all about the opinions that say don't use script CustomActions . I have a different opinion.) I'd like to run a command, and capture the output. I can do this using the WScript.Shell COM object, then invoking shell.Exec() . But, this flashes a visible console window for the executed command. To avoid that, I understand I can use the shell.Run() call, and specify "hidden" for the window appearance. But .Run() doesn't give me access to the StdOut of the