iis

ASP.NET application breaks when deploying to IIS

Hello everybody, I am developing a small ASP.NET website for online shopping, when testing it out in Visual Studio, everything works fine, however that is no longer the case when I deploy it to IIS. The problem seems to be in a DLL file that I reference, this DLL file contains the Classes I need to initialize and send query requests to ...

Multiple domains, same web application on IIS 6

On IIS 6, is it possible to have multiple domain names pointing to the same web application, and conditionally serve CSS from within the web application based on the domain name? I need to host hundreds of different "skins" on the same web application, with the skin being dependent upon the domain name, and I really don't want to launch...

How can I share a session across multiple subdomains?

I have an application where, in the course of using the application, a user might click from virginia.usa.com to newyork.usa.com Since I'd rather not create a new session each time a user crosses from one subdomain to another, what's a good way to share session info across multiple subdomains? ...

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product?

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product? I have two servers, one runs my code much faster than the other and I believe their configurations are close to equivalent and therefore I want to benchmark the two. I do not want this question to become one about the hardware. This question...

Should SQL Server be on the same machine as your IIS installation?

I'm listening to podcast #19 and Joel and Jeff are arguing about running SQL Server on the same machine as your IIS installation. I have to say that it sounds like Jeff folded to Joel, but then again I am only guessing which one is which. ;) What are the pros and cons of each? Which is better? I typically run them separately (Joel's pr...

ASP.NET: external custom config file in a virtual directory - how to?

I know that there at least two approaches to leverage the web.config file: using the configSource attribute which was introduced in .NET 2.0 - here is a good blog entry about it. The file attribute of the appSettings tag which lets you point to an external file with a relative path. Described in the MSDN documentation on the appSetting...

IIS Multiple Domain Redirect

I currently have 2 domain names that I want to setup different websites for. I am currently looking at using some free hosting that works well for my current needs but doesn't give me any way to point "mydomain.com" to the actual site. Instead I have to give users a longer, harder to remember url. My proposed solution is to point my dom...

Recommendations for securing Internet-facing IIS Host?

I'm setting up an Internet-facing ASP.NET MVC application, on Windows 2008. It uses SQL Server 2008 for its database. I'm looking for best-practices for securing it. I found this article, but it's a bit dated now. How much of that advice is still valuable? Some background -- it's a personal site, behind my home NAT/firewall box; and I'...

Can not add '.* " at mapping of IIS.

Hello All, I am unable to add .* at extension mapping in IIS (defaultwebsite -> properties -> home directory -> configuration) because it gives the message "Wrong file Extension". The operating system is Windows 2003 server. I can add .* at mapping in IIS when the operating system is Windows XP ...

Limit file access to specific users in IIS

I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site uses "integrated windows authentication". The IWA configuration is not a must (until now), but is configured anyway. The application pool runs as the "Network Service". Also, in web.config, there's the line "". The problem I'm facing now is that there's a new request...

Best practice for moving live web apps to new servers?

I am tasked with moving quite a few web apps including the databases to new servers, they are ASP.NET. I was not the one to create and setup these originally so I must try to figure out what exactly I need to replicate in order to not break anything and so the customers have no idea that anything was moved. Does anyone have any tips fo...

"StartTag: invalid element name" in default.aspx

(Warning - asp newbie) I have an aspx file with the tag <%@ Page Language=VB ... %> right at the beginning of the file. When calling this from my IIS server (http://localhost/myservice/default.aspx), this gives me the error This page contains the following errors: error on line 1 at column 2: StartTag: invalid el...

ASP.NET Development Server or Localhost IIS?

Currently our dev team set up all the websites they're working on in IIS on their local machine. We're thinking of switching to using the built in ASP.NET development server instead. Is this a good idea? What are the pros / cons of using the ASP.NET dev Server? Are there any gotchas we should be aware of? Thanks. NB: Running on Win XP...

What's the optimal GZIP compression setting for IIS?

You can set the HcDynamicCompressionLevel anywhere from 0-10. I've heard 10 is bad (high CPU usage), but what's the magic number that works the best? ...

virtual directories with different .net frameworks

Is it possible to have two virtual directories under the same website in IIS but have the virtual directories be using different versions of the .net framework? For example, under the default website, can I have one virtual directory targeting the 2.0 framework and a second virtual directory targeting the 1.1 framework? This is for IIS...

Blackberry HTTP Header

I'm trying to access an internal website that requires windows authentication. I've tried going to the website on my Blackberry but get the following error: You are not authorized to view this page. You do not have permission to view this directory or page using the credentials that you supplied because your web browser ...

How do I renew an SSL certificate for several years in IIS?

The renewal wizard doesn't seem to ask for a renewal period. ...

Service Unavailable in IIS

When I access a wrong call to a sql server data into my application in classical ASP I get this message in my entire site: Service Unavailable. It stopped. My site is in a remote host. Don´t know what to do. What can I tell to the "support team" of them to fix that? ...

Canceling request validation using HttpHandler on IIS 7

I have an application that has to deal with getting "special" characters in its URL (like &, +, %, etc). When I'm sending a request to the application using these characters (of course I'm sending them escaped) I'm getting "Bad Request" response code with the message "ASP.NET detected invalid characters in the URL". Tracing the request s...

How do I set the cachability of static files in IIS?

I have some static images in a folder on my IIS 6-based website that I want to be downloaded as little as possible (to preserve bandwidth). I've set the Content Expiration to expire after 30 days. Is there anything else I can do in IIS to try to maximize the caching by browsers, proxy, and gateway caches? Such as adding a Cache-Control ...