VS 2005 Web部署 [英] VS 2005 web Deployment

查看:50
本文介绍了VS 2005 Web部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Visual Studio 2005的水晶报告版本。在开发机器上一切正常,但是当我们将网站部署到Windows 2003 Web服务器上时,报告无法运行。我不断得到以下内容


您请求的报告需要更多信息。

< hr class = promptRuler>
























< td align = right>
SafeSellReportData.ReportData
服务器名称: < input class =""style ="width:200px; border-top-style:inset; border-right-style:inset; border-left-style:inset; border-bottom-style:inset"readonly value = SafeSellReportData.ReportData >
数据库名称:
用户名: < input class =""id = User-SafeSellReportDataReportData style ="width:200px; border-top-style:inset; border-right-style:inset; border-left-style:inset; border-bottom-style:inset">
密码:
使用集成安全性



服务器名称是我们自己的.net dll,它提供了我们所有报告所需的所有数据。我从开发环境中知道Crystal报告使用自己的DLL实例,我认为这个问题可能是由于Crystal报告无法找到dll,即使它已发布到服务器。如果是这种情况,是否有人知道我需要放置DLL的副本。


关于错误的任何其他建议都是apreciated

解决方案

我已经找到了问题。


在我的开发机器上,开发了数据提供dll并且最初位于c :开发计算机上的\dev\Apps\DataProvider \Bin \Release \Dataprovider.dll。报告引用此dll以获取其所有数据。当报告在开发机器上运行时一切都很好。


但是,当您将网站发布到dll位置更改时,例如c:\inetpub \ www.root \ mywebsite \ bin。因此,报告无法在网站上运行,因为他们无法找到dll。要纠正您需要复制数据的情况,请将dll提供给与开发机器完全相同的路径。


这意味着您的报告存储了不太好的引用的硬编码路径情况。


we are using Visual studio 2005's version of crystal reports.  Everything works fine on the development machine but when we deploy the website onto a windows 2003 web server the reports fail to run.  I am continually presented with the following

 The report you requested requires further information.


  SafeSellReportData.ReportData
Server name: 
Database name: 
User name: 
Password: 
Use Integrated Security 

 

The server name is our own .net dll which provides all the data necessary for all of our reports.  I know from the development environment that Crystal reports uses its own instance of the DLL and I think that this problem may be due to Crystal reports not being able to find the dll even though it is published to the server.   If this is the case does anyone know where I need to place a copy of our DLL.

Any other suggestions on the error would be apreciated

解决方案

I have tracked down the problem.

On my development machine the data providing dll was developed and initially located at c:\dev\Apps\DataProvider\Bin\Release\Dataprovider.dll on the development machine.  The reports reference this dll to obtain all of their data.  When the reports are run on the development machine everything is fine. 

However, when you publish the website to dll location changes to say for example c:\inetpub\wwwroot\mywebsite\bin.  Because of this the reports do not work on the website because they cant find the dll.  To correct the situation you neeed to copy the data provide dll to exactly the same path as your development machine.

What this means is that your reports store hardcode paths for references which is not a good situation.


这篇关于VS 2005 Web部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆