iis

Setup local IIS7 for testing websites

Is there an alternative, other then modifying HOSTS to setup temp domains when testing websites locally? I'm using IIS7 on Win7. I don't want to use /localhost/domainname. I'd rather do /domainname so i don't have to worry about paths to files, etc. My websites are setup so that paths to files are relative to the root folder and not to ...

IIS Windows Authentication before Anonymous

I have a website that I would like to allow both Forms and Windows Auth for. My problem is that it seems that when you setup IIS to allow both anonymous (Required for forms auth) and Windows auth that the browser won't send the user's network credentials. It just uses the anonymous login. Is there any way either in IE8 or IIS to have it...

iis only Add Expires headers to images

Add expires headers in iis is very Easy,but this cache all the static files. now i want only add expires headers to images,how can i do that? even i want cached specific file? ...

connection between IIS and client browser

Hi all expert, I was googling the below question but didn't get appropriate answer. what is the connection between IIS and client browser? How do they communicate? Thanks, Programmer ...

ASP.NET 2.0 in Virtual Trying to Use SQL State Server

We have IIS 6 running on a W2003 Server. The root web site is running a v1.1 site. Under this site we have a virtual running a v2.0 site (with a separate application pool). The web.config for the root site is using SQL as its state server and has a 1.1 SQL state server database installed. The 2.0 virtual web.config does not need state an...

Running/debugging SMTP Event Sinks under windows 2008

I have an SMTP Event Sink to process incoming SMTP email messages to perform special processing. Under IIS 6/SMTP, this event sink runs as expected. Under IIS 7/SMTP, it does not appear to run, even though it appears to register successfully, as shown below: c:\Program Files\Kryptiq Corporation\GW\Bin>regsvr32 SpoolFilter.dll c:\Progra...

Set windows authentication for an MVC route?

I want most of my site to be Forms Auth, so IIS must allow for anoymous users. However I alsowant windows on the domain to be able to skip logging in. So I'd like one route "/Login/WinAuth" to be set as requiring Windows auth. if this was a .aspx file I'd just change the security of the file in IIS and be set. But when using MVC I don'...

How to "un-impersonate" (un-delegate?) in Kerberos

I have a web application using Kerberos to access an external resource useing ASP.NET 3.5 and IIS. When a user connects with the application, Kerberos authentication auto-magically allows me to connect to external resources acting as the user using delegation. This was not easy to do. It is nice, but I've a problem. Sometimes I need ...

Different Default Document Type in Subfolder on IIS 6

I've never worked on an IIS server with PHP before, but my question is can I set a default document type for a subfolder in the web.config, this is what I have in mind (its a bbPress forum): <location path="forum"> <system.webServer> <defaultDocument> <files> <add value="index.php" /> </files> </defau...

What's the best way to redirect an entire classic ASP website to a new domain ?

I need to redirect an entire classic asp based website to a new domain whilst still maintaining the search engine ranking of the old site. I think a 301 redirect is required but not sure what the best way of doing this would be as I don't think .htaccess works on an IIS Windows based server. I would prefer not to have to change existin...

MIME type wont change for IIS6 Dynamic content

After changing .zip file mime type on IIS 6 metabase to (application/x-zip), I can see that .zip downloads with a new content type when I download it from static folder (/zip) But I use ISAPI extention to download .zip the mime type (?downloadname=filename thus dynamic content) changes it to (application/x-zip-compressed). Verified it wi...

How can i restrict access to the files of my website?

How can i prevent users from getting the list of files that exist in my website? For example when users type on the address bar the WebsiteAddress+/DirectoryToSearch/ they get the list of files in that directory, without getting any permission denied error Is there any setting in asp.net that am i missing? ...

ISAPI Rewrite rule help ( .html -> .aspx )

Hello, Recently I'm working on a refactor project from asp to asp.net 3.5. There are lots of .html file uses .inc file for the header and footer in the old site, and needed to be converted to .aspx uses master page. My problem is, for search engine and for bookmark those old pages are all gone Therefore I need to redirect the old .html...

TrustFailure: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Hi there, I'm using .netCHARGE (http://www.dotnetcharge.com/) to process credit cards and I'm getting the error: "TrustFailure: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." everytime I try to process a payment. I read through previous SO posts that match this error and ha...

Why does Crystal Reports throw a LoadSaveReportException in IIS7 but works in Cassini / desktop application?

I have a method that loads a Crystal Reports file, sets the appropriate login information, and then generates a PDF. ReportDocument rep = new ReportDocument(); rep.Load(...); // Set table LogOnInfo rep.ExportToStream(ExportFormatType.PortableDocFormat); // Save the PDF to disk or return it as web request This exact code works in bo...

Start IIS server if IIS server not running

HI, I would like to write a code in which start iss, if iis is not running. ...

How do I change the Default Document order programmatically in IIS using C#?

I have an ASP.NET website application, and there is a home page for my web site. I need to be able to change the default document of my website programmatically (C#) so that I can make another web page take priority above the one that already exists. I would then like to revert back to the previous default document order. Example : ...

Simple Regex Help

How can I match strings without a dot in regex, for example, these should be matched: a/b אאא/תתת a b c ג 123/1 but these shouldn't: abc.asp ddd.css style/main.css For .NET Syntax. Thank you. ...

Why does Response.Redirect sometimes pull from cache?

I've noticed that when I Response.Redirect to an .aspx page, it sometimes displays a cached page instead of actually executing the page and pulling fresh data from the database. I'm not using output caching or anything special in .Net here -- this is a CRM, and the caching is either happening on the client or, perhaps more likely, autom...

PHP's database operation not working property in IIS?

After this statement: insert into table... value(..,"It\'s my title") In database I can see : It\'s my title It only happens when in IIS.How to fix? ...