iis

IIS, how to track when the server is up or down?

Hi Guys, I would like to know if there is a way, like a logging option in IIS to keep track of when the server or a site is up or down, so that when you get a client saying the service was down, you can go and check at that time and date and know if it was the server or the site, or something else.... Thanks for the help ...

Javascript relative URLs resolved differently depending on host

Hi, I'm getting a weird behaviour with javascript which I fail to understand: my application's javascript relative URLs are being resolved differently, depending on where the app is hosted: a) my computer's IIS 5.1 (Windows XP) or b) my host provider (which I'm almost sure runs Windows Server 2003). Behaviour 1 (the normal one?) - with...

jquery method is not allowed

How can allow this page to run on IIS server... It does not work on localhost..... it works when I open it directly... It gives the error "it is not allowed...! The working Example..! I want this.. "" the Erorr: <html> <head> <script src="jquery.js" type="text/javascript" language="javascript"></script> <script src="jquery.xml2json....

IIS asp.net mvc partial? file upload

Given the following code which is extremely generic, I was hoping someone could tell me a bit about what is going on behind the scenes... [HttpPost] public ActionResult Load(Guid regionID, HttpPostedFileBase file) { if (file.ContentLength == 0) RedirectToAction("blablabla....."); var fileBytes = new byte[file.ContentLen...

Multiple 32bit processes on 64bit IIS - memory limit?

I've got a legacy ASP web application that uses a VB6 DLL. The app is quite memory hungry. I need to run multiple instances of the app on one machine. Now since VB6 DLLs are 32bit only, running in a 64bit process is out - but what if I ran multiple 32bit IIS app pools? Would the memory limit of 1.2 GB per kick in per app pool, or would t...

Providing .jad file download link

Hi, We are trying to provide a download link to abc.jad file in index.html. abc.jad and index.html are both in the same folder. Following is the link. <a href="abc.jad" type="text/vnd.sun.j2me.app-descriptor">download</a> In addition, we defined the mime type for .jad file in web.config as follows <mimeMap fileExtension=".jad" mimeT...

Convert Virtual Directory to Web Application in WiX

I am creating a new WebSite whenever Feature A or B is installed: <Component Id="IIS.HelloWorld" Guid="6FA5EF90-C9D9-463C-9CC7-0410670AFBD1" Directory="TARGETDIR"> <iis:WebSite Id="IIS.HelloWorld" Description="Hello World for Web" Directory="INSTALLDIR"> <iis:WebAddress Id="HelloWorldAddress" IP="*" Port="8080"/> </iis:WebSite> ...

Using Global.asax to catch missing PDFs

I'm trying to use the Global.asax file in the root application of the website to catch requests for pdf files in the root that don't exist any more. I've configured iis to send pdf requests to asp.net. The whole thing works perfectly on development. It also works on the live system with missing .aspx pages, but not .pdf. Instead an "Erro...

Serving Json from WCF Service with no extension in IIS

I have a WCF service set up to serve data through multiple endpoints (SOAP, JSON and XML) the SOAP and XML is working perfect, but when I try to view the json I get a prompt to download a file with the json results instead of displaying the results in the browser. This probably won't matter as the client will most likely be consuming th...

IIS can not see database server, but it's visible from visual studio development server! Why?

I am using net 3.5 web services that use sql server 6.5 running on windows NT. Once again don't ask me why :) Problem appears when I deploy webservice on my local IIS 5.0 I use ABSOLUTLY the same connection string in both casses. I even caugth the string in break points when webservice is ran from IIS and when it's ran from visual stud...

IIS dynamic compression and HttpHandlers

Does anyone know if it's possible to use IIS Dynamic Content Compression to compress the output of an HttpHandler (.ashx) ? ...

Thousand of messages in Event Viewer

I have a web service running in IIS, there are no errors being thrown and everything works great. BUT I notice that there are thousands of Messages in the Event viewer. Every time I send a request to the web service, a few of this messages are added to the Event viewer. Even Type = Information Event ID = 0 Category = None Source = /LM/W...

Where does IIS save a file when it is uploaded?

I wonder where IIS saves the uploaded file? There must be some default directory. Is it possible to save an uploaded file to a user defined directory on IIS? ...

What is the difference between "SriptMap" property in IIS 6 and IIS 7 ?

Hello, In my application, I want to remove all the Application Mappings except one mapping, for a virtual application. I wrote a piece of code, to get the mappings collection that uses DirectoryEntry and PropertyValueCollection objects. I use Remove method iteratively on the collection to remove all mappings except the one that i want. ...

Why does using IIS7.5's Microsoft.Web.Management.dll only work in a 64bit process?

I'm writing some code to permit users to remotely manage IIS7. Under the bonnet this adds authorisation rules to c:\windows\system32\inetsrv\config\administration.config under the following config section: system.webServer/management/authorization/authorizationRules I'm using the Microsoft.Web.Administration assembly and namespace ...

which user runs my asp.net user ?

hi, i've always read that the user you set in the IIS website/virtual directory is the user that runs the app (anonymous user identity) But in the application pool, i can also set a user (process model, identity) what is the difference between the two, and which one will need access if i do a file read? EDIT: the bounty is for this ...

Connection string for .DBF file don't work on IIS

I am using this connection string to query some .DBF Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\Dbfs; But if i run the application on IIS (7.5) the connection cannot be opened and i get this OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ...

ASP.NET Development Server permissions and Network Resources

My ASP.NET 4.0 Web App is unable to access Network Printers, while debugging on VS 2010. It can access local printers. Seems like it may be a permissions issue. Since VS2010 Debugging runs on ASP.NET Development Server, it must be running under the account I used to log into Windows, right? Does that user need to be added as an Admin...

IIS 6: How can I check if server trace is enabled?

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near ' <!DOCTYPE html PUB'. There are tons of re...

Why am I getting this very strange form POST action behaviour?

I have the simplest of forms written using classic ASP: <html> <head><title>Test</title> </head> <body> <form action="testpost.asp" method="post"> Say something: <input type="text" name="something" id="something" /> <input type="submit" value="Submit" /> </form> <% Response.Write(Request.Form) Response.Write("hello") %> </body> </html>...