iis

hints of impending failure

I'm looking for indicators that I can programatically check that would hint at an impending failure of my application. I'm looking for general things like "the number of free IO threads is dangerously low", "memory available to the app pool is low", and "processor usage is high". This is for C#/asp.net and IIS. Examples of checking the...

diagnose 404 for asp net POST request

How can i diagnose the 404 errors on my asp.net application. It seems in iis logs that GET request to my *.aspx page return success ( code 200) The POST request to same page returns a 404 error , not able to diagnose why. Is there a seperate setting to allow POST request to this page or some where in the application. Edit #1 The Page h...

Advice Needed: Deploying application to IIS - Can this be fully automated?

I am seeking advice: Ideally, I would like to give an Administrator (of the web server) one file (.exe, .msi, .bat, whatever you suggest), so that when they execute the package, it will setup my application (contains .aspx, .xap silverlight, web service .svc, etc.) on IIS. This will include and certainly not be limited to such things in...

Windows 7 inetpub wwwroot read only

On my Windows 7 computer, c:\inetpub\wwwroot is not updateable unless I turn off User Account Control. What's up with that? ...

IIS: 405 (Method not allowed) when posting to default page

i want to POST form data to the default page of a web-server, e.g.: POST http://errorreporting.example.com/ HTTP/1.1 i want the server to be responsible for 302 redirecting the client to where the POST should go. The default.asp file on the server performs this task (which is the technique Microsoft recommends), by performing the Redi...

IIS FTP 7.5: Custom Auth Provider not working Error 530

Hi to all I have recently install Server 2008 R2 on a new server and want to use the FTP capabilities that are now shipped with IIS 7.5. Since my users are not windows users, I was using IISAuthManager but this prodiver does not offers home directory on a user basis. I found this sample http://learn.iis.net/page.aspx/669/how-to-use-ma...

Hide Port Numbers after redirect from IIS to Apache

Hello All, I am running IIS 6.0 and Apache 2.2 on a Windows Server 2003 (dedicated) I have a default website on IIS which is required on port 80 (default). Apache has been setup to listen on 8080. I need IIS for one sytem and Apache for another. I have setup an IIS redirect to URL to forward any request to www.myotherdomain.com to www...

log4net - Appenders not working in IIS7.5

I am able to write to a log file using log4net and Cassini/IIS dev server, but when I use IIS7.5, I can't write out to a file. Initially, I got a security exception, so I added requirePermission="false" and the exception went away but no file was created. The trust level is full according to IISM. I can't get this working on my own m...

Security Policy Exception trying to access file in ASP.NET

I am using the following code to open up an XML file so that I can utilize it for content management: //Initialize and load xmlDoc XmlDocument XMLDoc = new XmlDocument(); XMLDoc.Load("E:\\foldername\\Content.xml"); FileStream fileStrm = new FileStream("E:\\EightFoldDev\\Content.xml", FileMode.Open); XMLDoc.Load(fileS...

Using IIS7 can I get the IP that accessed a webpage at a certain time?

Using IIS7 can I get the IP that accessed a webpage at a certain time? Such as 3:41:17 am? Not a programming question, but I need to track down whoever connected and trashed my web project. So please dont close this question. ...

ASP.NET MVC 2 not displaying images in CSS files

I have a small app I've written, and it works well when using the dev server, but as soon as i switch to IIS on my local box (IIS 7), I lose images and styles. I tried using Url.Content and that kind of works for styles and images in the master page, but I still lose images that are referenced from CSS styles Is there any way I can ge...

Serve DXF (and other types) files in IIS

I've got a problem with one of the pages within a website. This page will serve images according to the selection a user makes like PDF, GIF, DWG and.. DXF I understand why PDF and GIF will attempt to open in a browser, but the DXF files will (using firefox and chrome) try to open inside the browser window too - unsuccesfully, but attemp...

Static variables in IIS-hosted web applications

If I declare a static field in a type instantiated within an ASP.NET application, hosted within IIS, is the same variable (i.e. same memory location) used by all of the worker threads used by IIS, opening up concurrency issues? ...

nginx reverse proxy IIS to cache the pictures

I have the nginx reverse proxy to IIS to cache the images... now I have config the like this: user root root; worker_processes 8; worker_rlimit_nofile 51200; events { use epoll; worker_connections 51200; } http { include mime.types; default_type application/octet-stream; server_names_hash_bucket_size 128;...

Why my HttpHandler is ignored?

Hi, In an ASP.NET application, I need to do some changes on every CSS file sent. So I created an HttpHandler (inside the app itself), added: <add verb="*" path="*.css" type="MyWebsite.CssTestHandler,MyWebsite"/> to Web.config in system.web/httpHandlers and modified the handler like this: public void ProcessRequest(HttpContext conte...

IIS: default character encoding when reading POST data

What character encoding does IIS use when reading POST data if the Content-type header does not specify a character encoding? ...

iis server returns 500 internal server error, while polling. but works on localhost.

I am using the polling duplex model for my silverlight app and wcf communication. The wcf service pushed data to the silverlight app. While the app runs perfectly in my local environment and local iis (xp, iis5.0), it has a very unpredictable and abrupt behavior when i deploy it on my test server on IIs 7. The default for the 'ServerPo...

Where do I set Response.TrySkipIisCustomErrors?

I working on a custom 404 page and keep getting a 500 error from IIS7. After doing some research I found I need to set "Response.TrySkipIisCustomErrors=true;" Where do I set that value? Can it be set in anyway with php or within the web.config file? my 404 web.config code is: <customErrors mode="On"> <error statusCode="404" redire...

Image SRC From PHP Script on IIS - Not Displaying Consistently

Last week I converted my page img src values from pointing at image files to using a PHP script to serve up the images. The primary reason was to accommodate both files and database BLOBs as the actual source. Now when a user goes to a page, sometimes images show and sometimes not. If not, and the page is refreshed\reloaded, then the im...

Way to cause VS 2010 to update IIS' physical path to the application being opened?

In Visual Studio when I open an ASP.NET application it will check IIS and offer to setup a site if needed to run my application under (assuming I am using IIS and not the integrated development server of course). This works fine unless I have multiple copies of the same application at different physical locations on my computer. I coul...