iis

Install IIS from C# code

Is any way that I can install IIS from C# code? I need to create a deploy installer for my application but I need that IIS to be installed in the machine so I want to verify if IIS is installed using C# code and install it if it's not. The installer must work with all versions of IIS. Thanks in advance. Paulo ...

ASP.Net restart / GAC refresh problem

How should I "properly" restart the ASP.NET (IIS 5.1) server in order to refresh the loaded assemlies? I tried several things, but without success: tried to stop and start the web site in IIS manager touched web.config file tried using iisreset tried to kill ASP.NET processes my assemblies are not strongly-named, so they are not in GAC...

Weirdest IE8 Printing issue ever!

We have two servers, a development/test server (Win Server 2008) and a live server (Win Server 2003 SP2). Same ASP.NET code base deployed to both, everything works fine Except when printing on IE 8 using the live server. The live server prints the content shifted to the right in a larger font size. I just don't get it! It is worth noti...

Asp.Net publish on server does not some html controls

Hi , I have a web application which works fine when i publish and host it on my localhost ... The same published folder i host to a remote server and a few controls go missing on load of the page .I log into remote desktop to the server and try opening the site on the server itself it works fine. But only when i access it from my local s...

Unable to start debugging in Visual Studio 2010.

Similar to http://stackoverflow.com/questions/1928957/debugging-asp-net-with-iis but for different version of visual studio, different OS and his fix didn't work. Before I shut down my computer last night everything worked fine. This morning I rebooted and I started getting the error message below when I tried to start debugging my web...

Visual Studio "Add Service Reference" keeps adding "extendedProtectionPolicy" to my config file

When I add a Service Reference in Visual Studio to a service, it keeps adding this extendedProtectionPolicy to my Security Bindings, which on my Win7 machine it works fine. But when I deploy to Server 2003 it errors out saying unrecognized element in configuration file. Removing the line <extendedProtectionPolicy policyEnforcement="Neve...

ASP.NET MVC 404 Errors for IIS 7 Integrated mode

Hey everyone. I am getting 404 errors when I try to access my ASP.NET MVC 2 site. I'm hosting this site using II7, and I have my site set to use the DefaultAppPool Intergrated pipeline mode. Here's my routes, it's a pretty basic site: routes.MapRoute( "DefaultRoute", // Route name "{controller}/{action}/{...

Restore SharePoint publishing homepage to Pages/default.aspx

I have a Publishing site and the last SharePoint administrator copied /Pages/default.aspx to /default.aspx and set it as the homepage, so now I have two independent copies of the same page to maintain. I want to delete the /default.aspx and reset the HomePage to /Pages/default.aspx. I can set the "Welcome" page back to /Pages/default.a...

coldfusion cfimport IIS unstable execution

Hi All, I have created customtags (7 files, nested tags) using CF9 and call it using cfimport, when I run it on my notebook with CF9 dev edition with built in CF web server, it run with no problem, but when I run on IIS it sometime it's show blank page or partial execution only (never completely run) error stack trace: java.lang.Incom...

Monitor ASP.NET Session State

Is there any way to monitor asp.net session state in order to watch object size, or is there any other practice to find out a way to lighten asp.net session? ...

RewriteCond Check if file exists in a subdirectory

I'm using Iirf v2.0. I have the following directory structure: / /library /library/index.php /webroot /webroot/images /Iirf.ini Where I have a library folder which contains my application, a webroot folder (which contains images, stylesheets etc) and an Iirf.ini config file. I'm wanting to redirect all requests to /library/index.php...

Deploy ASP.NET application in the same web site as Sharepoint

Hello, I am trying to deploy the Bugtracker.NET tool (http://ifdefined.com/bugtrackernet.html), which is a normal ASP.NET 2.0 application, into the default web site of an IIS which already has Sharepoint installed in it. The OS is Windows Server 2008 R2, IIS 7.5 and Sharepoint Services 3.0. The question is that when I execute the appli...

Migrating web application settings as configured through IIS

We have a few settings in our web application that can be user configured. As IIS exposes helpers for configuring "Connection Strings" and "Application Settings" we decided to take use this method of configuration. Unfortunately this works by editing the Web.config file deployed in the web application. This means that a simple upgrade...

Unable to seek in flv movie on IIS7

I have 2 identical ASP.NET applications, one running on Windows Server 2003 with IIS6 and another running on Windows Server 2008 with IIS7. The one on IIS6 runs perfectly, but on IIS7 I'm unable to seek while playing my video. They are both using the exact same HTTP-handler for streaming. I'm using the JW player for Flash (v. 5.2) and ...

Web site works in dev mode; when deployed on IIS causes Security Exception

My ASP.NET web site works fine in development/debug mode, but when I publish it, I'm getting the following error: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or ch...

Automating adding sites to IIS7

I'm building some scripts for automatically setting up a developer's machine so everyone has an identical setup & configuration. One thing in particular I want to automate is the configuration in IIS7. We have a bunch of web apps which need to be hosted locally and would ideally like them all set up automatically. Does anyone know of a...

how to upload files using ajax in jquery, windows 7

how to upload files using ajax in jquery. system: windows 7, iis, asp.net, c# ...

IIS NLB - Force particular URL to one server

Is it possible to force all requests for a particular page to a fixed server within a NLB cluster? This page doesn't use application or session variables, but does make use of an ASP.NET cache. ...

Unable to modify machine.config file

I want to improve performance of my ASP.NET web application and want to change "processModel" tag in machine.config. But I am unable to modify "machine.config" file located at framework directory. Though I have disabled "readonly" permission for the file, still it is not working. ...

Debugging a mysterious IIS crash

I have an ASP.NET MVC web application which integrates a C# managed library of ours that loads unmanaged plugins to do some file processing. These unmanaged plugins in-turn rely on a few 3rd party libraries to do their dirty work; some of which are causing IIS to crash. We use the exact same library in a desktop application which is abl...