The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
227 views

SetEnvIfNoCase Host: .htaccess to web.config conversion

I have tried IIS Manager and some online conversion tools but I can't figure out how to achieve the following .htaccess rules in a web.config file: SetEnvIfNoCase Host my-domain.com nopassreq ...
0
votes
2answers
188 views

ASP.NET 2.0 in Virtual Trying to Use SQL State Server

We have IIS 6 running on a W2003 Server. The root web site is running a v1.1 site. Under this site we have a virtual running a v2.0 site (with a separate application pool). The web.config for the root ...
3
votes
1answer
253 views

IIS 7 Redirect from HTTP to HTTPS fail with ampersand in URL

IIS 7 on Windows Server 2008 R2 SP1 I have added the following rule to my web.config to redirect all incoming request to HTTPS <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <...
2
votes
1answer
907 views

IIS ignoring mime-type settings and serving file as application/octet-stream

We added both handlers and mime-types for IIS in the web.config to tell the server how to handle the different types of audio and video files we are using on the site. IIS does not seem to be ...
1
vote
1answer
1k views

HTTP Error 500.19 - IIS Error

I have following lines in my web.config file. All I am trying to achieve is to display a custom error page if anything goes wrong in application. But instead of getting the custom page I get error as ...
1
vote
1answer
1k views

IIS 7.5 ignoring local HTTP handlers

I am trying to serve a simple proxy application for a web service. For this purpose, I have a HTTP Handler that passes on any request to my website to another website configured in the web.config. The ...
1
vote
1answer
927 views

IIS: acess denied to Web.Config file

I'm trying to set up a new website in a Windows Server 2003. In this server there is already a website, classic ASP, in port 80. I'm configuring this new one (ASP.NET 3.5) in port 82 with, actually, ....
1
vote
1answer
647 views

How to configure 503 (service unavailable) response header in IIS 7 web.config?

My site is on a shared host and I need to do some maintainance work, which needs downtime. For SEO reasons I need to cause a 503 http response to be sent to clients. How can I do that from my web....
1
vote
1answer
96 views

How to setup IIS to perform basic http authentication against MS SQL database?

how to setup IIS to perform basic http authentication against MS SQL database (and not to use Windows domain) The existing WS-Federated security is mapped to MS SQL database. We'd like to migrate to ...
0
votes
1answer
19 views

Server 2012 URL Rewrite Module 2 always has 404

URL rewrite was working perfectly on Windows Server 2008, but I'm getting 404 errors when using the same configuration on Server 2012 <rewrite> <outboundRules> <...
0
votes
1answer
337 views

Granular Redirects in IIS and ASP.NET MVC

The marketing people decided that they want us to change the URL of a page. So anything like: http://www.boyscouts.org/NewClubOpening/ http://www.boyscouts.org/NewClubOpening?c=16 http://www....
0
votes
1answer
121 views

Notifying a windows service when there is a change in “web.config” or “applicationHost.config”

I am trying to optimize the no. of file reads made to "web.config" or "applicationHost.config" by my service. I'm planning to do it by reading the requested configuration into the memory if the same ...
0
votes
1answer
829 views

Block directory access in IIS but allow specific file through

Is it possible to block access to a directory through the web.config in IIS (excluding a small set of IPs) but allow through one specific file for everyone. The reason I ask, I want to block the wp-...
0
votes
1answer
53 views

fresh installation of IIS 7.5 ignores <system.web> in my web.config

I have deployed a web application as usual, but on already installed and running Windows Server 2008 R2 with IIS 7.5. On all machines until now the application works fine, but here an entire <...
0
votes
1answer
174 views

IIS 7 deploy rewrite rules on a website

I have to apply some redirect rules on IIS7/VS2008 and have question on how to deploy it. We have a website and not web application and hence most of other SO questions were not useful to me. in ...
0
votes
1answer
257 views

Ignore subdomain rewrite rules

I'm having difficulty having a sub folder act differently to the main domain in my web.config for iss. I want to prevent the sub folder from rewriting to the baselevel index.php and instead re-write ...
0
votes
1answer
842 views

Exception has been thrown by the target of an invocation

Line 54: <providers> Line 55: <clear/> Line 56: <add name="RolesProvider" type="Eacademy.Library.Membership.CustomRoleProvider, Eacademy" /&...
0
votes
1answer
160 views

Bypass OnAuthenticateRequest from web.config for certain paths

We have a web-app that basically catches all requests for url-rewriting purposes, except for a certain sub directory (/static) which has it's own web.config (NOT a subapplication!), which defines a ...
0
votes
1answer
842 views

gcServer config not taking effect

I'm supporting a ASP.NET v2.0 app installed on a Windows 2003 SP3 Enterprise on a quad core 8G machine running on .NET 2.0 SP1. 1.before enabling the config, ran "tasklist /m mscorwks.dll" Image ...
0
votes
1answer
376 views

Allowing creation/modification of virtual aliases using web.config

I've been given a problem to fix, and I initially thought of .htaccess files, except for one thing, I quickly realized it's an IIS server. Is it possible to allow a webmaster the ability to modify ...
4
votes
0answers
149 views

Restrict access to a subdomain with web.config on IIS7?

I need to password protect a "dev" subdomain on a server with the web.config file on IIS7. I don't have access to anything besides the files and web.config, so I can't install modules or anything else ...
4
votes
0answers
815 views

IIS7 proxying VisualSVN server refuses to allow Web.config files to be committed

I use IIS 7.5 with the Application Request Routing and URL Rewriting modules to act as a reverse proxy for several apache-based web sites, including VisualSVN Server. I'm having a problem when I try ...
2
votes
0answers
369 views

IIS 301 permanent redirect goes into infinite loop

I would like to replace my old domain (oldsite.com) with (newsite.com) and permanently redirect my users. I have the following in my application web.config file: <rule name="Redirect to new site" ...
2
votes
0answers
423 views

IIS seems to think I have duplicate Custom Headers defined; complains about it

I am a software developer and I debug a website on my local machine in IIS 7.5. Recently I experienced problems with my machine that would not go away, so I backed up, formatted, resintalled Windows ...
2
votes
0answers
1k views

Is it possible to use local web.config to enable keep-alive?

Is there any way to enable keep-alive on IIS 7 in a hosted scenario? I attempted to use the answer to this SO question Where (or how) is the keep-alive setting in web.config?. I added the following ...
2
votes
0answers
393 views

How can I password protect an IIS directory with only FTP access?

How can I password protect an IIS directory when I only have FTP access to the server? I can't adjust any IIS settings or add users or anything like that. The answer to: IIS Basic Authorization ala ...
1
vote
0answers
31 views

Copy PHP website to virtual folder under IIS 8.5

I would like to make an existing PHP Website (Apache) run on a virtual folder under IIS 8.5. With the help of some nice online tools I translated the following .htaccess content: <IfModule ...
1
vote
0answers
729 views

application/json content doesn't get gzip'ed with IIS

We have some rather lengthy AJAX calls in our app, some of which transmit over 100k of data across a rather slow encrypted network. I'd like to enable G-Zip compression on application/json to speed ...
1
vote
0answers
337 views

URL Rewrite error with Web Applications

I am running an ASP.NET 4.0 website using IIS7 on Windows Server 2008 R2. The site has a number of Web Applications under the main domain (~/site1, ~/site2, ~/site3, etc...). Each Web Application is ...
1
vote
0answers
823 views

How to encrypt a section within web.config using aspnet_regiis -pe or -pef

I am a developer trying to encrypt part of my web.config file in an ASP.NET site (first time I've tried this...). Having repeated failures with all types of syntax changes, so perhaps better to post ...
0
votes
0answers
6 views

IIS8 adds trailing slash to to none-found JPG images

How do I prevent IIS for serving JPG images through the process pipeline. When I put a link to an image that doens't exist on the server, it returns it with traliing slash due to the rule in my web....
0
votes
0answers
42 views

How can you set PHP-CGI in IIS to run in the same app domain as an asmx web service?

We have an IIS web server that's running PHP-CGI, a few asmx web services, and some other things on the same general website. That being said, I've created a dll that is used by the web services ...
0
votes
0answers
52 views

IIS 8 cant find Web.Config file

We currently have a windows server 2012 r2 running 6 websites and im currently in the process of moving these to a new windows server 2012 r2 I've started moving 1 website by moving all the files, i ...
0
votes
0answers
11 views

One web application with a lot of web configurations

We have a web application, installed several times on different servers each time with a different configuration file. These configurations files change the behavior of the web application and right ...
0
votes
0answers
27 views

IIS appends /web.config at the end of static files

I am trying to debug a 401 error in IIS that happens when serving static files to an anonymous user. Let's say I'm trying to access https://example.com/sso.css. That file physically resides on D:\...
0
votes
0answers
11 views

Multiple domains pointing to one server. Using a rewrite rule to set preferred domain

I just launched a new website for a client. As part of the new launch I want to try and sort out their domains. Currently they have 3 domains all pointing to the same server which is bad when it comes ...
0
votes
0answers
76 views

IIS url rewrite with rewritemaps non working

on IIS 7 windows 2008r2 we are have URL rewrite module working with external rewrite config files working fine. When I try to add an extral rule to redirect a special path to another site it doesn't ...
0
votes
0answers
191 views

Remove .php extension only in certain directory - web.config

I'm having trouble making the pattern for matching the urls in a certain directory. I want to redirect users from mysite.com/posts/some-post.php to mysite.com/posts/some-post meaning that I want to ...
0
votes
0answers
232 views

web.config rewrite rule from subdomain to folder using root web.configs connection string

We have a rewrite rule in place to forward demo.website.com to the subfolder which contains the Demo website (website.com/Demo). The problem is that it is still using the root web.configs db ...
0
votes
0answers
220 views

Web.Config size limit for Azure Websites

I have an ASP.NET web application which I am migrating to Microsoft Azure. For various reasons, our web config file has grown to be rather large. On our "on site" instance, we have solved this by ...