C# Windows Azure上的Crystal报告未显示

C# Windows Azure上的Crystal报告未显示,c#,asp.net,visual-studio-2010,crystal-reports,azure,C#,Asp.net,Visual Studio 2010,Crystal Reports,Azure,我在VS2010 ASP.net C#中编写了一个web应用程序,用于显示Crystal报表。 我将此应用程序移动到Azure Emulator。它在当地运作良好。然而,在用Azure部署它之后,crystal report不会显示,甚至不会引发异常 我已经安装了 已安装的CRforVS_13_0.exe 然后依次在我的机器上安装CRRuntime_64位_13_0 any1的任何输入都会有帮助。如果您需要更多信息,请告知 谢谢, Tanuja到目前为止在Azure上不受支持。到目前为止在Azu

我在VS2010 ASP.net C#中编写了一个web应用程序,用于显示Crystal报表。 我将此应用程序移动到Azure Emulator。它在当地运作良好。然而,在用Azure部署它之后,crystal report不会显示,甚至不会引发异常

我已经安装了

  • 已安装的CRforVS_13_0.exe
  • 然后依次在我的机器上安装CRRuntime_64位_13_0
  • any1的任何输入都会有帮助。如果您需要更多信息,请告知

    谢谢,
    Tanuja到目前为止在Azure上不受支持。

    到目前为止在Azure上不受支持。

    首先在解决方案中创建一个名为“资产”的文件夹 在此文件夹中复制CRRuntime_64位_13_0.msi。 然后将以下代码放入ServiceDefinition.csdef中

    
    

    通过这种方式,您可以在加载应用程序之前在云服务器上安装crystal运行时


    希望这对您有用。

    首先在解决方案中创建一个名为“资产”的文件夹 在此文件夹中复制CRRuntime_64位_13_0.msi。 然后将以下代码放入ServiceDefinition.csdef中

    
    

    通过这种方式,您可以在加载应用程序之前在云服务器上安装crystal运行时


    希望这对你有用。

    你肯定能做到。我自己做过,甚至一步一步地写过


    它围绕着创建一个启动任务来在新的Azure web角色实例上运行crystal reports安装文件。我已经列出了很多障碍,请尝试一下。它确实有效

    你肯定能做到。我自己做过,甚至一步一步地写过


    它围绕着创建一个启动任务来在新的Azure web角色实例上运行crystal reports安装文件。我已经列出了很多障碍,请尝试一下。它确实有效

    我刚刚遇到了同样的问题,在Azure上运行Crystal Reports 2010(13.0.4)。我听从了政府和其他一些消息来源的建议。我的方法只是略有不同,因为我使用Azure blob存储来存储crystal运行时,这使得项目发布比将其包含在项目中时快得多

    下面是我如何让crystal reports工作的:

    1)在中设置新的blob存储服务

    2)将Crystal安装程序上载到此blob存储

    @ECHO off
    @REM Setting up Azure Stroage Credentials
    set azurestoragename=<name>
    set azurestoragekey=<key>
    set storagecontainername=crystalinstaller
    
    @REM Setting up Azure Drive 
    @REM (sometimes E:, sometimes F: maybe one day G:?)
    set drive=%cd:~0,3%
    
    @REM Download Crystal Runtime 13.0.4
    @REM from blob storage account
    set filename=CRRuntime_64bit_13_0_4.msi
    AzureBlobDownloader.exe "%azurestoragename%" "%azurestoragekey%" "%storagecontainername%" "%filename%"
    
    @REM Install Crystal Runtime 13.0.4
    msiexec.exe /I CRRuntime_64bit_13_0_4.msi /qn
    
    @REM Copy Crystal Reports Viewer Files
    robocopy D:\inetpub\wwwroot %drive%sitesroot\0 /S
    robocopy D:\inetpub\wwwroot %drive%approot /S
    
    使用免费工具上传到一个名为crystalinstaller的容器中(记得在上传之前解压缩)

    3)在Visual Studio中,在Azure project ServiceDefinition中创建启动脚本定义。csdef:

    <ServiceDefinition...>
      <WebRole...>
        <Startup>
          <Task commandLine="AzureStartUp.cmd" executionContext="elevated" taskType="background" />
        </Startup>
      </WebRole>
    </ServiceDefinition>
    
    
    
    4)将以下启动脚本存储在web项目的根目录中,“build action”none和“copy to output”设置为always。这里的经验教训:Approt/siteroots并不总是在E:drive上

    @ECHO off
    @REM Setting up Azure Stroage Credentials
    set azurestoragename=<name>
    set azurestoragekey=<key>
    set storagecontainername=crystalinstaller
    
    @REM Setting up Azure Drive 
    @REM (sometimes E:, sometimes F: maybe one day G:?)
    set drive=%cd:~0,3%
    
    @REM Download Crystal Runtime 13.0.4
    @REM from blob storage account
    set filename=CRRuntime_64bit_13_0_4.msi
    AzureBlobDownloader.exe "%azurestoragename%" "%azurestoragekey%" "%storagecontainername%" "%filename%"
    
    @REM Install Crystal Runtime 13.0.4
    msiexec.exe /I CRRuntime_64bit_13_0_4.msi /qn
    
    @REM Copy Crystal Reports Viewer Files
    robocopy D:\inetpub\wwwroot %drive%sitesroot\0 /S
    robocopy D:\inetpub\wwwroot %drive%approot /S
    
    @ECHO关闭
    @REM正在设置Azure存储凭据
    设置azurestoragename=
    设置azurestoragekey=
    设置storagecontainername=crystalinstaller
    @REM正在设置Azure驱动器
    @REM(有时E:,有时F:也许有一天G:?)
    设置驱动器=%cd:~0,3%
    @REM下载Crystal Runtime 13.0.4
    @来自blob存储帐户的REM
    设置文件名=CRRuntime\u 64位\u 13\u 0\u 4.msi
    AzureBlobDownloader.exe“%azurestoragename%”“%azurestoragekey%”“%storagecontainername%”“%filename%”
    @REM安装Crystal运行时13.0.4
    msiexec.exe/I CRRuntime_64位_13_0_4.msi/qn
    @REM复制水晶报表查看器文件
    robocopy D:\inetpub\wwwroot%drive%sitesroot\0/S
    机器人副本D:\inetpub\wwwroot%drive%approot/S
    
    5)下载一个命令行工具,该工具可以从blob存储下载到您的azure服务虚拟机上 我使用了来自的packagedownloader.exe,但可能还有其他的,或者您可以轻松地使用自己的。我将其重命名为AzureBlobDownloader.exe,并将其与包含的Microsoft.WindowsAzure.StorageClient.dll一起复制到我的web项目的根目录中,同时将“build action”none和“copy to output”设置为always


    如果您仍然有问题,请尝试将桌面远程到您的实例中,并使用类似于监视发生了什么的工具

    我刚刚遇到了同样的问题,在Azure上运行Crystal Reports 2010(13.0.4)。我听从了政府和其他一些消息来源的建议。我的方法只是略有不同,因为我使用Azure blob存储来存储crystal运行时,这使得项目发布比将其包含在项目中时快得多

    下面是我如何让crystal reports工作的:

    1)在中设置新的blob存储服务

    2)将Crystal安装程序上载到此blob存储

    @ECHO off
    @REM Setting up Azure Stroage Credentials
    set azurestoragename=<name>
    set azurestoragekey=<key>
    set storagecontainername=crystalinstaller
    
    @REM Setting up Azure Drive 
    @REM (sometimes E:, sometimes F: maybe one day G:?)
    set drive=%cd:~0,3%
    
    @REM Download Crystal Runtime 13.0.4
    @REM from blob storage account
    set filename=CRRuntime_64bit_13_0_4.msi
    AzureBlobDownloader.exe "%azurestoragename%" "%azurestoragekey%" "%storagecontainername%" "%filename%"
    
    @REM Install Crystal Runtime 13.0.4
    msiexec.exe /I CRRuntime_64bit_13_0_4.msi /qn
    
    @REM Copy Crystal Reports Viewer Files
    robocopy D:\inetpub\wwwroot %drive%sitesroot\0 /S
    robocopy D:\inetpub\wwwroot %drive%approot /S
    
    使用免费工具上传到一个名为crystalinstaller的容器中(记得在上传之前解压缩)

    3)在Visual Studio中,在Azure project ServiceDefinition中创建启动脚本定义。csdef:

    <ServiceDefinition...>
      <WebRole...>
        <Startup>
          <Task commandLine="AzureStartUp.cmd" executionContext="elevated" taskType="background" />
        </Startup>
      </WebRole>
    </ServiceDefinition>
    
    
    
    4)将以下启动脚本存储在web项目的根目录中,“build action”none和“copy to output”设置为always。这里的经验教训:Approt/siteroots并不总是在E:drive上

    @ECHO off
    @REM Setting up Azure Stroage Credentials
    set azurestoragename=<name>
    set azurestoragekey=<key>
    set storagecontainername=crystalinstaller
    
    @REM Setting up Azure Drive 
    @REM (sometimes E:, sometimes F: maybe one day G:?)
    set drive=%cd:~0,3%
    
    @REM Download Crystal Runtime 13.0.4
    @REM from blob storage account
    set filename=CRRuntime_64bit_13_0_4.msi
    AzureBlobDownloader.exe "%azurestoragename%" "%azurestoragekey%" "%storagecontainername%" "%filename%"
    
    @REM Install Crystal Runtime 13.0.4
    msiexec.exe /I CRRuntime_64bit_13_0_4.msi /qn
    
    @REM Copy Crystal Reports Viewer Files
    robocopy D:\inetpub\wwwroot %drive%sitesroot\0 /S
    robocopy D:\inetpub\wwwroot %drive%approot /S
    
    @ECHO关闭
    @REM正在设置Azure存储凭据
    设置azurestoragename=
    设置azurestoragekey=
    设置storagecontainername=crystalinstaller
    @REM正在设置Azure驱动器
    @REM(有时E:,有时F:也许有一天G:?)
    设置驱动器=%cd:~0,3%
    @REM下载Crystal Runtime 13.0.4
    @来自blob存储帐户的REM
    设置文件名=CRRuntime\u 64位\u 13\u 0\u 4.msi
    AzureBlobDownloader.exe“%azurestoragename%”“%azurestoragekey%”“%storagecontainername%”“%filename%”
    @REM安装Crystal运行时13.0.4
    msiexec.exe/I CRRuntime_64位_13_0_4.msi/qn
    @REM复制水晶报表查看器文件
    robocopy D:\inetpub\wwwroot%drive%sitesroot\0/S
    机器人副本D:\inetpub\wwwroot%drive%approot/S