|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Getting list of Website from IIS "Web Sites" Folderfew days back i've posted a question regarding how can i get the list of the websites form the IIS, at this location: http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/97f4f07b8b46a397/41372cde30df29e7?lnk=st&q=how+to+get+list+of+websites+from+IIS+C%23&rnum=1&hl=en#41372cde30df29e7 and i got a nice replay. it worked. now the problem is different when i tried the code on the different webserver which has lots of websites but not under the "Default Web Site" directory. most of the Websites are under the "Web Sites" folder. and now i want to retrive all those websites list from the IIS. i tried to get the type of the folder "Web Sites", but i didnt get anything out of it. can anyone tell me how can i get all of the websites from the folder called "Web Sites". Tools: IIS 5.1 on Microsoft Windows Server 2003 C#.net 2005 thanks, Lucky David Wang's blog might be able to help you:
http://blogs.msdn.com/david.wang/archive/2005/07/13/HOWTO_Enumerate_IIS_Website_Configuration.aspx Show quoteHide quote "Lucky" <tushar.n.pa***@gmail.com> wrote in message news:1161165563.012570.50720@i3g2000cwc.googlegroups.com... > hi guys, > > few days back i've posted a question regarding how can i get the list > of the websites form the IIS, at this location: > > http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/97f4f07b8b46a397/41372cde30df29e7?lnk=st&q=how+to+get+list+of+websites+from+IIS+C%23&rnum=1&hl=en#41372cde30df29e7 > > and i got a nice replay. it worked. > > now the problem is different when i tried the code on the different > webserver which has lots of websites but not under the "Default Web > Site" directory. most of the Websites are under the "Web Sites" folder. > and now i want to retrive all those websites list from the IIS. i tried > to get the type of the folder "Web Sites", but i didnt get anything out > of it. > > can anyone tell me how can i get all of the websites from the folder > called "Web Sites". > > Tools: > IIS 5.1 on Microsoft Windows Server 2003 > C#.net 2005 > > thanks, > Lucky > Hello,
There is no IIS 5.1 on Windows Server 2003, it is either IIS 6.0 on Windows Server 2003 or IIS 5.1 on Windows XP. Anyway, i think this code snippet works on both: "C# - Enumerate websites" http://www.gafvert.info/iis/article/cs_enum_iis_websites.htm Show quoteHide quote >hi guys, > >few days back i've posted a question regarding how can i get the list >of the websites form the IIS, at this location: > >http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/97f4f07b8b46a397/41372cde30df29e7?lnk=st&q=how+to+get+list+of+websites+from+IIS+C%23&rnum=1&hl=en#41372cde30df29e7 > >and i got a nice replay. it worked. > >now the problem is different when i tried the code on the different >webserver which has lots of websites but not under the "Default Web >Site" directory. most of the Websites are under the "Web Sites" folder. >and now i want to retrive all those websites list from the IIS. i tried >to get the type of the folder "Web Sites", but i didnt get anything out >of it. > >can anyone tell me how can i get all of the websites from the folder >called "Web Sites". > >Tools: >IIS 5.1 on Microsoft Windows Server 2003 >C#.net 2005 > >thanks, >Lucky
Need a tip: How do you streamwrite from two different db tables?
On Error Goto Next Loop Q: Advice on threads How to simulate Application.DoEvents in a DLL open source .NET search engine? Bootstrapping .NET 2.0 need help!! Dispose problem/crash with maximized MDI child windows VB2005 - Split Files Visual Basic Programming - Reference to fpPublishLogInTempDir uri - ADVANCED question |
|||||||||||||||||||||||