iis

Classic ASP with COM throwing "Data source name not found and no default driver specified" on Windows Server 2008 R2

We have a classic ASP application that connects to a COM component. The COM component reads a connection string from the registry and connects to a datasource. We exported the COM package out of a 2003 box and imported into a 2008 R2 box. We've reviewed every setting to ensure its correct. When we hit the classic ASP site, we get the fol...

Remove HTTP headers inserted by Managed Fusion URL Rewriter

I'm toying with Managed Fusion's URL Rewriter and noticed that it adds a couple HTTP headers to IIS response: X-Rewritten-By: ManagedFusion (rewriter; reverse-proxy; +http://managedfusion.com/) X-ManagedFusion-Rewriter-Version: 3.5 How can I remove these headers? (I'd like to keep things small for performance reasons.) Unfortunately...

Why would I need WCF for building RESTful services?

I've recently discovered a way to implement RESTful services using Global.asax (by handling the Application_BeginRequest event). Basically, I am saying it is possible (and easy) to implement a RESTful web service in classic ASP.NET, without any need for WCF. It takes approximately 30 lines of code to figure out which method you want to ...

How do you connect Flash Builder CS5 to IIS & Sql Server?

I'm having problems understanding exactly how you connect a Flash Builder 4 Project to IIS & subsequently, sql server. In trying to configure the Flash Builder 'Server', no matter what I put in as 'web application root' and 'Web application URL' and 'Output Folder' it won't validate my configuration. The documentation is maddeningly ne...

SharePoint 2010 and ASP.Net 4.0 on same IIS

Can the IIS version in Windows Server 2008 R2 host all the following: SharePoint 2010; ASP.Net 4.0; Classic ASP applications; VB6 compiled .dll web applications. If so, can SharePoint 2010 be the Default Web application when accessing the server? Thanks, Aaron ...

IronRuby on Rails with IIS 7

I'm trying to get a Rails app built with IronRuby running on IIS 7. I followed all the tutorial given on the IronRuby site but I can't seem to get it to work. The app runs fine hosted under WebBrick but IIS doesn't seem to host it properly. Here is the page I get. Error: exit C:/repositories/RampUp/ruby/RampUp/config/boot.rb:66:in `exi...

Redirect to non-www-url domain with ASP.NET?

This is not a duplicate post. I've looked through similar questions on SO but didn't find the solution to my problem. As someone has already suggested I should do the following to redirect www-url to non-www url (or vice versa): Here’s the IIS7 rule to remove the WWW prefix from all incoming URLs. Cut and paste this XML fragment into y...

Temp-Files in Symfony-Cache folder

Hi, I'm using Windows on some production machines (IIS with FastCGI-PHP). Since the update of one SF-Project to 1.3.x I notice some strange problems. The Server is "collecting" Temp-Files in the config-cache folder of the applications. They are named like con1718.tmp and always containing the autoload-config-cache. The tmp-files are not...

A file uploaded with HTTP PUT has extra data at the beginning and the end

I need to implement uploading and downloading files as cheap as possible. For my tests I use Windows XP with IIS 5 and a console C# program. I created a virtual directory in IIS and in my program I execute the following code: System.Net.WebClient webClient = new System.Net.WebClient(); webClient.Credentials = System.Net.CredentialCache...

URL changes to an unknown url on login ASP.Net site !!!!!

Hi , I have website hosted on to server . say for example www.abc.dk which has a login page on login of a user the url gets changed to allrequestsallowed.com/.... the name of my page . What exactly is causing this and any solution to not let this happen ? Regards, Francis P. ...

.NET web application automatic update pull-style

I have several .net web applications that use the same cms-like framework. When I add new feature to this core framework I want each application to be updated with this feature. So basically I need to do the following steps: Put App_Offline.htm in the application root Copy files that have changed from the update server Run SQL update s...

Setting up a new team work environment for asp.net

Hi, We own a small company and develop asp.net websites. Here is our work procedure: We have a server at the company with Sql Server 2008 and IIS 7.5 installed on it. All our projects including the database and website pages are on the server. We connect to the server and edit the files using FTP, so any change to a web page can be seen ...

Can I limit an ASP.net HttpHandler scope?

I have an application that depends on a generic HttpHandler I created, and it works fine. The problem is that that there are many other applications under the same folder in IIS, and these other apps don't need to use and don't know (mustn't know) about this handler. However, the Web.Config in which I register it ends up applying to all ...

How to make a .net web application run as the root application in Visual Studio

I've been converting some .net "Web Sites" to "Web Applications". This has been going along smoothly. One of the steps that I perform each time I do a conversion is I go to the web section of the project properties and set the virtual directory. So far, I've set up -http://localhost/site1 -http://localhost/site2 -http://localhost/site...

In IIS, how do I set environment variables for specific CGI scripts.

I have two cgi scripts from a product I can't alter. One needs a specific Environment Variable to be set. The other should be left alone. Is there a way, in IIS, to do the same thing as apache's SetEnv command just for one of the CGI scripts? Ciao! ...

URL routing process works on one web, not another. 100% processor usage.

Hi, I thought I have URL routing under control as it works well on one website but found out it is not working fine on another. Both websites run from same server, same IIS 6.0, same asp_isapi.dll. SETUP 1: This one works well: routes.MapPageRoute("Article SEO", "sid/{sid}", ...

PHP new DOTNET() error

This is a fairly obscure question, but I'm having a devil of a time figuring it out: I'm running PHP on IIS and am using PHP's DOTNET function to load Microsoft's System.Speech class. <?php $recognizer= new DOTNET('System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', 'System.Speech'); ?> I'm getting a ...

HttpHandlers for .css files not working for classic asp pages

I have written a HttpHandler to modify the css file (image urls that are reffered in the css files). This works fine for the .aspx pages. But classic asp pages are broken as the css is not at all loaded. I have added the .css mapping in the configuration section of the IIS and mapped it into aspnet_isapi.dll. ...

ASP.NET Session won't expire

Hey all I have the following in the web.config <sessionState cookieName="ASP.NET_SessionId" cookieless="false" mode="InProc" timeout="1" regenerateExpiredSessionId="true"/> however, after 1 min, the session won't expire. what can cause this? thanks ...

How do I configure ASP.NET to show a custom error page, but still return the correct statusCode (i.e.404).

How can I configure ASP.NET/IIS to show custom error pages (i.e. a nice friendly error page), but to still return a 404/500 status code so that google does not try to index the page? I have tried setting the Response.StatusCode to 404, but then the nice error page does not show anymore. ...