iis

Server Farm Sync

What is the preferred method of keeping a server farm synchronized? It's currently a pain to have to upload to multiple servers. Looking for a balance of ease of use and cost. I read somewhere that a DFS can do it, but that's something that requires the servers to run on a domain. Are there any performance issues with using a DFS? ...

Should I host my WCF service in IIS?

So I'm designing a WCF service. I'm unexperienced with WCF, and I'm trying to decide whether it should be hosted in IIS, or a custom Windows service.. Or some other option? Things to consider: It needs to load data from a database on startup. It needs to maintain this data across requests, not load it each time. It needs to process mu...

AD / IIS Single sign-on issue with fully qualified domain name

We have an issue for our intranet site that is running in our local network. In a nutshell, we have integrated Active Directory authentication with our application and what to use IIS integrated authentication to allow users to sign on without entering any credentials. Assume the AD domain is "domain.name", and the server our applicati...

WCF and IIS 6 - WSDL is not exposed

Hello, I have developed an ASP.NET application that includes a WCF service. This service needs to be consumed by third party applications. This service has worked fine while testing in my development environment. My development environment is using IIS 7.0 on Window 7 RC 1. However, I cannot use the service once it is in my staging / pr...

IIS email block list

Hi, I am wondering if there are ways to stop IIS from sending to a particular email or list of email addresses. I reckon if I can force badmail on a particular email address it might do it. But that's just bad manners. Thanks ...

Simplifying publishing multiple ASP.NET Web Site Projects in VS2008

I have a solution in Visual Studio 2008 that contains three projects: a C# Library and two ASP.NET Web Sites (call them A and B). Web Site A depends on the library, and Web Site B depends on Web Site A. This means that if I make a change to the library project, I have to build it, then publish A, and then publish B. Similarly, if I chan...

Overcome compilation(?) pause on *secondary* initial ASP.Net application startup?

After deploying an ASP.Net application to a new server, the first user to hit the app gets a long pause, presumably because the app is performing its initial compilation. However, this pause seems to also also occur after the application has timed out and unloaded itself from memory. The first compilation would be tolerable as it only ...

Files in a windows based web app

I have a web application running on IIS. Instead of using a database it reads and writes to a couple of XML files. I currently store these files in the Application Data folder in windows. This folder (\Documents and Settings\All Users\Application Data in win 2003) however requires at least "Power Users" privileges to write! Reads are O...

get iis server address when inserting data in sql sever 2005

Hello, When a user on my site registers and his data is inserted into a table on sql server 2005 I need to know from which iis server the user arrived - not the users ip address. (there are 2 different server addresses under a server in iis from which the data could have been received). I then need to get the address and insert it into...

Load Balancing IIS. Serving images and simple html from one server and asp.net pages from another

Hello, we are using windows 2003 server with dual CPU and IIS gets overflown with requests and not able to handle them but at the same time it uses less than 20% of the CPU and less than 40% of ram. When server is not able to serve any requests not only its not possible to browse the site but its not even serving images which are used o...

Can I do an if/then/else in htaccess?

I have a site that serves up certain content based on the subdomain. So it is the same set of files, and maybe the header and some info in the site pages changes based on the subdomain. I need to have different htpassword authentication based on the subdomain as well, but can't find info on how to do an if/then type of thing in htacces...

ASP.NET VirtualDirectory app and website's /bin

After quite a bit of searching I think my situation is different enough I have to actually ask a question! I have a website for public consumption and a maintenance site for the data in a virtual root beneath the website. I would like for them to both use the same /bin folder but I can't get that to work. The virtual root has different ...

How to check if a IIS directory is virtual directory or not?

I am trying to find a way to write a script which will check if a IIS 6 directory is a virtual directory or not (see image below - I would like to see if TestMPIService is a virtual dir or not). I tried with Powershell and WMI, but I am unable to find that information anywhere. Anybody has an idea how to do such thing? ...

Why Content-Length is 0 while sending POST request with XMLHttpRequest object?

I have a virtual directory on IIS 5.1 with two aspx pages. Access to Page1 configured as "Integrated Windows Authentication" option turned on and anonymous access is disabled. Page2 available through anonymous access. On client side there is XmlHttpRequest object that can send requests that contains POST data to this pages. At first I t...

IIS WCAT toolkit

Where can we download the WCAT toolkit. There seems to be many versions of it. ...

Asp.Net MVC Ajax.ActionLink behaivour different when using built in VS2008 dev server to IIS hosted

Hi This is a really strange issue. I have developed a small MVC application and have done testing up until now using the VS2008 built in dev server and everything works as I expect. I have now moved the solution to IIS hosted and I see different results in a view which uses an Ajax.ActionLink. The actionlink links to a controller actio...

SmtpDeliveryMethod.PickupDirectoryFromIis strange behavior...

Hi I think i need some guru lights! public void SendEndingMail(string fileName) { SmtpClient client; client = new SmtpClient("smtp.myserver.com", 25); //client = new SmtpClient(); if (!string.IsNullOrEmpty("")) { System.Net.NetworkCredential credential...

Creating Virtual directory in IIS with c#

This one will need a bit of explanation... I want to set up IIS automagically so our Integration tests (using Watin) can run on any environment. To that end I want to create a Setup and Teardown that will create and destroy a virtual directory respectively. The solution I thought of was to use the MSBuild Community Tasks to automate II...

How many subdomains are appropriate?

I'm building a directory website and i want to represent each subdirectory as a subdomain on my website like: car.mydir.com and not mydir.com/car So the problem is the total number of subdirectory keywords are way too big. Do you think for example IIS can handle 40000 subdomains? ...

Version control and website branching

We have under version control(SVN) a web application. The trunk always contains the latest good version of the website. I would like to hear how other teams manage multiple versions of the same site and how do you publish different versions for UAT, testing, Bug fixing, enhancements etc? Let's say our biz users come along and they wan...