cancel
Showing results for 
Search instead for 
Did you mean: 

WPF.Viewer not being included with ClickOnce Application

Former Member
0 Kudos

Hi all,

I'm trying to deploy my application written in C# with Visual Studio and Crystal Reports. It works fine on the development machine, but when I try and publish it as a ClickOnce application I get the following error:

Problem signature:

Problem Event Name:CLR20r3

Problem Signature 01:FGMInventory.exe

Problem Signature 02:1.0.0.0

Problem Signature 03:582f28d7

Problem Signature 04:SAPBusinessObjects.WPF.Viewer

Problem Signature 05:13.0.17.2096

Problem Signature 06:57613507

Problem Signature 07:234

Problem Signature 08:0

Problem Signature 09:System.InvalidCastException

OS Version:6.1.7601.2.1.0.16.7

Locale ID:1033

Additional Information 1:0a9e

Additional Information 2:0a9e372d3b4ad19135b953a78882e789

Additional Information 3:0a9e

Additional Information 4:0a9e372d3b4ad19135b953a78882e789


I have the "SAP Crystal Reports Runtime Engine for .Net Framwork" marked as a prerequisite to download from the vendor's website, which it does on install (as far as I can tell successfully). But whenever the application is opened the error it thrown.

It looks like the wpf viewer dll isn't being included? But I have no idea how to manually include this with the clickonce application.

Attached is a stack trace I tried to pull with a debugger.

Any insight is much appreciated! Thank you in advance!

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Mark,

The important part of the error is

Object reference not set to an instance of an object.

That usually means the app cannot find the report it's trying to open. Either it doesn't exist or permissions are required to get to it.

Wrap your Open() statement in a try/catch and see if it logs anything else.

Make sure you set the Project for X86 and not AnyCPU, the MSIExec installer will detect a 64 bit OS and install the 64 bit runtime.

Check the Programs and Features to confirm the 32bit runtime was installed.

Don

Answers (0)