iis

WCF (hosting service in IIS) - machine name automattically being picked up by WCF rather than IP?

So, I previously posted about my troubles in moving a working WCF service from my local machine to the development server. The problem was that when moving it over all of the references were by machine name rather than ip. Since i was not accessing it on the domain, I couldn't see the machine name and couldn't access the references. H...

Programmatically add IP(s) or domain(s) to Relay Restrictions in SMTP Virtual Server on IIS 6

I have been given a task to create an admin page to programmatically add IPs or domains to a SMTP Relay Restrictions using C#. I spent some time researching this since yesterday and finally traced this down to a few posts on several website that use the System.DirectoryServices.DirectoryEntr class. Using the examples I found, I can add ...

Using IIS virtual directories in Visual Studio Web Application projects

I have an ASP.NET project that has the following directories \ads \photos both these folders have thousands of files in them that get updated frequently. I currently have my IIS set up like \inetpub\wwwroot\foo \inetpub\wwwroot\foo\ads \inetpub\wwwroot\foo\photos \inetpub\wwwroot\foo.staging \inetpub\wwwroot\foo.staging\ads \inetpu...

Same ASP.Net application - Multiple IIS Sites

Hi, A quick ASP.Net performance question... I have an ASP.Net 3.5 SP1 Application that I want to run on IIS 6. For SSL certificate reasons I need to run it on separate sites in IIS. It's a CMS, and some clients will need the add their own SSL certs. 1) Can I run the same set of ASP.Net files on the disk on multiple sites in IIS or do ...

ServiceController Shutting down IIS Security Access

Hi Folks, I am using the ServiceController class to remotely shutdown IIS from a C# Assembly. I was wondering what is the least level of privlidges I need to do this over the network, in my current testing I am using Administrator and it works fine, but when I migrate thru to Production I will be using an AD group and need to give it th...

Pushing data from the server to browser via http

In general chat application, client's browser always poll to server to check for new messages. // the function to check new messages in server function check(){ // but this question is less about jQuery. $.ajax({ type: "POST", url: "check.aspx", data: "someparam=123", success: function(msg){ // process msg h...

Identity of thread in self hosted WCF service when called from Web Application

I have a Windows Service that is self hosting a Wcf service, this Wcf service has a tcpBinding with default settings. The Windows service is running as LocalSystem. The Wcf Service is referenced (default settings) by a Web application that is running in IIS 7.5 integrated pipeline within it's own application pool with its own identity. ...

C#:Security issue while accessing outlook from C# program when published as a site

I am trying to send an outlook appointment from my asp.net page and it works fine when i am running in my VS2008 IDE.But when i published this and configured as a virtual directory, While trying to execute the same, i am getting the below error. Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-00000000...

Help needed for mod_rewrite / url rewrite expression

Hi i m newbie in URL rewriting.. frankly speaking i have no idea bout using regexp Here is what i want to do .. i want a url rewrite rule for www.mydomain.com/news/this is new title/1 this shud call/go to www.mydomain.com/news/display.asp?id=1 similarly www.mydomain.com/articles/this is article title/1 shud call/go to www....

Create a web application on IIS when using a Web Site (the microsoft version)?

Hi there: sorry for possibly a very stupid question. I have one of those Visual studio Web Sites ( ie not a web application) , is there any way I can automate the creation of the IIS Web Application that points to the web site within Visual Studio ( ie then when developers open the solution, the IIS site will be set up automagically? S...

Building connection pool for a custom database in classic ASP

In my real application, I have a VB6 DLL which is called from classic ASP pages. The application calls a non-standard database. I want to have a connection pool class which will stay alive permenantly. I set the compilation flags to keep the DLL in memory but despite that, the pool is periodically destroyed. I’ve already tried changin...

ISAPI vs httphandler

In IIS6 was there a reason for using ISAPI filters/ extensions?. Can the same not be achieved using httphandler/ http modules. Also in IIS7 has ISAPI been removed completely ?. Is the entire code of IIS7 written in .Net. I want to know should one know about ISAPI in detail for debugging or adding new features ? ...

Error when using Application Verifier with IIS 6

I'm trying to use the Microsoft Application Verifier (ver. 4) to debug my ISAPI filters but when I tell App verifier to monitor w3wp.exe (the only test enabled is the Heaps) the server is non responsive and when I look at the even log I see an error for every request I made to the IIS, the error is: Failed to execute request because the ...

editing web.config - a cause of downtime?

On a site I'm working with, we've got two classes of changes they can ask for. On one hand, they've got stuff that I'd have to rebuild and redeploy. They count these as "downtime" changes, because we display a nice little splash screen and we test the site thoroughly when we come back up. On the other hand, they ask us to do a number ...

IIS thows 401 Error Whenever There is a Database Connection in Asp.Net Application

I'm working on an Asp.Net Application in Windows XP Professional with IIS 5, VS 2008 and MS Sql Server 2008. Normal Asp.Net program and html page can be viewed correctly in IIS, however, if there is a successful database connection in the Asp.Net program(otherwise it will show a exception page), the IIS will ask for username and password...

How can I disable HTTP Keep-Alive in ASP.NET MVC?

Is there a way to tell IIS/ASP.NET not to allow Keep-Alive for certain requests? Or even for an entire website, if that's really the only way to go about it? ...

Kerberos, IIS 6, and ASP.NET 3.5

Before I start chucking objects at the server, I'd like to see if there's something I'm missing. Simply put, I have a Windows Server 2003 IIS 6 web app that is attempting to send a WebRequest object at a listener on yet another Windows Server 2003 server. I've set up Kerberos, looks like the SPNs are all OK for the middle server, and hav...

How to programmatically check that IIS hosted remoting is running?

A remoting application is hosted on server using IIS. I need code to check that the hosted application is running or not. Is any way? Please suggest. ...

Can Asp.Net support streaming of 320kbps mp3 files?

I have a piece of my site being built for me that works like this... when you click a song, the song loads in the player and plays it. I'm being told by the guy who's developing it for me that Asp.Net does not support 320kbps files, so that's why the player isn't working. This seemed a little ridiculous so I did some research on it and ...

Issues with .MSI install package created for IIS WCF Web Service - default dir and app pools?

I followed these instructions, and it worked well. http://blogs.cardwells.org/gis/2008/10/08/creating-installer-for-a-web-service-in-visual-studio-2008/ However, the default virtual IIS Diretory name is the same as my projet name. For example, my web service is called MyCompany.RCT.WCFWebServices, and my setup project is called MyCo...