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
...
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...
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...
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...
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...
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...
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}/{...
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...
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...
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?
...
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...
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...
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...
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 ...
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...
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.
system: windows 7, iis, asp.net, c#
...
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.
...
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.
...
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...