iis

Is there a .NET Library or API to interact with/Edit the IIS Metabase ?

...or am I stuck rolling my own "XML chopping" functions. I'd like to create a small tasktray app so I can quickly re-point a Virual Directory to one of several of folders on my harddisk. Bit of background: I have 3 different svn branches of our code base on my dev machine. Current Production Branch ( C:\Projects\....\branches\Pro...

What causes an application pool in IIS to recycle?

I have been searching for info on this to no avail. The context of why i need this is another question I asked here. More specifically, does creating/updating/deleting files in App_Data cause a pool recycle? If someone could provide a detailed list of what causes a recycle, that would be great. UPDATE: As two users already noticed I wo...

ASP.net information event "Application compilation is starting"

Hi all: We use MSMQ to capture all the event thrown by our asp.net site and store the data into our database. Throughout the day, we can see the event id "1003" with Title = "Application compilation is starting" in our logging database. However, we don't see the corresponding event 1004 which is "Application compilation ends". I was ...

Flush cached data from IIS?

I'm being asked to look into a problem that occurs intermittently on a WebServer running my team's application. Essentially, we have a webservice that does a lookup between codes. If you have Code Type A, you can use it to look up the corresponding Code Type B. Periodically, when memory is running low, when this webservice is called, ...

IIS equivalent of VirtualHost in Apache

Hi Guys, Is there an equivalent to Apache's VIrtualHost for IIS? We want to be able to run multiple websites from one IP and address them with different dns names. i.e. I have www.dom1.com www.dom2.com www.dom3.com that all point to 123.123.10.1. Apache would just be running on port 80 and just use virtualhost to decide which sit...

ASP.NET and Sessions - New Browser Instance versus New Browser Window

I'm hoping someone can clarify this behavior for me, and explain how ASP.NET is deciding when to treat something like a new Session. A) In Internet Explorer I load the ASP.NET site in question. It starts a new Session. B) If I go to menu File - New Window... it stays within the same Session. C) If I launch a new instance of Internet Exp...

Getting TRAC to run on IIS7

Im trying to get Trac upp and running on my IIS/w2008 server using this FAQ: TracOnWindowsIisAjp Everything upp until "3. Install Tomcat AJP Connector for IIS" works ok. I then define my directories as : C:\wwwroot\trac.evju.biz\AJP\, in the bin catalog I place the dll file, and 3 config files with this content: isapi_redirect-1.2.26.p...

Detect whether IIS is Enabled

Hi Is there a way to detect whether IIS is enabled or not? I know how to check if it is INSTALLED, but I need to know if it's installed but not enabled. Also, can this be done natively via InstallShield? Checking this via .NET would be acceptable as we can write custom actions, but if there is an IS call then that would be ideal. An...

IIS SMTP: Exceeded storage allocation response

Hey all. We're sending quite a few emails (around 23k) using IIS6 SMTP service and receive about 7-8 error messages each time. The stack trace is: System.Net.Mail.SmtpException: Exceeded storage allocation. The server response was: 4.3.1 Session size exceeds fixed maximum session size at System.Net.Mail.DataStopCommand.CheckRespons...

.net cache size

Is there a way to monitor the size of the cache on your web server? I just want to see how much of my server's memory is being taken up by the cache. ...

what alternatives are there to using global.asax?

I am using my own custom authentication with IIS, and I want the server on every page load (no matter what type of file) to first check the Application variable to see if the user is authenticated and authorized to see the site. In global.asax this could be: void Application_Start(Object Sender, EventArgs e) { if(Application["username...

in IIS, what's the difference between "application" and "session" ?

A Session is per browser (determined via cookies), but when does an "Application" start, and end, and how does IIS know know when a request is a part of the same same "Application" instance (if not done via cookies the same way that sessions are)? ...

Why do I need to explicitly output the HTTP header for IIS but not Apache?

I am trying to set up apache instead of IIS because IIS needlessly crashes all the time, and it would be nice to be able to have my own checkout of the source instead of all of us editing a common checkout. In IIS we must do something like this at the beginning of each file: use CGI; my $input = new CGI(); print "HTTP/1.0 200 OK"; prin...

Cookie problems with virtual directories in IIS (deleting unwanted cookies)

I've just had a small nightmare with unwanted cookies somehow being created. I swear my code never created a cookie in a certain virtual directory, it just read it, but somehow my browser ended up with a root cookie and a copy of this cookie for the vdir too. Which meant the two values were separate and did not both get updated. Most ar...

.Net 1.1 Web application is picking up web.config from root folder

I have a .Net 1.1 web application sitting in a folder called C:\inetpub\wwwroot\MyTestApp, where 'MyTestApp' is a virtual directory and is configured to be on ASP.Net version 1.1.4322 in IIS 5.1. In the root directory (C:\inetpub\wwwroot) there is a web.config file for a .Net2.0 application, because the root folder contains some web pag...

IIS Page Redirecting for no apparent reason

I'm the IIS admin, not the developer on this site, so the code is opaque to me. I'm stumped, though, for where to look. Using Windows Forms Authentication, the user is directed to a login page. If their password is expired, they are directed to ChgExpiredPwd.aspx. On our dev and test servers this works. On our production server, the us...

How to stop a IIS website copying a file into it

Hi, I remember it is possible to stop a website in IIS simply creating a file in the site directory with a special name. But I don't remember the name and can't find it in google. Can you help me? ...

Empty $_POST array in PHP 5.2.6 / IIS CGI

I am running into a very strange issue with PHP 5.2.6 w/ IIS on Windows XP (have tried both CGI and ISAPI). I am running a fresh installation with the default php.ini settings. First, assume the following (ugly, but effective) HTML code: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <input type="hidden" name="test1...

Can I automate creating a .NET web application in IIS?

I need to deploy a web application on several laptops (although it is a web application, it is intended to run via localhost only - thus the need to deploy on several different machines). Normally I would go to IIS and right click a directory to create a web application, but I would very much like to automate this leg of the installatio...

Adding a Web Domain on Windows Server 2008

Hey I recently purchased a Windows Server 2008 server, Our company will be using it as a Web Server. I have set the web site up in IIS 7.0 and I can accsess it by typing http://10.1.1.8 on the computers within the network. When I try to accsess it through the net on other computers it doesnt seem to work, But most important, How do I ...