0
我想設置網站的應用程序池編程取決於.NET目標version.Can有人幫助我與C#代碼this.I要像如何以編程方式取決於目標.NET版本
for(each application pool in system)
{
if this pool is targeting .net V2.0 then set site's application pool to this pool
}
改變網站的應用程序池
我想,如果你沒有配置正確的目標版本,那麼代碼將不會執行。因此,即使您編寫代碼來執行此操作,您也無法更改它,除非它已經是正確的版本。或者你打算從外部程序運行這些代碼? – tvanfosson 2011-03-06 23:02:46