web-dev-qa-db-ja.com

CrystalReportsを使用してVisualStudio2013ソリューションを実行する

もともとVS2010で開発されたMVCアプリケーションがあります。 Crystal Reports(CR)が統合されており、すべてがスムーズに機能します。

ここで、VS2013のみを搭載するいくつかの新しいワークステーションをセットアップする必要があります。 VS2013でサイトを実行できますが、これはVS2010を使用していて、以前にCRランタイムファイルをインストールしたためです。新しいステーションにはVS2010がインストールされず、VS2010がマシン上にない限り、SAPインストーラーは実行されません。 SAPは、早くても2014年初頭まで修正を提供しません。

新しいワークステーションはレポートを変更できる必要がないため、完全なCRアプリケーションがインストールされているかどうかは関係ありません。アプリケーションの他の領域をデバッグできるように、ランタイムファイルを参照できるようにする必要があります。 。

現時点では、アプリケーションからCRを削除できず、最初にすべての新しいワークステーションにVS2010をインストールできません。

サイトのbinフォルダにdllを入れてみました。それらをC:/Windows/Microsoft.NET/ Framework/v4.0.30319/Temporary ASP.NET Files/root/dec0de27/fa4bed84/に入れてみましたが何も機能しないようです。

VS2013がdllを使用できるように、DLLはどこに配置しますか? 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の議論です http://scn.sap.com/message/14614675#14614675

5
davids

CrystalレポートはVS2013のサポートを更新しました 更新されたバージョンのドキュメント

3
Reva

おそらくもう関係ありませんが、VS2013のCRはサポートパック9で利用可能になりました。注:VS IDEと統合するには、exeを実行する必要があります。

ダウンロード元: http://scn.sap.com/docs/DOC-7824

2
Adriaan de Beer

さて、ようやく答えが見つかりました。

CR x86 Redist MSIパッケージをインストールすると(何らかの理由で32ビットである必要があります)、エラーをスローせずにVS2013を実行できます。レポートを変更することはできませんが、少なくともアプリケーションをビルドすることはできます。

ここから最新のものをダウンロードしてください: http://scn.sap.com/docs/DOC-7824

1
davids

馬の口から真っ直ぐに:

VS 2013のCRは、2014年の初めまで利用できません。詳細については、この thread およびその中で参照されている脅威を参照してください。

0
campagnolo_1