Home Dashboard Directory Help
Search

Unhandled Error in Silverlight Application: 2105 when building as an x86 configuration by f4tb0y


Status: 

Active


4
0
Sign in
to vote
Type: Bug
ID: 530074
Opened: 2/2/2010 7:46:58 AM
Access Restriction: Public
0
Workaround(s)
view
4
User(s) can reproduce this bug

Description

I using Win7 x64 and noticed this issue when attempting to use crystal reports it can however be reproduced in an a simple hello world application.

Crystal runtime is currently an x86 only so the application need to be either running on an x86 machine or built to target an x86 machine.

if you are running x64 and target your project as x86 you get the error detailed below
Details
Sign in to post a comment.
Posted by Microsoft on 11/15/2010 at 3:37 PM
The Silverlight runtime only supports assemblies that are built AnyCpu (MSIL). So you must use the workaround described in comments section.

Bill Hiebert
Web Platform and Tools
Posted by Microsoft on 2/10/2010 at 3:24 PM
You can use mixed build configurations for your project.
Under the Build menu, choose "Configuration Manager"
Choose your Active solution configuration: Relesae
Choose your Active solution platform: Mixed Platforms
And then choose the platform for each project in your solution...
Silverlight: Any CPU
Crystal Reports: x86
Posted by f4tb0y on 2/8/2010 at 8:49 AM
when creating a crystal object it will throw an exception and tell you that crystal has not been installed properly and you should install the correct runtime however there is nothing other than the x86 available.

So to get crystal to work you need to be able to set the configuration manager to x86 so the app builds as x86

Running it as anything else e.g. 'Any CPU' or 'x64' means that crystal will not work


Posted by Microsoft on 2/5/2010 at 12:06 PM
The configuration manager should be set to "Any CPU"
Posted by Microsoft on 2/2/2010 at 7:21 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Sign in to post a workaround.