iis7

Creating nested virtual directories in IIS 7.5 \ C# (.NET v4.0)

Hello all, I created a Windows Service, with a constant interval that checks few lines in the DB, and creates virtual directories in the IIS by code. Those virtual directories are created in the following template: "IIS://localhost/W3SVC/1/Root/" + vdName As written, virtual directories are created successfully, but in the ROOT folde...

Creating virtual directories within another virtual directory using C#

Hello, I created a windows Service app which knows how to create virtual directories in the root folder of the IIS (7.5). And this is the code: System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot(); string sError = ""; vr.Create("IIS://localhost/W3SVC/1...

WCF Service VS IIS 7.0 VS IIS7.5

Hi, I got WCF Service with Fluient Nhibernate. When i hosted in my IIS7.5 dev machine(WIN7) it works fine. Worker process shows the clear garbage collection indication of my app pool. But when i moved to production which is win server2008 with IIS7 Garbage collection is not working and the virtual bytes in worker process keeps on incre...

Is there a better way to deploy web applications using Visual Studio 2010?

I am using Visual Studio 2010 and IIS 7.0 .Currently when I want to deploy an website to my web server I follow these steps - 1.Right-click on website and say publish..to get the entire site copied to a local folder. 2.Next using filezilla just ftp the copied files to the web server. The problem is I have to deploy entire website all...

FTP Error 530 User cannot login

I am trying to FTP to a new FTP site I setup with IIS 7.0 for the Windows Server Web (64-bit) edition. But I get the above error when I try to login to this site. But I can login to my other FTP sites. Also, when I select this website from IIS Manager, the FTP section does not display in the middle section although it does display in...

How to refresh #include files - they are caching on IIS7 / ASP.NET

I have an ASP.NET master page which references a #include file as follows: <!--#include virtual="/includes/scripts.inc"--> I have modified the file /includes/scripts.inc but the changes do not show up in pages. What needs to be done so modifications will be reflected? I need to avoid the following: restarting the server restarting ...

URL Rewrite Module, Azure and web.config

Hi! I'm trying to use the URL rewrite module in Azure but for some reason I can't add a <rewrite> section to the web.config's system.webServer section (as shown on http://msdn.microsoft.com/en-us/library/dd573358.aspx). I've installed the URL Rewrite Modeul v2via the Web Platform Installer. I'm using Visual Studio 2010 with the v4.0...

Problem loading html with flash page using https in Internet Explorer.

I have a html paga which loads a flash(flex) swf file. Using https it loads successfully with Chrome, Safari and Firefox, but not with Internet Explorer. Another page, a simple aspx page, does load in Internet Explorer using https (and no flash in it). Haven't found anything so far on the internet to solve this... Anyone? UPDATE: When...

64Bit IIS7 won't run 32bit dll , even with 32bit enabled

I have an C# web app that use a 32bit dll . Everytime I try to access the service , I get "Could not load file or assembly 'RegCheck' or one of its dependencies. An attempt was made to load a program with an incorrect format. " I've switched the IIS pool to enable 32 bit , reset everything , tried again - but still the same error. M...

Posting forms to a custom 404 Classic ASP URL in IIS7: where is the post data?

Have recently migrated a number of websites from an ageing Windows 2003 server running IIS6 to a new Windows 2008 server running IIS7. The sites all use a CMS written in classic ASP which requires that the 404 error is modified to load a default.asp file which looks at the URL and loads content from a database. This is just to keep all ...

FTP Error 530 User cannot login

I am trying to FTP to a new FTP site I setup with IIS 7.0 for the Windows Server Web (64-bit) edition. But I get the above error when I try to login to this site. But I can login to my other FTP sites. Also, when I select this website from IIS Manager, the FTP section does not display in the middle section although it does display in A...

How can I manipulate appsettings in a web.config on a remote machine using Microsoft.Web.Administration?

I'm using the Microsoft.Web.Administration library to configure a web.config on a remote machine. I've been able to read sections and add new items for the most part using the GetWebConfiguration method on the Application object, but I've run into a snag with appSettings. I would like to be able to read and write to the appsettings sect...

iis7 css is only applied to cassini server

If I run my site on IIS7.5 it renders exactly the same html as cassini server on VS2008: <div class="toplistitem"> <p> Text presented on web page. </p> </div> with the following css class: .toplistitem { background-color:rgb(230,230,230); border-top:1px solid rgb(200,200,200); border-left:1px solid rgb(200,200,200); border-right...

IIS7: How to bind SSL Certificate to Https Host Header?

I have the following Web Farm: 1. http: mydomain1.com port: 80 2. http: mydomain2.com port: 80 3. https: port: 443 SSL Certificate: myCertificate In II7 when you select https binding, the host name will be disabled. I used the appcmd to bind the host name "admin.mydomain2.com" to the website. appcmd set site /site.name:"admin" /+...

Does IIS shut down hosted services? How can I prevent that?

I'd like to host a WCF service in IIS 7. I'm not familiar with this topic, but a coworker ensured me that IIS is going to shut down the hosted service after some time ("days") no matter what. When does IIS actually shut down my services automatically? How do I set it up so it keeps them running all the time (even if they are not doing a...

Network Load Balancer taking a long time to redirect to a new server

** Before you comment and say this should be on serverfault.com - it IS on serverfault.com and I've only had one comment so far over 48 hours - I desperately need to get this sorted and stackoverflow always has prompt responses, so I thought I'd try my luck here! ** Hi, I have two servers, both with Windows Network Load Balancing insta...

Need security advice regarding IIS7, prevent a breach of a DMZ, NTFS, Active Directory and possible pitfalls

Hi I am new to IIS 7 security so please have patience with me :) I am writing a ASP.NET web application hosted on IIS 7(.5) that will serve files located on a file server to the users. The web application is hosted on a different web server, but has network access to the file server. Users accessing the site will be authenticated by t...

Remote IIS Management

Hello, (Edit for clarity...) I've got an ASP.Net application which manages the IIS server as follows: (End Edit...) Successfully using Microsoft.Web.Administration.ServerManager to manage the local IIS 7 server no problem (I'm creating new sites, virtual folders etc on the fly). What I really need to do is manage a remote server to do...

Resful WCF Service and LINQ

Hey guys / gals, Came across an interesting issue with the WCF Restful Webservice I am writing. It seems to be caching the LINQ data objects somehow. I will try to explain... This is my first venture into webservices and am not a LINQ expert so if I am poor at explaining this please bare with me... The webservice is a WCF Restful S...

ASP.NET MVC: First access after some minutes slow, then every following request is fast

Hello, when I access any page of my ASP.NET MVC website first time, then this first request is slow. It needs about 4-5 seconds to load. But every following request to any page is fast. When I wait some minutes or a hour then every first request is slow again. Every following request is fast. I think that IIS 7 is compiling the code a...