hatred
07-08-2007, 21:48
This is my code, chỉ là ví dụ:
System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot( );
string sError;
vr.Create("IIS://localhost/W3SVC/1/Root",@"C:\Demos\WebServices\","WebServices",out sError);
Code trên có thể tạo được Virtual Directory, nhưng mình gặp nhiều vấn đề.
1. Grant access như thế nào trên folder cài để có thể HttpRequest được.
2. Trên máy mình có 2 .NET framework 1.1 và 2.0, làm sao mình mặc định là dùng 2.0 được.
Bạn nào biết thì trả lời nhé.
Thanks.
System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot( );
string sError;
vr.Create("IIS://localhost/W3SVC/1/Root",@"C:\Demos\WebServices\","WebServices",out sError);
Code trên có thể tạo được Virtual Directory, nhưng mình gặp nhiều vấn đề.
1. Grant access như thế nào trên folder cài để có thể HttpRequest được.
2. Trên máy mình có 2 .NET framework 1.1 và 2.0, làm sao mình mặc định là dùng 2.0 được.
Bạn nào biết thì trả lời nhé.
Thanks.