Asp.net mvc 3 使用Crystal Reports运行Visual Studio 2013解决方案

Asp.net mvc 3 使用Crystal Reports运行Visual Studio 2013解决方案,asp.net-mvc-3,visual-studio,crystal-reports,Asp.net Mvc 3,Visual Studio,Crystal Reports,我有一个最初在VS2010中开发的MVC应用程序。我们已经将Crystal Reports(CR)集成到其中,并且所有工作都很顺利 现在,我需要设置一些只有VS2013的新工作站。我可以在VS2013中运行该站点,但这仅仅是因为我有VS2010并且以前安装了CR运行时文件。新工作站将不会安装VS2010,除非机器上安装了VS2010,否则SAP安装程序将不会运行。SAP最早要到2014年初才会提供修复 新工作站不需要能够修改报告,因此我不关心是否安装了完整的CR应用程序,我只需要它能够引用运行时

我有一个最初在VS2010中开发的MVC应用程序。我们已经将Crystal Reports(CR)集成到其中,并且所有工作都很顺利

现在,我需要设置一些只有VS2013的新工作站。我可以在VS2013中运行该站点,但这仅仅是因为我有VS2010并且以前安装了CR运行时文件。新工作站将不会安装VS2010,除非机器上安装了VS2010,否则SAP安装程序将不会运行。SAP最早要到2014年初才会提供修复

新工作站不需要能够修改报告,因此我不关心是否安装了完整的CR应用程序,我只需要它能够引用运行时文件,以便它们能够调试应用程序的其他区域

目前我无法从应用程序中删除CR,也无法先在所有新工作站上安装VS2010

我已尝试将DLL放在站点的bin文件夹中。我试过把它们放在
C:/Windows/Microsoft.NET中/
Framework/v4.0.30319/Temporary ASP.NET Files/root/dec0de27/fa4bed84/
似乎什么都不起作用

我应该将DLL放在哪里,以便VS2013可以使用它们?我知道一定有办法做到这一点,因为即使SAP没有发布2013版,我的工作站也可以在VS2013中运行该站点

以下是他们尝试运行应用程序时出现的错误:

Server Error in '/' Application.

Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc' 
or one of its dependencies. An attempt was made to load a program with an 
incorrect format.

Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information 
about the error and where it originated in the code. 

Exception Details: System.BadImageFormatException: Could not load file or 
assembly 'CrystalDecisions.ReportAppServer.ClientDoc' or one of its 
dependencies. An attempt was  made to load a program with an incorrect format.

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can 
be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why 
the assembly 'CrystalDecisions.ReportAppServer.ClientDoc' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.ReportAppServer.ClientDoc
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: CrystalDecisions.ReportAppServer.ClientDoc | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is 
provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the 
assembly,
WRN: that consists of the simple name, version, culture, and public key 
token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more 
information and common solutions to this issue.
LOG: Appbase = file:///C:/Users/Office/Documents/GIT/Site/site/
LOG: Initial PrivatePath = C:\Users\Office\Documents\GIT\Site\site\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: 
C:\Users\Office\Documents\GIT\Site\site\web.config
LOG: Using host configuration file: 
C:\Users\Office\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from 
C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, 
partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/
Framework/v4.0.30319/Temporary ASP.NET Files/root/dec0de27/fa4bed84/
CrystalDecisions.ReportAppServer.ClientDoc.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/
Framework/v4.0.30319/Temporary ASP.NET Files/root/dec0de27/fa4bed84/
CrystalDecisions.ReportAppServer.ClientDoc/
CrystalDecisions.ReportAppServer.ClientDoc.DLL.
LOG: Attempting download of new URL file:///C:/Users/Office/Documents/GIT/
Site/site/bin/CrystalDecisions.ReportAppServer.ClientDoc.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing 
terminated.

这是直接从马口中说出的SAP讨论


VS 2013的CR要到2014年初才能提供。有关更多信息,请参阅本文档及其引用的威胁。

我终于找到了答案

如果您安装CR x86 Redist MSI包(出于某种原因,它必须是32位),它将允许您运行VS2013而不会引发错误。您将无法修改报告,但至少可以构建应用程序

请在此处下载最新版本:

可能不再与您相关,但VS2013的CR现在已在support pack 9中提供。注意:必须运行exe才能与VS IDE集成


下载地点:

Crystal report更新了对VS 2013的支持

我知道它不可用,所以我说SAP没有创建它。我不在乎我的同事是否不能编辑CR文件,我只是希望他们能够运行应用程序。我想修复丢失的引用错误(我在VS2013中没有得到它),并且不知道将文件放在哪里,这样它就可以工作。但是如果没有CR的正确运行时文件,VS将抛出错误,因为它无法运行应用程序中的报告部分。因此,您可以将CR部分从应用程序中删除,然后在VS2013中一切都会正常运行。如果你的应用程序中有任何CR代码(查看器等),则需要使用CR for VS。我想我需要研究如何表达我的问题。你一直在说我已经说过的话。如果首先为VS2010安装了运行时文件,则VS2013能够运行该应用程序。但是,除非VS2010位于工作站上,否则安装程序不会安装。我有安装程序提供的DLL。我应该把文件放在哪里,这样运行VS2013的同事就可以像我一样在VS2013中运行网站了?啊!现在我们有进展了!我不确定您的规格是什么,但在C:\Program Files\MicrosoftSDK\Windows\v6.0A\Bootstrapper\Packages\中可以找到包含运行时的Crystal目录。另一方面,您的同事可以始终在其计算机上安装免费的VS2010 Express版本。其中一个有Express版本,但SAP安装程序不会在Express版本上运行。此外,不工作的工作站在该文件夹中的内容与我的计算机中的内容完全相同。我需要运行哪个exe将其与vs集成