iis

Comet implementation for ASP.NET?

I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the Comet concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0). The solutions I found (or could think of, for that matter) require leaving a ru...

Passing data between a parent app and a virtual directory

I have an application that runs as a child application in a virtual directory. I want to pass a value from the parent application, but I believe that Session is keyed per application, and won't work. To further complicate things, the parent application is WebForms, while the child is NVelocity MVC. Does anyone know a trick that allows...

How to configure IIS7 to allow zip file uploads using classic asp?

I recently installed Windows 2008 Server to replace a crashed hard drive on a web server with a variety of web pages including several classic ASP applications. One of these makes extensive use of file uploads using a com tool that has worked for several years. More information: My users did not provide good information in that very s...

ASP.Net Session_Start event not firing

I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. Can anyone tell why this is happening and how I can get it working? The application worked fine on my Windows XP development machine, but stopped working when deployed to the server (Win Server 2003/IIS 6/ASP.Net 2.0). I'm not sure...

IIS is keeping hold of my generated files

My web application generates pdf files and either e-mails or faxes them to our customers. Somehow IIS6 is keeping hold of the file and blocking any other requests for it claiming the old '..the process cannot access the file 'xxx.pdf' because it is being used by another process.' When I recycle the application pool all is ok. Does anybo...

IIS configurable http-headers for caching

How would one configurably set http-headers to cache files in IIS >= 6? Example: *.cache.* => cache nearly forever *.nocache.* => never cache An example framework using this naming would be the GWT framework. ...

Limit dev environment to e-mail only certain domains for testing (XP smtp IIS)

I'm developing a website on an XP virtual machine and have an SMTP virtual server set up in IIS -- it delivers mail just fine. What I would like is to confirm that any emails the site sends are only going to a specific domain. The XP firewall seems to only involve incoming connections, I can't block outgoing TCP on port 25. And I haven'...

How can I limit execution time for a Perl script in IIS?

This is a shared hosting environment. I control the server, but not necessarily the content. I've got a client with a Perl script that seems to run out of control every now and then and suck down 50% of the processor until the process is killed. With ASP scripts, I'm able to restrict the amount of time the script can run, and IIS will...

mmc could not create the snap in error when launching internet information services

I am getting this error when trying to run internet information services on a Virtual Machine running windows XP. Anyone have any idea? ...

How do I use LogParser to find out the LENGTH of a field in an IIS Log?

I'm trying to find LONG UserAgent strings with LogParser.exe in my IIS logs. This example searches for entries with the string 'poo' in them. LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE cs(User-Agent) LIKE '%poo%'" I'm trying to say "How many entries have a User-Agent that is longer than 'x'". ...

Getting windows/domain credentials in asp.net while allowing anonymous access in IIS

I have an asp.NET webapplication running in our datacenter in which we want the customer to logon with single sign-on. This would be very easy if we could use the IIS integrated security. However we can't do this. We don't have a trust to the domain controller of the customer. ANd we want to website to be available to the general intern...

Does an IIS worker process clear session variables when it recycles?

We're writing an asp.net web app on IIS 6 and are planning on storing our user login variables in a session. Will this be removed when the worker process recycles? ...

How To Read Active Directory Group Membership From PHP/IIS using COM?

I have the following code: $bind = new COM("LDAP://CN=GroupName,OU=Groups,OU=Division,DC=company,DC=local"); When I execute it from a command-prompt, it runs fine. When it runs under IIS/PHP/ISAPI, it barfs. Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `LDAP://CN=...[cut]...,DC=local': An...

Best way to set up CruiseControl for IIS 5.1 dev box and IIS6 server

Can anyone point me in the right direction on this. From reading the FAQs at cruisecontrol, it appears that you should develop in the same environment as you produce. But i have Windows XP (which only runs IIS 5.1) on my dev machine and the server is 2003. Thanks ...

How do I limit the number of simultaneous downloads in Asp.net and/or IIS?

I have a website with a lot of large files. However, I want don't want users to start downloading like 10 files at a time. I noticed there are website out there where they only allow 2 simultaneous downloads. My website is programmed using ASP.net running on IIS. Does anyone know how I can limit simultaneous downloads? ...

Using both 1.1 and 2.0 frameworks on Windows 2003 x64

So, much to my annoyance I discover (after lots of research), that when running 1.1 and 2.0 dot.net frameworks on a 64bit 2003 install, it removes the asp.net tab from the IIS properties. I've tried the registry hacks, I've tried registering 32bit versions of both frameworks, and no luck. My only work around is running the excellent AS...

Kerberos Delegation for Clients Ouside the Firewall

I am trying to run a SQL Server Reporting Services where the data for the report is on a SQL Server database that's on a different server. Integrated Authentication is turned on for both the Report Server and the report. I have confirmed that Kerberos delegation is working fine by using Internet Explorer to run the report from inside t...

IIS URL Rewriting vs URL Routing

I was planning to use url routing for a Web Forms application. But, after reading some posts, I am not sure if it is an easy approach. Is it better to use the URL Rewrite module for web forms? But, it is only for IIS7. Initially, there was some buzz that URL routing is totally decoupled from Asp.Net MVC and it could be used for web form...

Hosting a WCF endpoint with programatic settings in IIS

I need to host a WCF service in IIS that exposes a wsHttpBinding. That part is working nicely using the settings of system.serviceModel in my web.config. What i need now is to setup the configuration (like maxReceivedMessageSize and other options) through a configuration assembly that is also used by the client(s). How is this possible...

Stack overflow from .NET code in IIS, but not in Winforms

Hello all. So I have a nasty stack overflow I have been trying to track down / solve for the past 8 hours or so, and I'm at the point where i think i need advice. The details: Interestingly enough this code runs fine when called in the context of our regular winforms application -- but I am tasked with writing a web-based version of ...