iis6

How to get localpath in iis under c#

I want to get localpath of webservice in iis 6.0. Web service is located under virtual directory. I tried to use code examples from this site : http://forums.iis.net/t/1150535.aspx , however for some configurations I get empty path, what is more I get empty path for all parent nodes of my web service in this cretainl cases. There are c...

Intelligencia Url Rewrite doesn't work on iis6 - Message Error: Page not found 404

I have the same problem on shared hosting, on local development machine my website works fine with intelligencia url rewrite, on iis6 it doesn't work and i have error "HTTP 404 Page not found" because i think it ingore rewriting rules on my web.config. intelligencia dll is on directory "bin" of my website i paste here my rules: <rewri...

Limiting number of calls to an ASMX Web Service

We have an asmx web service hosted in IIS6. Is there a good way to limit the number of calls to the service in a period of time for a single IP? We don't want to put a hard limit (X number of times an hour), but we want to be able to prevent a spike from a single user. We're currently investigating to see if our firewall is capable o...

metrics in ASP.NET application

I need to add some metrics and statistics capabilities in ASP.NET application (Framework 2.0, SQL Server 2005). It's Intranet application, so I can't use Google Analytics. I need not only measure number of hits and visits, but also which buttons people are pressing and which functions of application are using. Will it be enough to use ...

Non physical location authorization in IIS6

I'm running an Asp.NET MVC 2 app under IIS 6. All pages are behind Windows Integrated Authentication except for some pages that accepts anonymous access. We setup these pages in the web.config with the location element like this <location path="MyPath/ToThePage"> <system.web> <authorization> <allow users="*"/> </...

Custom VirtualPathProvider not being used in IIS6

Hi, I added the following lines to Application_Start method in global.asax: var provider = new TestVirtualPathProvider(); HostingEnvironment.RegisterVirtualPathProvider(provider); Yet the 'TestVirtualPathProvider' is never used when deploying this application in IIS6 (it does in the ASP.NET Development Server). Edit: the default pat...

.xlsx downloading issue

I have generated .xlsx reports on server, and page with direct links to these reports. When user clicks a link, report file is downloaded, but file extension is changed to .xls. Therefore, I can't open file correctly, only after changing of extension. Problem occurs in IE, Firefox correctly downloads file, and Chrome saves file with name...

Determine protocol for website

I'm using IIS 6. I need to determine whether a certain site is running under http or https. I tried extracting all of the properties using 'DirectoryEntry' from: IIS://localhost/W3SVC/1 (1 is the site id in this example) The following are the results. If anyone knows of any other way of determining IIS6 protocol type programmatically, ...

How do I setup WebDeploy on Windows 2003 / IIS6?

Webdeploy is an alternative to WebDav, FTP, and FrontPage extensions. It also acts as an alternative to DFS for replicating websites. I found instructions for configuring Windows 2008, but I'm unclear how to set up 2003 especially when multiple sites / IP Addresses are present. ...

What can cause IIS app pool to recycle?

I am currently experiencing some instability in my session variables and believe the app pool is where the error is coming from. What I cannot find is a list of possible culprits for the issue. What can cause the app pool to recycle on its own, other than a scheduled recycle? ...

specified cast is not valid error on development but not on test server

I have a .Net 2 solution with some asp classic pages. I get a specified cast is not valid error when I access the page on my local. Below is the vb function where I get the Error: Public Function Retrieve(ByVal vntSeqId As String, ByRef vntPart As String, ByRef vntPartKey As String, ByRef vntEntDate As String _ , ByRef vntStat...

ASP.NET 4.0 IIS Registration

I have a web server running IIS 6 which has .NET 2,3.5, and 4 installed. Everytime I install a .NET 4.0 web appication the ASP IIS Registration tool is ran which is clearing out some important registry entries for EnableExtionlessUrls. We have reinstall the .NET 4.0 framework but are still having the same problem. Has anyone else expe...

IIS6 MVC2 Server starts sending out 404 after a while

I have a W2k3 server running IIS6 and MVC2 (.net 4). Right after the iis starts, everything works ok, the site runs fine. Extensionless urls work ok. After a certain period of time (maybe of inactivity) the server stops working and starts to send 404 errors to the client. As soon as I restart de application pool, everithing goes back ...

Https for a dynamic IP intranet web server (swaps between two IPs for failover purposes)

Hi all, We've got an Asp.Net / IIS6 web application which sits on two servers in separate data centers on our intranet in an active-passive failover configuration. Lets call these servers MyAppSpringfield and MyAppShelbyville. Now we've got a DNS name set up called 'MyApp', so that the users can simply access the application through ht...

Install ASP.NET 4.0 alongside ASP.NET 2.0 on IIS6

I've read where you create a new application pool, one for 2.0 sites and one for 4.0 sites. But there is no option I see when creating a pool to configure the framework. My problem is I have several 2.0 sites running as the Default Web Site. I added a WCF 4.0 service under a new virtual directory and set the framework to 4.0. I also ...

Oracle connections exhausted by IIS

Our Oracle (9i) DBA called me to report that my IIS (v6) web server has exhausted the available connections. I created a test page (Classic ASP) that basically creates ADODB.Connection and ADODB.Recordset objects, connects to a database, opens a basic recordset, loops through it, closes the recordset and connection and sets the objects...

.net 4 WCF Endpoint in generated metadata (WSDL) points to node rather than virtual host hosted on load balanced (NLBS) IIS6

This is real simple. I have a wcf service (nothing fancy, just New Project-> WCF Service Application), that runs great in Visual Studio. When I deploy it to an clustered IIS6 environment, it works mostly. I can send a request and get a response. However, the generated metadata consistently refers to a particular node in the cluster...

IIS 6 URL rewrite to lowercase urls

Currently we are using Managed Fusion Rewriter to handle rewrites, however, we have been unable to determine a way to have it do a rewrite to urls all lowercase. Unfortunately, upgrading to IIS 7 isn't an option right now. Does anyone have any experience utilizing another rewrite module to handle rewriting to lowercase urls. ...

enable PUT on IIS 6 for wcf .net 4.0 "SVCless" rest services

How do I enable PUT on my IIS 6 for wcf .net 4.0 "SVCless" rest services. My Services are at the root of the website. Please help! TIA EDIT: I get "501 - Not Implemented" when the service is hosted at the root of the site. If if it is a child application it works. ...

How to force application pool to recycle in Classic ASP (not using IIS Management Console)?

I am maintaining an old Classic ASP site for a friend that is hosted on a cheap shared host. They are getting errors that will be solved with an Application Pool recycle. However, the hosting control panel doesn't have any sort of options to recycle the app pool and the hosting company themselves are non-responsive to support requests....