We have a web app depending on the installation of .net framework 1.1. If the user install .net framework 2.0 as an add on or if the user only has .net framework 2.0 installed, certain functionalities are broken resulting in an errormessage starting with :" Message: Request for the permission of type 'system.net.WebPermission,System, Version=2.0.0.0....."
我们有一个Web应用程序,具体取决于.net framework 1.1的安装。如果用户安装.net framework 2.0作为附加或者如果用户只安装了.net framework 2.0,则某些功能会被破坏,导致错误消息开头:“消息:请求类型'system.net.WebPermission的权限,系统,版本= 2.0.0.0 ......“
Is there any way i can define that the web app only will use .net framework without modifying the code? Maybe in the web.config of the IIS?
有没有什么办法可以定义Web应用程序只使用.net框架而不修改代码?也许在IIS的web.config中?
Thanks in advance
提前致谢
3 个解决方案
#1
In IIS, go to the ASP.NET tab (folder properties), and change it to 1.x. That should do it.
在IIS中,转到ASP.NET选项卡(文件夹属性),并将其更改为1.x.应该这样做。
#2
You should be able to go to the properties of the website in IIS and specify the version of .Net you'll be running under.
您应该能够在IIS中访问该网站的属性,并指定您将运行的.Net版本。
Here's how to get there on the server...
这是如何在服务器上到达那里...
Start Menu>(Right+Mouse+Click)MyComputer>Manage>Services And Applications>IIS>Websites>(Right+Mouse+Click) [your website]>Properties>Asp.Net>Asp.Net Version
#3
In IIS you can configure a website to use either installed framework:
在IIS中,您可以配置网站以使用已安装的框架:
- In IIS, right-click on the website or application, select properties
- goto ASP.NET tab
- select the ASP.NET version to use
在IIS中,右键单击网站或应用程序,选择属性
转到ASP.NET选项卡
选择要使用的ASP.NET版本
#1
In IIS, go to the ASP.NET tab (folder properties), and change it to 1.x. That should do it.
在IIS中,转到ASP.NET选项卡(文件夹属性),并将其更改为1.x.应该这样做。
#2
You should be able to go to the properties of the website in IIS and specify the version of .Net you'll be running under.
您应该能够在IIS中访问该网站的属性,并指定您将运行的.Net版本。
Here's how to get there on the server...
这是如何在服务器上到达那里...
Start Menu>(Right+Mouse+Click)MyComputer>Manage>Services And Applications>IIS>Websites>(Right+Mouse+Click) [your website]>Properties>Asp.Net>Asp.Net Version
#3
In IIS you can configure a website to use either installed framework:
在IIS中,您可以配置网站以使用已安装的框架:
- In IIS, right-click on the website or application, select properties
- goto ASP.NET tab
- select the ASP.NET version to use
在IIS中,右键单击网站或应用程序,选择属性
转到ASP.NET选项卡
选择要使用的ASP.NET版本