iis

adding context.Response.Headers.Add("Cache-Control", "no-cache"); says IIS integrated pipeline required?

Not sure if this makes sense, but why did adding the code on my http handler (responds to a ajax request returning a json result): adding context.Response.Headers.Add("Cache-Control", "no-cache"); cause an error and say integrated pipeline mode has to be set? ...

Understanding the ASP.NET application folders

The application folders in ASP.NET are used for storing various elements critical to running a website. I want to get a handle on understanding these folders in more depth, specifically the folder accessibility. According to the article on ASP.NET Web Site Layout: The content of application folders, except for the App_Themes folde...

IIS scalability

I have been tasked recently to estimate number of concurent users that IIS can handle. Unfortunately, I have 0 experience with IIS, so I hope someone will guide me where to look. I hope I will not have to do my own benchmarking in this phase. I would like to know what is the number of concurrent connections that it can handle. The clie...

HttpContext.Current.Request.Url.Host returns a string of numbers

I have a website that emails a link to the invoice when an order is complete. The link should be http://mysite.com/QuoteAndBook/Confirmation?orderId=123 But for some reason it is: http://204435-204435/QuoteAndBook/Confirmation?orderId=123 The host portion of the link is generated using HttpContext.Current.Request.Url.Host but I woul...

What's the best way to embed constant server-side tags inside javascript code?

I have a bunch of javascript functions which depend on some server-side constants (such as strings from my resources file). While I was developing them I kept the javascript code in the view header, so I could simply used server-side tags inside my javascript code, but now I'd like to move the javascript functions to a separate file. I...

Get useful stats from IIS log files

Does anyone know of a free tool that I can use to get website statistics from my IIS log files? ...

What is the design pattern to be used to deal with multiple requests to a share resource in IIS

I have a Lucene Index on a central file system. In my IIS application, I have methods to query the index and another to update the index. To update the index, I have to lock the file until the changes are committed. My problem in implementing this is choosing the best design pattern to maintain good concurrency. Am I best off using a s...

Host multiple sites of the application located in one folder

Hi, I want to know the best way of hosting a web application for different domains. What I want to achieve is this: Have single folder of the web application for easier maintenance. Be able to override some parts of Web.Config per each site (ATM only ConnectionString, but could be more). Store log files on file system without interf...

Using aspnet_regiis to change the ASP.Net version of a single site on a web server

We would like to change a web site from version 1.1 to 2.0.50727 during the installation of a solution. We would prefer a solution that could do this in code. We can do this by running Aspnet_regiis -i . However, this has a drawback that it changes the version for all sites on the server, and the customer may have other sites that we s...

Deployment after CI builds

Hi Guys, Im pretty new to CI so bear with me here. I have just setup an instance of Team City in on a local machine, and I can clearly see the benefits. The one thing we do want understand is how we can managed the deployment aspect of CI. What we really want to achieve are two builds: 1) We check in to our source repository and the...

IIS running as service Account with AzMan

Hi Guys I have a requirement to have a website running as a service accout for IP reasons, I also want to be able to use AzMan for Auth/Auth of the users. For some reason I cant seeem to get these working together. I have set up a sample app to test the waters that basically spits out some user credentials. Other than Azman and the web c...

Can you prevent your ASP.NET application from shutting down?

I think I heard that ASP.NET applications will shut down after a while of being idle (i.e. no visitors). Is there a way to prevent this behavior from happening? I have a timer that runs some code from the global.asax.cs application_start event, and want to make sure that it continues to run, even when no visitors are hitting the site. ...

Coding PHP on IIS only index.php or default.php can be accessed directly

I am running IIS7 and for the longest time I have been dealing with only being able load index.php. All other requested files return a "File not found" type message in the browser. I have built my own OOP Framework making it mostly a non issue. Now I am doing some ajax stuff. Ajax REQUIRES that I make use of more then one file because if...

Best way to improve performance (and include somehow failover)

Hi, We have an application running where IIS and SQL are on the same machine. It's a windows2003standard server, with 4gigs of RAM running on a VM. Now the numbers of users are rising constantly. There are some huge statistics also, which can be run by the users but has very much impact of the performance for other users. So we need t...

upload speed control from IIS?

Hello everyone, If I am using IIS 7.0 + Server 2008/Vista Enterprise, any ways from IIS 7.0 side to control the upload speed? For example, max upload speed at 1M bytes/second? Any configuration based easy solution is great! And any programming based solution is also appreciated. :-) thanks in advance, George ...

Passing Non Existing Directory As a parameter in IIS or Apache

First look at this url: http://stackoverflow.com/questions/tagged/xoxoxo/ This directory does not exists but somehow stackoverflow can pass that last directory as a parameter to his base script. Is this possible to configure IIS or Apache to do so? How? ...

web based application server Implementation

I intend to create a web based application server. The server is implemented in C and I wish to create a web based interface instead of a specific client application. Could anyone please suggest what approach/technology I can use to implement ? Thank you. -Mac ...

msdeploy IIS 6 to 7 migration issue

I am trying to view the dependencies of my website on IIS 6.0 running on windows server 2003. When I type the following command, msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1 I got the following error: C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:getDependencies -source :metakey=lm/w3svc/1 Error: Object of t...

Simple comet example using php and jquery

I have searched on google for hours without finding a good and simple example of the comet technique using PHP. I just need an example that uses a persistent HTTP connection or something similar. I dont want to use a polling technique because I have something like that set up and not only is it difficult to work with and manage its a big...

how do i publish my asp.net project to my local iis?

I've been looking and I've seen a few how-tos but I find them to be somewhat confusing. Does anyone have a good tutorial or step by step writeup that's easy to follow for a newbie Thanks Crash ...