开发者

How can I get ASP.Net version in IIS through C#?

I want to specify the default document and the asp.net version for an virtual directory through C#

For default document I have wrote the code as

 "deVDir.Properties["DefaultDoc"].Value = "Mainscreen1.aspx";

and i am not able to get the property na开发者_如何学Cme for ASP.NET VERSION which will be given as "2.0.50727".

can anybody guide me ?


I'm assuming you're using IIS 6. In IIS 6 there is no way to set the ASP.NET version by setting a single property.

What you need to do is set the script maps for the ASP.NET extensions (.aspx, .asmx and so on) to the following path:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜