iis

How do I log cross-domain intranet traffic (including username) using a HTTPHandler?

I am attempting to log user activity for a couple internal websites as well as our SharePoint sites. I use JavaScript to make a call (GET) to an ashx page (HTTPHandler) that returns a 1x1 invisible GIF. The HTTPHandler grabs the referring URL, browser info, ip address, the action (sent as a QueryString), and (the part I'm strugging with)...

Application_End global.asax

Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, will Application_End be triggered automatically? + Are there any other reasons why Application_End could be triggered? Thx. ...

Connecting to SQL with ANONYMOUS LOGON since switch to IIS7

Hello, I've recently had my PC upgraded to Vista, which means it includes IIS7. The problem is that the ASP.NET website we're working on doesn't work anymore. I get an error because the application is trying to connect to the SQL Server with NT AUTHORITY/ANONYMOUS LOGON instead of my domain user, and anonymous isn't authorized. I've trie...

Permissions for IIS account

Hi I have a webservice running under sharepoint, on a bog-standard Server2003/IIS6 setup. This webservice needs to open and read a file from a share on another machine in the same domain. At the moment I am getting a System.UnauthorizedAccessException: Access to the path '\strand\DROPBOXES\MattTrinder\SharepointShared\bd116dfa-be0e-4...

Custom Errors for "App" folders? (ASP.NET)

Where can I setup custom errors for directories in my application such as App_Code, App_Browsers, etc.? I already have customErrors configured in the web.config and that works as expected. For example, http://www.mysite.com/bla.aspx > redirects to 404 page but http://www.mysite.com/App_Code/ > displays "The system cannot find the fi...

Webresource.axd problem between regular and secure domain paths

In our setup there are two different websites in IIS 7 setup that point to the same physical path. One with the binding http://websitename.domain.com/ (virtual root ~ is /) and the second at https://webserver.domain.com/userid/websitename (so the virtual root ~ is /userid/websitename). We use the second for secure aspects of each websi...

How do you configure IIS for local development and testing?

There are a few questions about configuring Apache for local development, such as this one, but I didn't see anything about IIS. Suggestions for locking down IIS without crippling it's functionality? In response to a comment, I'm looking to do ASP.NET development using the IIS server that comes with Windows XP Pro SP3 (IIS 5 or 6, I bel...

IIS Recycle Global.asax

Is it possible to catch an recycle event in the global.asax? I know Application_End will be triggered but is there a way to know that it was triggered by a recycle of the application pool? thx, Lieven Cardoen aka Johlero ...

Semantic urls with dots in .net

I'm trying to make semantic urls for search pages, but if someone use a search finished in dot, the .net engine return a 404. The request don't even get to the routing engine, so i think its something related to security or something like that. For example, the stackoverflow routes also don't work in these case: http://stackoverflow...

ASP.NET URL validation

We have a custom REST handler on ASP.NET that is configured like this to handle all incoming requests: <add path="*" verb="*" type="REST.RESTProtocolHandler"/> However, passing it a pipe character, properly encoded or not at all, triggers a validation error that seems to come from inside ASP.NET. Accessing http://localhost:8080/%7c o...

IIS 5.1 books

I can't find any books on IIS 5.1. Is it close enough that I could use a book on IIS 5.0? ...

IISReset deletes physical folder with DFS setup

I am trying to resolve an "automagic deletion of physical folder" issue with our web server setup. We have 4 web servers with DFS (Distributed File System sharing) on the main folder of our root webserver. On one of the boxes the Virtual Directory name for a sub application is the same as the physical folder name. On W1 the VD (Virtu...

Browser displaying "Page Not Found" message when error is thrown in an ASP .NET page

When i navigate to an ASP.NET page, the browser displays a "Page Not Found" message. The page exists and is in a virtual directory, I am able to browse it on the IIS on my local development machine. What could be causing this problem on the server? When i replace one of the class libraries that iam using, with an older version it works...

Installing a ASP.NET application

Ok, this has got to be a super simple problem. I just can't seem to find the answer anywhere. First - I'm not a web developer of any kind, I'm an old school c programmer - so don't flame me for what's probably something quite trivial :) I need to write a small proof-of-concept web app using ASP.NET. My first attempt here is to create...

Loading xml into flash movie hosted on IIS6 server, not working

Hi, I have a flash file that loads an xml file at runtime. When the .swf file is run locally or on an Apache server it works fine but when hosted on an IIS6 based server the file won't load. can anyone help with this? Thanks ...

In an ASP.NET Web Setup Project, can I disable anonymous access in IIS?

I have a really simple ASP.NET web application and a web setup project that deploys the project output and content files to a virtual directory in IIS. What I want is for the MSI to automatically disable Anonymouse Access for that virtual folder in IIS. I suspect it can probably be done by writing some code in a custom action DLL, tha...

Are there any limitations in IIS on Windows XP?

Hello, For the project I'm working on I noticed that file transfer* speed is really bad if I'm using IIS FTP and HTTP services. I know that the last thing I should think is "it's a Windows bug", but the fact that simply by using IIS on Windows Server or by changing IIS on that Windows XP machine to FileZilla and LightHTTPd, my file tran...

File transfer

I have an IIS located on serverA I have userA at locationA who has opened a content management system site, hosted on serverA. One of the features of the system is that it allows the user to move a file to LocationB, all within the same network. Now when this move occurs and due to bandwidth restrictions, would this file move from Loca...

Change IIS Site Home Directory w/ Powershell

I can query the AD and find all the IIS sites and their virtual directories, now I need to be able to update those home directories and save the changes. After I fetch the directory entry I can display the site path using $site.Path, however setting it doesn't seem to have any effect. It never changes the actual stored path. I have ...

IIS: Redirect ALL requests to one page?

For my IIS website, I'd like to redirect ALL requests to ONE page. The purpose of this is that I want to do some maintenance on the database (take it off-line) that all my web applications use. I have about 50 web apps running under this website, so I'd like to avoid visiting each of them to change something. I'm thinking I could make a...