iis

Webhost claims ASP.NET MVC support, but runs .NET 2.0.50727.4200?

Is a server which returns 2.0.50727.4200 for System.Environment.Version going to support ASP.NET 3.5? The webhost claims I should ignore the details in the control panel but I get 2.0.50727.4200 when checking the aforementioned system variable. ...

gzip compression in html

i want to apply gzip compression on my site , all my site is in html and i have following limitations hosting server is windows 2003 server. i can upload files, but i can't modify IIS (as most if users just having hosting account) i can't modify the .html files to .php as i have too many pages in html, changing file extension is big...

Hosting someone elses SSL cert in IIS to allow https hosting on their domain from your own server

Currently customers have sites on my domain like https://customername.myapp.com. I'd like for them to be able to upload an SSL cert and then access my site via https://myappname.customername.com - how would one go about doing this programmatically in .NET/IIS 7? bump ...

Redirect without change URL

Hi all, is it possible to redirect an URL www.siteA.com to www.site2.com/Default.aspx?SiteSource=siteA without changing the browser's URL? Similarly, accessing www.siteA.com/Page2.aspx will redirect to the www.site2.com/Page2.aspx?SiteSource=siteA ...

logging urls in IIS

A little over a year ago we started getting hit with sql injection attacks. We have hundreds of sites so we ended up spending weeks patching any holes we could find. Then a few weeks ago we started getting hit again. We've gone through everything we can think of and we can't find anywhere where the person is getting in. Does anyone k...

Specifying the location of an assembly to II

My ASP.NET application uses some 3rd assembly. What are my options to make the application load that assembly? Do I have to put it in the GAC? I don't want to modify the machine's PATH env variable... ...

How do I change the value returned by WindowsIdentity.GetCurrent in ASP.net?

I'm writing an ASP.net application and I'm working with the WindowsIdentity.GetCurrent() function. I want to know how (or if it's possible) to change what identity the ASP.net application runs as. I eventually want to run it as an account associated with the end-user. I understand I can do this with Windows Authentication in IIS, but ...

IIS7: set "no-cache" for all aspx pages but not images/css/js

I would like to not cache my aspx pages anywhere. For some reason IE ignores meta tags which are set from my master page <meta http-equiv="Expires" CONTENT="0"> <meta http-equiv="Cache-Control" CONTENT="no-cache"> <meta http-equiv="Pragma" CONTENT="no-cache"> I am trying to see if I can set my Http response header to "Cache-Control" -...

System.ServiceModel.ServiceActivationException in wcf service

I am trying to call my WCF service through a Flex application. I'm getting the System.ServiceModel.ServiceActivationException. I have Integrated Windows Auth switched to on, anonymous access off, and I've set impersonate to false in my web.config. The project and virtual dir are named the same too. What could be the issue? ...

Silverlight service reference deployment

Hi all. Im having issues deploying a silverlight 3 application for the first time. The issue is with a service reference, the Authentication one. This all works fine locally inside of VS 2008. I cannot add new service and discover the hosted one. Eg the localpath is http://localhost:9626/Services/AuthenticationService.svc But if i ...

problem using a custom 404 page in IIS

I have a web site with a child directory set up as an application. I set up the application to use a custom 404 page. When I navigate to the url and put in a non existent page I get the following error message. Any other asp page in the application works fine. There isn't even any script in the 404 page... just plain html so I'm not ...

Browsing Web page (.aspx page) from a remote PC

I am unable to browse a simple asp.net page from a remote PC through the IP address of that computer. However IIS is responding on a local computer with http://localhost and even when I type the local computer's IP address where the page is present. Computer is running XP and IIS 5.1 The message displayed on browser is "The server is ta...

deploying mvc in iis

Hi, I'm having 5 mvc application where i need to deploy it in IIS. If I deploy it seprately each in IIS its working. But I need in the following structure. -> MyApplications under this all my mvc application need to be deployed. I'm using IIS 7 and tried in IIS 6.x subversion also, Show error like MyApplication/Mvcappl1 virtual pat...

ASPNET MVC Session per request pattern and IHttpModule

Hi Im trying to make a solution like this http://stackoverflow.com/questions/1391060/httpmodule-with-asp-net-mvc-not-being-called Now the question is how do I filter the request, I only want to Open an ISession if the request is for an ASPNET MVC Action, not for *.gif, *.css etc. How should I handle this filtering? ...

Visual Studio 2008 - Open Website from Local IIS problems

Hi there, I've spent a great long while googling this problem without any luck and I've always found great answers here, so here it goes: [BACKGROUND] I have a web application which was developed in C# with Visual Studio 2008. It was a part of a solution with another project which contained a web service. This was not created "IN" II...

Caching problem.

I have a web page with a set of images and java script files. I want to cache all the images+java script other than a single image which is the logo. Is this possible ? and how would I do it ? I am using IIS server. ...

Disabling cURL echoing everything out, throws 'access violation'

I've got something like the following lines of PHP code (on IIS): $service_url = 'http://some-restful-client/'; $curl = curl_init($service_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $curl_response = @curl_exec($curl); curl_close($curl); When executing this I get the following exception PHP has encountered an Access Vio...

How to make IIS to deliver stylesheets with the correct MIME type?

Currently my IIS is serving CSS files with no Content-Type header. How to change it? Should I change it on my application or in the server? ...

Need some help with HTTPS, certificates and signing

I am quite new to HTTPS and can not get my head around it. Can someone suggest good starting point for learning about HTTPS, certificates and signing? Possibly with a working example in ASP.NET with IIS. ...

Is that a way to set the name of the application in the log journal using the IIS web.config ?

Hi, I use the following code in the web.config file of my WCF application: <source name="System.ServiceModel" switchValue="Error, Warning, Information"> <listeners> <add name="LogInApplication" type="System.Diagnostics.EventLogTraceListener" initializeData="Application" /> ...