Application Center Usage - ASP.NET Web Setup Projects & Application Center 2000

This is Interesting: Free IT Magazines  
Home > Archive > Application Center Usage > August 2005 > ASP.NET Web Setup Projects & Application Center 2000





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ASP.NET Web Setup Projects & Application Center 2000
Jan K

2005-08-09, 5:53 pm

Hello,

I've a web setup project where I include a custom action and an Installer
class, in order to disable anonymous access in the web-application to be
created.

This was done by following the article:
http://msdn.microsoft.com/library/d...gdeployment.asp
- "Modifying Internet Information Services During Deployment with Custom
Actions". I converted this code to work in C# though.

In order to be overcome the issue with deployment to non-default websites,
I've patched .NET 2003 in accordance with the following KB-article:
http://support.microsoft.com/defaul...kb;en-us;821335 - "FIX: You
cannot deploy a Web Setup project to Web sites by using host headers or IP
addresses in Visual Studio 2003 and Visual Studio 2002 Service Pack 1".

This works fine, in most instances. However, the Web Setup installation
package doesn't work on our Application Center cluster, and the error seem to
be to retrieve the correct DirectoryEntry object (IISObject - see code sample
below).

---
IISObjectPath = ("IIS://" + (machineName + ("/W3SVC/" +
servers[i].ToString())));
IISObject = GetIISObject(IISObjectPath);
----
private DirectoryEntry GetIISObject(string strFullObjectPath)
{
DirectoryEntry IISObject;
try
{
IISObject = new DirectoryEntry(strFullObjectPath);
return IISObject;
}
catch (Exception ex)
{
throw new Exception(("Error opening: " + (strFullObjectPath + (". "+
ex.Message))));
}
}


So the question is: Does Web Set up projects work on Application Center
clusters?

Cheers,
Jan
WenJun Zhang[msft]

2005-08-10, 7:49 am

Hi Jan,

The problem may be related to server name resolution which causes
WMI. Can you properly ping the machineName and get that box's
dedicated IP address(not cluster virtual IP)? You can populate IP in
the code to have test.

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com