Hi,
I have written some code in C# to programmaticall y create a website
and an application pool. Both seems to be getting created alright with
whatever settings I have applied. However, when I fire a request to
the website, I get a "page can not be displayed" message". I get
nothing in the event viewer logs. I read somewhere that from website
properties Home Directory Application Settings, if I remove and
recreate the application pool, website starts serving requests. This
DOES work but I am unable to figure out how to accomplish this from my
code. When I checked Metabase.XML file of IIS before and after doing
this change manually, only change I noticed that following gets added
inside <IIsWebVirtualD ir>.
UNCPassword="49 634462500000000 600000040000000 bd77b5e56b3f000 048866b15ac840f 0bc531565bfc2a1 b5c6eb77c9661f5 27ba8edd7344f93 776e7cf6ae118bc db8db8a6ea143d7 ae1d03c8672ac2c 84bd677cd3fde3c 37cf6e6a0"
However, my app pool is running under "local system" identity. So this
string might correspond to some default encrypted string.
Does anyone know how to get it working from my code?
Thanks,
Mandar
I have written some code in C# to programmaticall y create a website
and an application pool. Both seems to be getting created alright with
whatever settings I have applied. However, when I fire a request to
the website, I get a "page can not be displayed" message". I get
nothing in the event viewer logs. I read somewhere that from website
properties Home Directory Application Settings, if I remove and
recreate the application pool, website starts serving requests. This
DOES work but I am unable to figure out how to accomplish this from my
code. When I checked Metabase.XML file of IIS before and after doing
this change manually, only change I noticed that following gets added
inside <IIsWebVirtualD ir>.
UNCPassword="49 634462500000000 600000040000000 bd77b5e56b3f000 048866b15ac840f 0bc531565bfc2a1 b5c6eb77c9661f5 27ba8edd7344f93 776e7cf6ae118bc db8db8a6ea143d7 ae1d03c8672ac2c 84bd677cd3fde3c 37cf6e6a0"
However, my app pool is running under "local system" identity. So this
string might correspond to some default encrypted string.
Does anyone know how to get it working from my code?
Thanks,
Mandar
Comment