iis

NHibernate with MVC 2 Deployment issue.

I am deploying Asp.Net MVC 2 application on Windows Server 2003. I am using NHibernate for data access. When I deployed this application on Windows server 2003 and browse to it the application throws an exception saying "hibernate.cfg.xml not found under Windows/System32/inetsrv." Why NHibernate is searching Windows/System32/inetsrv ra...

Restarting IIS on file changed

Hello, AFAIK IIS restarts, whenever any of the web.config files is changed. I've created my own configuration files (my.config, with slightly different hierarchy). Is there any possibility to have IIS automatically (automagically :)) restarted, whenever any of these are changed, too? EDIT: I've considered filesystem watchers, but I'm no...

Making a web page as a default page for the server name where the application is hosted

Hi All, Suppose I have a server wid some virtual name as ABC. And also I have a .Net web application XYZ with some .aspx pages like Home.aspx etc. Now if I want to make Home.aspx page as the default page when I type the server name in brower the Home.aspx opens automatically. what I need to do in this case. Currently Iam accessing the...

File-handle "leaks" caused by HttpHandler?

Hello, I am experiencing a really curious problem with a HttpHandler and I am hoping someobody here might be able to shed light on this. Many thanks in advance for reading this. We have created a HttpHandler that sits in the pipeline of an IIS website that serves images, videos, and other assets. The HttpHandler is very lightweight. It...

ASP.NET MVC: How to automatically disable [RequireHttps] on localhost?

I want my login page to be SSL only: [RequireHttps] public ActionResult Login() { if (Helper.LoggedIn) { Response.Redirect("/account/stats"); } return View(); } But obviously it doesn't work on localhost when I develop and debug my application. I don't wanna use IIS 7 with S...

duplex wcf service data transfer speed in IIS

I have a web service which sends messages back to the client via callback interface. The messages are sent on a different thread. The performance is pretty good when the service is self-hosted. However, when hosted in II5, the messages are sent at slower speed. For example, on a self-hosted service, it takes 0.2s to send a 200KB messag...

Merging two ASP/ASP.NET apps into a Single application in VS2010 WebDev

I have a web application that has been built as two. One is physically located within the file structure of the other. I am trying to integrate the child app into the parent app and consolidate all classes to the parent, to begin large scale ASPclassic-to-ASP.NET conversion of this app. Also, I'm trying to do this without creating a n...

DotNetNuke - Everytime a third party DLL is modified in the BIN folder, it takes DNN 10 seconds to load the next page.

I have a standard DotNetNuke installation that I am developing some modules for. Every time I update one of my modules, it updates that module's DLL in the DotNetNuke installation's bin folder. Despite the fact that I am not touching the main DotNetNuke DLL, it seems that IIS is either reprocessing every DLL in the folder, or doing som...

WPF/C# - Decode/View IIS Smooth Streaming Content

Hi, I'm trying to write an application that is able to download the "chunks" sent by a IIS Smooth Streaming server and capture thumbnails of the video. I'm able to create the proper GET requests to download the chunks, but I'm having trouble finding a way to play or view the chunks I download. Does anybody know of a way to combine and ...

.Net 4.0 Framework Causing Issue for aspnet_regiis during installation

Hi Folks, We have a ASP.net 2.0 web app with an installer which appears to hit an issue with .Net Framework 4.0. This has occurred on XP and Windows 7. Seems to happen every time. During the installation, we call aspnet_regiis for various tasks such as encrypting the web.config. If .Net 4 is installed this throws the error: aspnet_r...

IIS and VS, How do they work together?

I'm a bit confused. When I type in my browser a "local" address (of a web site I'm editing on VS), IIS can handle it. How is that so? How can IIS know what's my latest web site version? What's the difference between typing the address in the browser and compiling the web site, and what does localhost has to do with all of that? And last ...

Implementing OpenID (DotNetOpenAuth) with Classic ASP

I've spent countless hours reading through documentation all over the place and I'm still having a problem with implementing the Classic ASP samples provided in the the latest version of DotNetOpenAuth (3.4.5.10202). Specifically, I'm not sure what values I need to change in the login.asp in order to see if it works / will work for me. ...

WebSite Started to throw error : System resource exceeded. (Access DB)

I have a webpage that is giving me this error on a couple of pages -------------------------------------------------------------------------------- Microsoft OLE DB Provider for ODBC Drivers error '8007000e' [Microsoft][ODBC Microsoft Access Driver] System resource exceeded. -----------------------------------------------------------...

Catching IIS-level certificate errors in C# code

I'm making a SOAP handler that will be secured with X509 Certificates, and one of the requirements is that the program log as much as possible in an existing log viewer. Obviously, there are a lot of errors surrounding certificates that are handled at the IIS level, which in this case is not acceptable. I already have the logging part ...

uploading images/audio from iPhone to server not able to send big images

Hi, I dont know if it is a problem with my iPhone code or SERVER. I am uploading Image/Audio from iPhone to server using NSURLConnection. The images and audio get uploaded just fine if their size is less than 60KB. If it is more than 60KB, I get a 400 Bad Request response from the server. I am not sure whats happening. I am clueles...

Auto-Start ASP.NET Applications

As mentioned here. http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx Is there another way to do this? By just modifying the application's web.config file? ...

web.config ignores customerrors="on" attribute

Hi I've got a site where I get the classic: Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by brow...

IIS doesn't start. Error code: C0000142

My site worked perfectly fine. When I restarted IIS (for some scenarios check) - It stopped working, and gave me a page telling me to check the event viewer, there I get the following error: aspnet_wp.exe could not be started. The error code for the failure is C0000142. This error can be caused when the worker process account has ins...

Detecting 32-bit mode on IIS 64 bit.

IIS lets you run 32 bit applications on a 64 bit host using the enable32BitAppOnWin64 setting. How can I find out (in code) if this is set for the currently executing application pool? I'm targeting C# on IIS 6 or better. ...

ASP.NET application throwing "unable to find assembly" error for NHibernate

So let me start by saying that the weird thing about this error is that the application is running, and the error bubbles to the event log, but it's intermittent. Sometimes it's 2 hours between it happening, sometimes a few minutes, sometimes half an hour. Does not appear to be tied directly to requests (and requests don't seem to be f...