iis

ActivePerl doesn’t output fatals to browser.

LS, I'm using the following code to test the outputting of fatal errors to the browser: use CGI; use CGI::Carp qw(fatalsToBrowser); die "test"; I am expecting to see some error in the browser, but there isn't any, I just get a regular 500 response. I forgot that I had custom error pages on for remote requests, and I now get Script f...

How to host ASP.NET application externally

I have an ASP.NET 2.0 environment running locally. I am hosting out of port 81 since I already have an apache web server running on 80. As of the moment, I can successfully go to 192.168.1.102:81/TestApp and load up the test ASP.NET application I have built. I am now trying to host it outside of my network by going to mydomain.com:81/Tes...

IIS logging: don't write to log entry if match specific condition

Hi, i'm looking for some way to avoid logging some specific files like /WebResource.axd and /ScriptResource.axd is there any way to write some code lines in Global.asa or add some configurations to do that? thanks ...

Form authentication works on dev server but not on IIS

Hi, We have a similar problem. We have a web application running under default appdomain. It was working fine until a week before...Suddenly it has encountered a problem. Below message is taken from event logs. Event code: 4005 Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired. Applic...

Cannot set up my ASP.NET 3.5 website on IIS

Hi, I've created several IIS websites in my life, but some days ago a friend of mine asked me to host his website, so I created a folder within inetpub/wwwroot to store it. Then, I created a virtual directory in my Default Web Site(the folder appears there as it's on wwwroot) and created the application, and allowed scripts & executable...

How to restore an IIS Metabase backup using C#

I've found the Stack Overflow question describing how to backup the IIS Metabase in C# here, and I have been successful at getting that to work using the code referenced here. However, I am having difficulty restoring those backups (or indeed any backups created manually in IIS) using C# code. Does anyone know how to do this, or even i...

setup uriworkermap.properties to run one tomcat site on tomcat root (without any contexts) with IIS using jk connector

I have one jsp site under webapps/ROOT of tomcat (accessible by doing http://localhost:8080)and want all requests from IIS to go to tomcat's root site (without having to give contexts in uriworkermap.properties) using jk connector. How should I define the uriworkermap.properties file in this case? (My IIS Tomcat implementation is workin...

In IIS6, how to provide authenticated access to static files on remote server

We have a library of ZIP files that we would like to make available for download at an ASP.NET site. The files are sitting on a NAS device that is accessible from out web farm. Here is our initial strategy: Map an IIS virtual directory to the shared drive at path /zipfiles Users can download the zip files when given the URL However...

Adding "Network Service" Account to Administrators Group

My web-app runs in IIS 6.0 under windows server 2003, and we all know that in this situation, user account "Network Service" is used by IIS. I happen to have to allow certain user to perform some action on my web page, and that action requires administrator privilege. The laziest solution to me seems to add "Network Service" to Adminis...

Configuring IIS 7 & ASP.NET App for URL Routing

This is not an MVC topic. I have an ASP.NET Application which performs URL Routing in the Application_Start method. The routing looks like: RouteTable.Routes.Add(new Route( "Profile/{query}", new RouteValueDictionary() { {"query",string.Empty} }, new GenericRouteHandler("~/ProfileHttpHandler.ashx") )); A GenericRouteHandler loo...

Advice for setting up a static file server with ASP.NET/ASP.NET MVC

I would like to set up a subdomain (similar to stackoverflow's http://sstatic.net/) in order to serve static content for my existing web applications. I have never done this before and was wondering if anyone has advice - which technology to use (i am using the Microsoft stack), how i should structure the static site, what are the securi...

Coverage report for ASP.NET web site pages.

I have taken on an ASP.NET web site where the client is using the web server as a code repository, i.e. removing a page from the site involves not linking to it any more. There are a stupendous number of unsused files, and I would like to archive these off and arrive at a lean git repository of only files used by the active site. How c...

File remains locked even after calling filestream.close

Hi, In my application, i am downloading file from DMS system to my server. Once the file gets downloaded, on some environment, the iis keeps lock of the file and when the application tries to redownload the file and put the file on same location, an error is generated that file is being used by another process. Following is the code : ...

ISAPI Settings not visible in IIS7

Hi, I wish to do some settings in IIS7 which could run asp.net 1.1 websites.For that some settings in ISAPI and CGI Extensions are required. But when Opened IIS 7 i couldn't locate any of those. I have enable all IIS features from Programs and Features in Control Panel I am using W7 32bit Enterprise Edition Thanks ...

Suppressing HTTP 500 response codes

I’ve had a bit of feedback from some threat and vulnerability folks relating to websites returning HTTP 500 response codes. Essentially the advice is that all possible measures must be taken to avoid the server throwing a 500 (i.e. extensive form input validation) which is fine. However, the advice also suggested that attempts to compro...

Forms Authentication & Virtual Directory

Hi, We're having trouble getting Forms Authentication to work with a virtual directory in IIS. We have a main site, and then a microsite setup within a virtual directory. This mircosite has its own admin system within an "Admin" folder, which has authentication on it but currently it is not kicking in and the admin section is browsabl...

issue with ftp upload and viewing asp or aspx files

Hi, My english is terrible but i want to ask a question. i hope i can explain. Problem is asp or aspx extension files upload with the ftp programs. But it didn't work upload at server. stopped and started IIS. Then it was worked. How do I solve this problem. Thaks for you help. ...

Upgrading to ASP.NET 3.5

I have a server with some asp, asp.net 1.0 and 2.0 running on them. Now I'm planning to host 3.5 apps on them. Do i have to make any changes to server other than installing framework to make it handle all my previous version apps? Do i have to install new IIS or i can use same iis for 3.5? Do i have to install ajax newer version to...

IIS Default Web Site locking down virtual directories

I have a Web Site in IIS 6.0 that hosts several virtual directories. Some of the virtual directories in the Web Site need to be served out to the internet, so there is a public DNS entry for the Web Site as a whole. Other virutal directories should not be served to the internet, but they get exposed by default through the public DNS ho...

Sharepoint W3WP.EXE Process Consuming 100% CPU - Corrective Action?

We have a Windows Server 2003 web server, and on that server runs about 5-6 top level Sharepoint sites, with a different application pool for each one. There is one W3WP process that keeps pegging 100% for most of the day (happened yesterday and today) and it's connected (found by doing "Cscript iisapp.vbs" at the command line and match...