I am deploying a desktop application to my clients that uses the Crystal Reports API to display and print forms. I am building my installer using InstallShield 2012. I have also included the .NET 4.0 Framework along with all of the Crystal assemblies. I have 2 (kinda related) concerns:
Issue:While working or opening an AutoCAD Product, the following error message appears:
Microsoft .NET Framework Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue. <unique error text> Application does not support just-in-time (JIT) debugging. See the end of this message for details. The unique part of the above error may contain any the following strings or other ones:
Upon clicking continue, the error repeats, sometimes indefinitely. Sometimes AutoCAD will fully crash or may continue to operate. Additionally, the error can occur while accessing a command that brings up a dialog window or that changes the user interface, such as producing a palette (External References, Layer, Properties, etc.) or contextual ribbon.
Causes:Just-In-Time (JIT) errors are typically related to issues with Microsoft .NET Framework, which is installed as prerequisite during the installation of AutoCAD on Windows.Solution:
Verify the following in order, testing the procedure after each:
Note: For Civil 3D 2019, follow this step-by-step guide: Resolving installation issues with a clean install of AutoCAD Civil 3D 2019
See Also:Versions:2017; 2016; 2019; 2020; 2018;
1) Whenever I tried to run the application on the client machine, I get the following error:
I have no idea what I am forgetting here. The
CrystalDecisions.CrystalReports.Engine dll is being registered in the GAC correctly, as are about 10 other Crystal assemblies.
2) I have asked this question on the SAP forums, and I was told I needed to include the .NET 2.0 Framework along with the .NET 4.0 Framework. I tried including the .NET 2.0 redistributable in my installer package, but the installer does not install it. Does the installer see that I have 4.0 installed, so it skips the 2.0 installation?
gwin003gwin003
5,51155 gold badges2929 silver badges5454 bronze badges
16 Answers
When a static constructor throws an exception, it is wrapped inside a
TypeInitializationException . You need to check the exception object's InnerException property to see the actual exception.
In a staging / production environment (where you don't have Visual Studio installed), you'll need to either:
M.A. HaninM.A. Hanin
Here is what worked for me:
If you are installing on a 64-bit machine, make sure the application properties under the Build tab have 'Any CPU' as the platform target, and unselect the check box for 'Prefer 32-bit' if you have the option. Crystal is very touchy about 32/64 bit assemblies, and makes some pretty counterintuitive assumptions which are very difficult to troubleshoot.
Jeremy HolovacsJeremy Holovacs
12.5k2323 gold badges8383 silver badges188188 bronze badges
I had similar message and after several searches online and doing all suggestions, nothing helped. Finally I found the solution. In my IIS server, under the application pool advance option, there is an option for 'Enable 32-Bit Applications' - that was changed from false to true and after restarting IIS server, My program started generating pdf files.
shahk26shahk26
Check the properties of your projectm the platform target. Install the corresponding version of Crystal Reports:
Tharif
11k88 gold badges4545 silver badges6262 bronze badges
tyrodevelopertyrodeveloper
The inner exception of bug says Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
Changing the AppPool setting False for Enable 32-bit Application solved the issue
user3192640user3192640
For one full day i searched online and i found a solution on my own.The same scenario, the application works fine in developer machine but when deployed it is throwing the exception'crystaldecisions.crystalreports.engine.reportdocument threw an exception'Details: sys.io.filenotfoundexcep crystaldecisions.reportappserver.commlayer version 13.0.2000 is missing
My IDE: MS VS 2010 Ultimate, CR V13.0.10
Solution:
While installing this Merge module will add the necessary dll in the following dirC:Program Files (x86)SAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonSAP BusinessObjects Enterprise XI 4.0win32_x86dotnet
dll file version will not cause any issues. Minecraft jurassic park free download. Skyrim special edition flight mod xbox one.
In your developer machine you confirm it same.
I need reputation points, if this answer is useful kindly mark it useful(+1)
Pranesh JanarthananPranesh Janarthanan
As 'M.A. Hanin' said above, it can caused by an
InnerException like this:
and I deleted the folder: Hossein POURAKBARHossein POURAKBAR
C:UsersPourakbar.hAppDataLocalAccountingAccounting.vshost.exe_Url_a4h1gnabohiu4wgiejk0d21rc2kbwr4g from my computer and that worked for me!
64211 gold badge88 silver badges3030 bronze badges
I had a similar error recently with the log4net error:
Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
This was on a 64bit machine but I'd only installed the
32bit runtime.
Making sure the build was targeting only Bugs
x86 worked for me.
4,18099 gold badges2727 silver badges3737 bronze badges
ScottCScottC
Coolpad cool 1 c103 india stock rom. I was not getting the error on 32-bit machines but was on 64-bit so I changed the target platform from x86 to Any CPU and it resolved the issue.
Rob KingRob King
The type initializer for CrystalDecisions.CrystalReports.Engine.ReportDocument threw an exception.
I changed the target platform from slavoo
x86 to Any CPU and it resolved the issue.
4,0961212 gold badges2929 silver badges3636 bronze badges
FaheemFaheem
I got a problem The type Initializer. my config file resolved it.
i forgot to have a connection element like this
'connectionStrings' '/connectionStrings'maybe it depends on what you did in a code. my error is i cant open a class because of this connection element.
Antonio CabilosAntonio Cabilos
5,45166 gold badges3737 silver badges6060 bronze badges
user1970708user1970708
This is because of lack of Capability .. If you see the Inner Exception you will see this message
Unhandled Exception Has Occurred Autocad
So to get rid of this exception. turn on the capability for Speech Recognition from the Manifest file.
I had the same problem, and It solved my Problem. :)
Zia Ur RahmanZia Ur Rahman
1,27611 gold badge1414 silver badges2626 bronze badges
What did the trick for me was to change the target machine from “ANY CPU” to “x64” or maybe in your case “x86” depending in your target machine’s architecture. I would try this first before moving into a more complex solution which indicates a more complex problem.
Alexander ZarateAlexander Zarate
if you are using visual studio , enable the build property 'Prefer 32-bit'.see image below.
aMJay
1,72844 gold badges1414 silver badges2323 bronze badges
Ravinda lakshanRavinda lakshan
I faced the same issue. The target platform was Any CPU in my case. But the checkbox 'Prefer-32Bit' was checked. Unchecking the same resolved the issue.
Nitika Ish GoelNitika Ish Goel
Unhandled Exception Has Occurred Windows 10protected by Community♦Jun 6 '18 at 9:26
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Unhandled Exception Has Occurred Server 2012Not the answer you're looking for? Browse other questions tagged c#.netdeploymentinstallshieldcrystal-reports-2010 or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |