iis

Move WCF service from test console app to IIS

Hi, I've been building a WCF app behind 3 projects (contract,implementation,client) I've hosted my service as a console app with basic HTTP binding. I'm now ready to move it to IIS. However, the tutorial for creating a .svc file shows it actually implementing the contract - but I already have an implementation. How do I just redirect to...

Is EnableHeaderChecking=true enough to prevent Http Header Injection attacks?

Is it sufficient to have System.Web.Configuration.HttpRuntimeSection.EnableHeaderChecking set to true (default) to fully prevent Http Header Injection attacks like Response Splitting etc.? I'm asking because a white box penetration testing tool (fortify) reports exploitable http header injection issues with HttpResponse.Redirect and coo...

Mercurial Web Interface Broken Links

I'm installing mercurial on a W2K IIS 6 server. I've got it to the point where I can browse a list of my repositories at http://localhost/hgrepo/hgwebdir.py. My hgweb.config contains [path]hgrepo = c:\hgrepositories** But when I click on one of the repository name. In this case its Babbet, I get the same page but when I examine the a...

How to fix "could not find a base address that matches schema http"... in WCF

I'm trying to deploy a WCF service to my server, hosted in IIS. Naturally it works on my machine :) But when I deploy it, I get the following error: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Googling on this, I find that I have to put a ser...

Relationship between threads,appdomains,worker process

What is the exact relationship, in IIS7 and ASP.Net, between : IIS Worker processes Threads AppDomains Applications incoming requests I'm hoping for an answer in a format similar to : "Each IIS worker process hosts many appdomains which each spawn a single thread in response to each request...." etc. , and any nuances mentioned. Th...

How to test subdomains on a development machine? abc.localhost

I am trying to develop an asp.net site with multiple subdomains. I am new to web sites in general, and asp.net in particular. However, it seems that wildcard subdomains are properly setup with a combination of dns entries and web server configuration - which isn't going to happen on my development machine. Therefore I'm manually insertin...

ASP.NET downloading large files of unknown size

I want to use ASP.NET and IIS to download dynamically generated files to the browser to be saved. I don't know the size of the file that will be generated. In the current form, my code generates data and uses HttpResponse.Write() to send to the client. But the client sees no activity for about a minute, before finally showing the save f...

Can we make IS / ixsso.Query perform an AND query by default?

We are using the ixsso.Query object to access an indexing service catalogue through a ColdFusion script. We are currently having issues with structuring the query. The website has a single field free text input and assumes the user is entering the text in an unstructured form. We need to perform queries that ‘AND’ all the inputted keywo...

trying to run a process from an asp.net application

I need to run an application on the server. I have an executable file, which runs perfectly well on my own permissions through terminal services. It also runs well on my own machine through the asp.net when I run the site with my VS. When I tried running my site on the real IIS it just hanged. I tried changing the credentials of the Sta...

Windows Authentication Only Works With hosts entry

I'm setting up a (ASP.NET) website to be used internally at my company. In IIS, I've turned on Integrated Windows authentication and turned off anonymous access. Once I've done this, the website pops up the "enter your username/password" box whenever you visit the site, but won't log you in even if the username/password are correct. This...

SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE

Hello, When I run web application via VS 2008, the application is able to log onto Sql server and check credentials ( user name and password ) entered by the user, but when I browse to this application via IIS 7 and try to postback user name and password, the application reports an exception: System.Data.SqlClient.SqlException: Logi...

Benefit of compressing javascript/css files when using IIS httpCompression.

It looks like IIS httpCompression compresses your files. If this compression is in place, what is the reason to compress files using compression tools like: Packer, JSMin or Yahoo Compressor? ...

Classic ASP - Request object Is Empty

I'm working on adding a feature to an old classic asp site and ran into an interesting problem. The following line on the page results in the helpful error "Object required:'' " strServerName = Request.ServerVariables("server_name") When I attached a debugger to look at it, Request is in fact Empty, which I don't understand how that...

Map Domain Alias to Virtual Folder in IIS6

How could I go about mapping a domain alias, e.g. domainAlias.co.za, to a virtual folder under, e.g. mainDomain.co.za, so that all requests to domainAlias.co.za actually get served by mainDomain.co.za/domainAlias ? ...

How can I prevent applicationSettings in the web.config from being inherited?

I have an applicationSettings section in my web.config in my ASP.NET 2.0 web application. This works perfectly for storing values and being able to access them as strongly-typed values. Here is a snippet of my web.config: <configuration> ... <applicationSettings> <MyWebsite.Properties.Settings> <setting name="ExcludedIt...

404 Redirect to Sitecore page allows for Extensionless URL

I am using Sitecore as a CMS solution. Recently, we decided to add redirect capability to our website for errors. In Sitecore, I have created two content pages, one to handle Server errors and another to handle 404 errors. I implemented the server error with basic sublayouts without any code behind. On the other hand, the 404 page had a ...

How to force every page to load a certain javascript file?

I've created a pretty basic system here at work that does what Google analytics does (extremely simplistic in comparison) and it works quite well, but like Google Analytics it requires each page to reference a JavaScript file. Is there any way to make all of our pages that are served from IIS reference this Javascript file? I would like ...

How do changes to the IIS metabase effect running applications?

What I need to know is if adding custom classes and properties to the IIS metabase schema will cause any running app pools to restart or sessions to be killed off? ...

Session State Server redundancy

We currently have an ASP.NET Web Application running on a single server. That server is about to hit the danger zone regarding CPU usage, and we want to deploy a second server. What would be the best way to handle Session State? We currently run InProc. But that's not an option with 2+ servers, as we want to exclude a single server fro...

DefaultAppPool and Classic .NET pool on IIS7

I have moved a web application with Atlas implementation from IIS6 to IIS7. There are sections in this application that have Ajax implementation. Due to constraints the Atlas was not converted to Ajax. The parts were Ajax is implemented, the application works fine, but client side events fired using Atlas throw an 'UnKnown error'. I ch...