iis6

IIS6 with ASP MVC Wildcard mapping

Ok, so Im one of the 100's of people having issues getting ASP MVC running on IIS6. I have followed several tutorials including this and this, but still no joy. All I see is the standard IE 404 file not found page. Now in order to ensure that my site is pointing to the correct location I have added a stub index.html file in the root d...

Will a Change to the IIS Home Directory Path Trigger a Restart?

In IIS (6.0 specifically), under the Home Directory tab, if I change the local path, will this cause either IIS to restart or the application pool to recycle? Related, is there a reference that outlines which changes to the IIS metabase will trigger either a restart or app pool recycle? I haven't been able to find this yet. ...

how to redirect a pdf request to aspx in iis 6.0

Hi i'm wondering how to redirect a http://mysite.com/pdf/blah.pdf to http://mysite.com/pages/page.aspx for all pdf file requests in iis 6.0/asp.net. Haven't been able to find anything definitive by searching. ...

MVC on IIS6 - 'Home' links not working correctly

I'm deploying a MCV 1.0 project on a web server running IIS6. (not by my choice) I've thru Steve Sandersons article Here and Phil Haack's article but I'm still having probelms. Right now I'm trying to implement Option 2 from Steve Sandersons article. The main problem I'm having is with the Home link not rendering correctly. For Instanc...

ASP.Net Invalid Viewstate error

I am randomly encountering the following error: Message: Invalid viewstate. Client IP: xx.xxx.xxx.xx Port: 2324 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.1; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618) ViewState: Stack Trace: Message: Invalid length for a Base-...

IIS 6 to 7 is making me scared of web.configs

Hi guys, We have a mixed development environment of three servers running: Win Server 2003 & 2008, IIS 7 & IIS 6, ASP.NET 2.0 & ASP.NET 3.5. Previously, all three servers were Server 03/IIS6/ASP.NET 2.0, but with this new change, I am finding that pushing/moving any applications from server to server is always a terrifying experience be...

Enable document footer

I tried to use Enable document footer function in IIS6 for my web sites after some tests i discovered that it works for static files only may i config it for pages like aspx or asp or maybe u have alternative solutions? ...

Security exception when writting to an EventLog from an ASP.NET MVC application

I have a library that I created with some business logic that includes writing to a System.Diagnostics.EventLog instance. The library is normally called from a Windows Service application, but now I'm trying to call those same library functions from my ASP.NET MVC application. I tried this code inside my controller to create the EventLo...

How to create an application in IIS using command line ?

What would be the equivalent, by command line, of the create button in the Home Directory tab in IIS 6.0 ? (Used to create an application on a directory). Edit : I already know of iidvdir. Unfortunalety, it doesn't seem to work the way I want it to (or I dont use it properly). Let's say that I have a website called Website for witch the...

IIS_WPG (and IIS_IUSRS) member of "Authenticated Users" group?

Hello, i need a confirmation that IIS_WPG and the newer one IIS_IUSRS are also members of the "Authenticated Users" group. Can someone confirm this or am i beeing wrong? Thanks in advance! Regards, Krile ...

Enable ASP.NET in IIS6 Programatically

Is there a way to enable the ASP.NET Web Service Extension in IIS6 via C#? I'm trying to simplify a website setup program for people who haven't used IIS before. ...

File download fails for files over 64MB

I have a website which allows secure (ssl) file uploads and download. The site runs on a Window 2003 server with IIS 6.0; asp.net 2. When using this code: protected void StartDownLoad(string filename) { Response.Clear(); if(filename.EndsWith("zip")) Response.ContentType = "application/zip"; else...

SSL has to be enabled to connect to a https site?

I have to send a request as https post to a third party Apache server. It seems my code is fine as testing to an aspx page shows parameters without any problem, but when I tried to conect to Apache server answers like I didn't send anything. As I've been digging a bit more, I found out a reference to "servers handshake". Does this mea...

How can I change the IP address of all sites in IIS6 using powershell 1.0?

Using Powershell 1.0 under Windows Server 2003 with IIS 6. I have about 200 sites that I would like to change the IP address for (as listed in the website properties on the "website" tab in the "Web site identification" section "IP address" field. I found this code: $site = [adsi]"IIS://localhost/w3svc/$siteid" $site.ServerBindings.In...

add custom http header to subdirectories

here is the code i am using cscript adsutil.vbs set w3svc/1/ROOT/Test/css/HttpCustomHeaders "Cache-Control: max-age=36000" when i use it an error appears The path requested could not be found. ErrNumber: -2147024893 (0x80070003) Error Trying To Get the Object: w3svc/1/ROOT/Test/css w3svc/1/ROOT/Test is the virtual directory i wa...

Can an application "die" without passing Application_End or Application_Error?

Hi, The current application that I'm working on seems to recycle the application pool very often, but when it ends, id doesnt pass Application End or Application Start. This is how my Global.asax looks like. protected void Application_Start(object sender, EventArgs e) { _log.Info("Application_Start"); } protected void Appli...

ExecuteGlobal in VBScript, ASP on IIS 5.1 (Win XP Pro) not working

What setting might be missing or misapplied that would cause the same code that works on an IIS 6.0 server to fail on an IIS 5.1 server? I've inherited this large Classic ASP application. It "caches" a series of files with funcitons in them using the ExecuteGlobal command. On both server, the command executes without error. However, ...

NTLM as SSO, and Performing Certain Actions as an Impersonated Administrator

I can't seem to stumble upon the correct combination of IIS / ASP.NET settings to accomplish the following: All users on an internal domain should be able to access IIS site (w/ NTLM authentication), and the ASP.NET application should be able to get the username of the current user (aka the user is authenticated as themselves). The run...

Unregistered SecurityContextSecurityToken on WCF

Hi Does anyone recognise this error? The SecurityContextSecurityToken with context-id=urn:uuid:xxx (key generation-id=) is not registered It has suddenly appeared in the service trace log of my WCF service. We had a Windows service successfully transmitting data into the WCF service for a day until it broke. The error manifests when t...

ISAPI Rewrite 3 rule for redirectling http to https for a particular site

I have multiple sites on a single IIS 6 server running ISAPI Rewrite 3 (free addition). I need to redirect just one of the sites to https if the request comes in as http. Example: I need http://bar.foo.com to redirect to https://bar.foo.com . I don't want this redirect to affect http://www.foo.com or http://foo.com or http://meh.foo...