iis

Multiple Virtual Directories pointed to the same folder on web server

I have a presentation web farm with four load-balanced servers. I have one web application with two website domains that represent that application. Rather than constantly push to two different folder locations, I figured I can push to one location and have a virtual directory on each website point to the single folder on the webserver. ...

Does using ./ in relative links work with Windows servers?

Sorry if this is a stupid question... I've developed an application that creates absolute links by prepending urls with the site root (of whichever site it is hosted). For example: <link rel="stylesheet" href="<?=SITE_ROOT?>/assets/css/global.css"> Notice that a slash is coming after site root. I need to convert this now to be relat...

Tracking where a custom 404 is handled - code, IIS, etc??

Is there any means to track where within code a 404 error is handled? We have a site that we have taken over that doesn't seem to be reacting as expected. We have changed the IIS custom errors page to point to the new page we would like but something seems to still be redirecting it to the old 404.htm file in the root of this site. We...

Is there a file-based equivalent to .htaccess in IIS6? (not config/plugin)

There are lots of similar questions to this, but they all seem to involve either configuring permissions or installing a plugin. I'm looking for a solution that is "dumb" - i.e. to allow the code to be deployed from source control and automatically have access to certain paths blocked, without anyone needing to configure the server. I ...

Can I whitelist IP's using IIS running a PHP site??

As outlined by this guys post, blocking IP's via PHP is pretty easy. However, how can I do this, site wide, using IIS? Here are my (big) caveats: I do not have access to change the php.ini. So I can't use auto_prepend feature. I am on Windows with IIS so I can't use .htaccess. I don't have any PHP "footer" which gets called on all o...

ASP.NET site move to IIS7 results in gibberish characters in page output

I have an ASP.NET site that was working fine running on Windows Server 2003 / IIS6. I moved it to Windows Server 2008 / IIS7 and the aspx page output now includes gibberish text. For example: p���� ����� The majority of the page renders properly, but there is gibberish here and there. I have checked the event logs and there is nothi...

Event-log messages gets expanded when unhandled exceptions are handled by ASP.NET

If I throw an unhandled exception from ASP.NET, a warning is added to the eventlog (as expected). But if the message in the exception contains a %, the message in the eventlog gets garbled: If the Message was Could not find foo%20bar the eventlog will read Could not find foohttp://localhost/testpage.aspxbar Other numeric values...

What to know about IIS?

As much as I hate to admit it, I am a definite noobie when it comes to IIS. I would like to learn more so I am more comfortable with it and don't feel so dumb around colleagues :) Obviously IIS in general is pretty big to tackle in a few paragraphs, so I would like to know what kind of things in IIS are really important to you on a day ...

Multiple Sites on One IIS Server Need Different Outgoing IP Addresses

I have an IIS server set up with multiple web sites, each with their own IP address. It works fine for routing incoming traffic to the right site. However, outgoing traffic all appears to come from the IP address of the physical machine, not the individual sites. They need to appear to the outside world as separate IP addresses becaus...

HTTP 403.9 - Access Forbidden: Too many users are connected

hi I have created an application in VStudio. It ran nicely in debugging mode, but my computer became slower and slower as I worked until it finaly became frozen. after I manualy restarted it, the app wasn't running any more in debug and I get this execption in the browser. Only I am connected right now to the app. I have restarted th...

WSS and creating externally accessible sites

This is simple I hope :) When I create a new web application in WSS does it need to be on port 80 if I want to point an external domain name at it? Everything is standard in terms of IIS and ports that are open i.e. port 80 is the only one open. I am guessing if I let WSS assign a port number to the new web application surely this can...

Does IIS7 use different default membership provider?

Hello, Say I create CreateUserWizard control and use AspNetSqlMembershipProvider (defined in machine.config) as a default membership provider. Assuming I change default provider's requiresQuestionAndAnswer attribute to false, then CreateUserWizard control template should not be required to provide Question and Answer fields. But if I...

IIS7 URL Rewriting Module Replace

I really like the IIS7 URL rewriting module and so far, it worked great for me. There is one thing that I'm not sure how to do: I would like to permanently redirect all URLs that have encoded spaces (%20) in them to a URL that has the spaces replaced with a dash (-). So this: http://www.test.com/About%20Our%20Mission.aspx should be...

IIS / DirectoryEntry / ASP.NET - Logon Failure

Update Putting this at the top because it is crazy :) So some users have it work, some don't. When I use my own account via IE7 it doesn't work (my code catches the exception and falls back to simply using the identity name instead of the AD fullname). When I try via Chrome it prompts me for the username and password, which I supply,...

How can I find the name/ID of the WebApp that a page is running within on IIS7?

I have a page running on IIS7. I'd like to know the name or at least the ID of the WebApp that the page is running in. For instance, if you have DefaultWebSite>MyWebApp>virtualDirectory>myPage.aspx, I'd like to have a piece of code that runs within myPage.aspx and prints out the string: "MyWebApp", dynamically, depending on the name of t...

I can no longer debug classic asp code with visual studio 2008

I've finally found a way to debug classic asp code in visual studio 2008 ... but... http://stackoverflow.com/questions/958968/has-anybody-been-able-to-debug-asp-classic-code-with-visual-studio-2005-or-later ... but ... it only lasted a few days... I'm following these steps http://www.codeproject.com/KB/debug/DebugVBScriptVS2008.aspx...

Can I just drop vjslib.dll into the /bin directory of my application ?

I am in the middle of a production deployment. Unfortunately I am deploying to a tightly controlled environment. It is unlikely I'm going to get clearance tonight to run the full Visual J# redistributable EXE. Our app is currently throwing errors saying that it can't find the assembly "vjslib.dll". Can I just drop this into the bin o...

Reality Question : Do you tune the IIS Max thread pool ??

By default, the IIS 6.0 process creates as many as four threads per processor. We can adjust the maximum number of threads in the IIS 6.0 service process by adding the MaxPoolThreads entry to the following registry path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Inetinfo\Parameters and give the value between 2 - 20. I would...

Using batch file to create IIS Virtual Directory from config file

I am creating an automatic deployment script and need to create an IIS Virtual Directory from the configuration file which is created when you Right-Click the virtual directory and select "All Tasks > Save Configuration to a File" I have done some reading and know there is a script included with Microsoft Windows Server called "IISVDI...

Using FastCGI on IIS 6 to test new application

I'm trying to use IIS6 and FastCGI to test a new application I'm writing. I've set up fcgiext.dll in a virtual directory on a wildcard mapping, but I get Could not find entry for "(null)" on site 1 in [Types] section Even though I have this in fcgiext.ini: [Types] *:1=fcgitest [fcgitest] ExePath=C:\test\fcgitest.exe Protocol=NamedPip...