BizTalk Server Applications Integration - setup apllication pool

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > March 2005 > setup apllication pool





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 setup apllication pool
raf

2005-03-22, 7:47 am

how can i define the a webservice setup project to use the hwsapppoll.

Tomas Restrepo \(MVP\)

2005-03-22, 8:46 pm

Raf,

> how can i define the a webservice setup project to use the hwsapppoll.


You can't, directly, since the VS.NET deployment project system doesn't have
that functionality. However, it's not hard to do using a custom action that
uses System.DirectoryServices to manipulate the IIS configuration (how to do
this is explained in the Platform SDK documentation).


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


BA

2005-03-23, 2:47 am


You cant really define the app pool until you have published the web
service.

Once its published, right click the website and select properties. At the
bottom of the general screen is the app pool selection dropdown, select your
pool from there.





"raf" <raf@discussions.microsoft.com> wrote in message
news:3E844781-C21D-48DA-AB9F-C8B10F3F2337@microsoft.com...
> how can i define the a webservice setup project to use the hwsapppoll.
>



raf

2005-03-23, 6:01 pm

the answer is to create a custom action with this method


private void AssignVDirToAppPool(string metabasePath, string appPoolName)
{
// metabasePath is of the form
"IIS://<servername>/W3SVC/<siteID>/Root[/<vDir>]"
// for example "IIS://localhost/W3SVC/1/Root/MyVDir"
// appPoolName is of the form "<name>", for example, "MyAppPool"

DirectoryEntry vDir = new DirectoryEntry(metabasePath);
string className = vDir.SchemaClassName.ToString();
if ((className.EndsWith("VirtualDir")) || (className.EndsWith("Directory")))
{
object[] param = { 0, appPoolName, true };
vDir.Invoke("AppCreate3", param);
vDir.Properties["AppIsolated"][0] = "2";
}
}

run it from a overide of install in the custom action.
use this overide in custom action editor under install in the setup project.

and that all.

this will change the application


"BA" wrote:

>
> You cant really define the app pool until you have published the web
> service.
>
> Once its published, right click the website and select properties. At the
> bottom of the general screen is the app pool selection dropdown, select your
> pool from there.
>
>
>
>
>
> "raf" <raf@discussions.microsoft.com> wrote in message
> news:3E844781-C21D-48DA-AB9F-C8B10F3F2337@microsoft.com...
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com