1

我正在尝试使用 IIS 7 将一个小型 ASP 站点部署到 Windows Server 2008 R2 机器上。

在开发机器上测试该站点时,使用 Visual Studio 2013 Express Web,它可以完美运行。JQuery/Javascript 的东西很好用,ASP 控件(所有图表。2 个饼图和一个条形图,包含一个更新面板)都显示得很好:它是一个网站天堂。但是一旦我使用 IIS 7 将它部署到 Web 服务器上,ASP 控件就会消失。Javascript/JQuery 都运行得很好,但是 ASP 图表却无处可寻。

注意:在服务器上托管的版本上,我右键单击 -> 查看源代码(在 IE 中)。我在源代码中找不到单个 ASP 控件。纳达。* Zerkey 在下面对此进行了解释。谢谢!*

这些是我到目前为止采取的步骤:

在网络服务器上:

* Installed IIS with ALL addons available 
* Installed .NET 4.0 and made sure the application pool was set to .NET v4.0.
* Navigated to the .NET 4.0 folder and ran "aspnet_regiis -i"
* The site was deployed via Publish -> Deployment Package in Visual Studio. It was 
  set up using "Import Application" on the server. No special options were selected: 
  only default options were used across the board.
* Restarted the whole machine

在网站本身:

* Made sure EVERY asp control had <runat="server"> on it. Every...single...one
* Made sure that System.Web.DataVisualization, in references, was set to 
  Local Copy: True. 

我完全失去了。:(谁能想到我没有在这里列出的东西我可以尝试?任何建议都会很棒:)

谢谢!

编辑:更正- ASP 按钮,除了图表之外,网站上唯一的其他 ASP 控件显示得很好。这是未显示的图表。相应地更新了问题标题。

4

0 回答 0