0

我正在尝试在我位于 arvixe.com 的托管计划中安装BlogEngine.NET

当我尝试导航到博客时出现此错误:

无法读取配置部分“system.web.extensions”,因为它缺少部分声明

53:     </system.serviceModel>
54:     <system.web.extensions>
55:         <scripting>

这是我的web.config文件。

互联网上有一些关于解决此问题的文章,但问题是:

1- 我在托管计划中使用博客

2- 我无法使用 Arvixe 访问 IIS 配置。

你认为我可以通过更改 web.config 文件来解决这个问题吗?

4

3 回答 3

5

You need to tell your host to change the framework version your AppPool is tied to. Its probably tied to 2.0 which doesn't recognize system.web.extensions. It needs to be changed to 4.0

More info here and here

于 2011-09-23T14:11:21.747 回答
1

有几件事要尝试:
如果操作系统是 64 位,请尝试在 Any 中重新编译您的应用程序,使其作为 64 位应用程序运行。或者更改应用程序池以启用 32 位应用程序。

于 2012-01-07T13:00:44.443 回答
0

A couple of things to try:
If the OS is 64bit, try to recompile your application in Any to have it run as a 64bit application. Or change the Application Pool to enable 32bit applications.

If that doesn't help, perhaps the web.config section is locked down, and you will then have to ask your hosting company to allow the section.

于 2011-09-23T14:12:30.837 回答