Load report failed due to Failed to logon to the Crystal Report Object Repository - crystal-reports-xi

We are using SAP Integration KIT and Crystal Reports 2008. The Crystal Reports are being displayed on Winform (VB.net Windows application) (VS 2005 with net fx 2.0).
The development environment is 32bit, everything works fine. Reports are working with local BI server. The issue is in Production Server. Production server is of 64 bit.
Windows exe is complied to installed on any configuration.
"SAP Integration KIT and Crystal Reports 2008" are installed of 32 bit versions.
On opening of crystal reports this was giving following exception:
Error: "An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions
are insufficient, or the Crystal Reports runtime is not installed
correctly. Please install the appropriate Crystal Reports
redistributable (CRRedist*.msi) containing the correct version of the
Crystal Reports runtime (x86, x64, or Itanium) required.
For this we changed the 32bit flag our exe to 32bit+ using corflag.exe tool. The above error was removed and a following new error occurs. We have checked permission of temp folder/report folder etc. and everything is fine. We are stuck here. A little help/guidance can save our weekend :).
Type : CrystalDecisions.Shared.CrystalReportsException,
CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304 Message : Load report failed. Source :
CrystalDecisions.CrystalReports.Engine Help link : Data :
System.Collections.ListDictionaryInternal TargetSite : Void
EnsureDocumentIsOpened() Stack Trace : at
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String
filename, OpenReportMethod openMethod, Int16 parentJob) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String
filename) at BizzCare.frmReportViewer.frmReportViewer_Load(Object
sender, EventArgs e)
Additional Info:
MachineName : xxx
TimeStamp : 6/14/2012 7:50:15 AM
FullName :
Microsoft.PracticesEnterpriseLibrary.ExceptionHandling,
Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
AppDomainName : abc.exe
ThreadIdentity : admin
WindowsIdentity : comp\user
Inner Exception
---------------
Type : System.Runtime.InteropServices.COMException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Error in File Last12MonthsSales{9D0A761A-8021-42E6-8ECF-CE2C0167F5B0}.rpt: Failed to
logon to the Crystal Report Object Repository.
Source : Analysis Server
Help link :
ErrorCode : -2147217397
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Open(System.Object ByRef, Int32)
Stack Trace : at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

This issue was due to difference in runtime versions used in development environment and installed on production environment.
The confusion was because that the “Crystal Report 2008 SP1” installed by default with “SAP Integration Kit” has to be removed/uninstalled manually” (as this provides older versions’ DLLs) and then proper runtime has to be installed after manually downloading from Microsoft site.

We have resolved this issue.
There were runtime version difference, the reports were designed by using 12.1.xxx version of crystal reports (As SAP provides latest one for dev env) and Visual Studio 2008 provides 10.x.xx
version to be deployed as a part of setup. We have downloaded the 12.1.xxx version cr120_redist_install.zip and installed this on deployment server and works..

Related

VSS to TFS ERROR: Retrieving the COM class factory error: 8007007e

I am trying to run an incremental migration using the VSS Upgrade tool. I'm migrating through the command prompt.
I have in the past successfully migrated all our projects and history to TFS, I have also checked in incremental migrations. However, now that I'm doing it for a 3rd time I get an error.
As far as I know nothing has changed. Any general tips in how I could go about debugging this would be helpful.
The error I get when running the vssupgrade migrate settings.xml command.
ERROR: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Looking into the log file created by the analyze tool the error looks like this:
[VSS, Error, 3, 2019/03/20 11:23:56.676] Exception: System.IO.FileNotFoundException
Message: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Stack Trace: at Microsoft.TeamFoundation.Admin.VssMigration.VssConverter.OpenVss(String sourceRepository, String passwd)
at Microsoft.TeamFoundation.Admin.VssMigration.VssConverter.Initialize(ExecutionMode executionMode, MigrationSession migrationSession)
at Microsoft.TeamFoundation.Admin.VssMigration.Api.MigrationSession.PrepareForProcessing(ExecutionMode executionMode, Boolean requireUserMapFile)
at Microsoft.TeamFoundation.Admin.VssMigration.Api.MigrationSession.Migrate()
at Microsoft.TeamFoundation.Admin.VssMigration.CommandLine.VSSUpgradeCommand.MainThread()
Help Link:
BaseExceptionMessage: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
COM interop fails when the convertor runs under x64, the trick that may work is to start the conversion from a forced 32-bit command prompt, which you can start through:
c:\windows\SysWOW64\cmd.exe
That should give you a forced 32-bit context:
Another alternative is to change the corflags to force the convertor to x86 at all time:
corflags /32bit+ vssupgrade.exe
My solution was to repair Visual Source Safe Upgrade Tool for Team Foundation Server. I re-downloaded the application link from Microsoft's website
And then run and Repair the application. That fixed my issues.

Visual Studio Community 2017 fails to start. Exception: Could not load file or assembly 'Microsoft.VisualStudio.TelemetryForPPT

While opening a solution in Visual Studio 2017, I get a popup saying:
An exception has been encountered. This may be caused by an extension.
You can get more information by examining the file '[...]\AppData\Roaming\Microsoft\VisualStudio\15.0_ce1eea42\ActivityLog.xml'.
The specified file reports several errors related to assembly Microsoft.VisualStudio.TelemetryForPPT:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TelemetryForPPT, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.TelemetryForPPT, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at GoToDef.GoToDefMouseHandlerProvider.GetAssociatedProcessor(IWpfTextView view) at Microsoft.VisualStudio.Text.Editor.Implementation.InputController.<UpdateMouseHandlers>b__7_0(IMouseProcessorProvider p) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Any suggestion to solve the problem?
PPT stands for Productivity Power Tools. I had the same problem as you have after installing PPT 2017 two days ago. Yesterday this problem went away after I uninstalled PPT. Last night Microsoft created a new version (15.0.2) of PPT 2017, so apparently something was wrong.
I tried to reinstall this new version just now, but in my case some issue is apparently still there, so I disabled all 15 components of PPT again and the problem disappeared again.
Some entries from the errorlog:
LegacySitePackage failed for package [OptionsPagePackage]Source: &apos;PPTOptionsPage&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.TelemetryForPPT, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. Het systeem kan het opgegeven bestand niet vinden.
System.IO.FileNotFoundException: Could not load file or assembly &apos;
[Update-2017-04-12] After installing version 15.0.4 of PPT 2017 for four of the fifteen components of PPT 2017 this morning, in my case this problem appears to be solved.
As suggested by qxg, I launched a repair through Visual Studio Installer, and it's OK now. All 3rd party extensions have been uninstalled: I suspect that the issue was caused by one of them.

Visual Studio 2013 Preview, Google Test Runner Could not load file or assembly F#

While trying to add Unit Tests to my current project I ran into the Google Test Runner plugin for Visual Studio 2012 and 2013. When I however try to run tests using this I run into the following error:
------ Run test started ------
Found 2 tests, resolving symbols
Loading symbols from C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\tests.exe
Retrieving the COM class factory for component with CLSID {BCE36434-2C24-499E-BF49-8BD99B0EEB68} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Running: C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\tests.exe --gtest_output=xml:C:\Users\MYUSER\AppData\Local\Temp\tmpB2DE.tmp
Opened results from C:\Users\MYUSER\AppData\Local\Temp\tmpB2DE.tmp
Could not load file or assembly 'FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at FSharp.Data.RuntimeImplementation.XmlOperations.GetChildrenArray(XmlElement value, String nameWithNS)
at FSharp.Data.RuntimeImplementation.XmlOperations.ConvertArray[R](XmlElement xml, String nameWithNS, Func`2 f)
at GoogleTestRunner.ResultParser.getResults(IMessageLogger logger, String outputPath, IEnumerable`1 testCases)
at GoogleTestRunner.GoogleTestExecutor.runOnce(IFrameworkHandle framework, Boolean debug, FSharpList`1 cases, String executable, Boolean runAll)
at GoogleTestRunner.GoogleTestExecutor.runTests(IEnumerable`1 tests, IRunContext runContext, IFrameworkHandle framework, Boolean runAll)
No test is available in C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\tests.exe. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
========== Run test finished: 0 run (0:00:04.7380291) ==========
I'm not known with F# and don't see what problem is causing this or how to solve it, the page says it's compatible with Visual Studio 2013. The tests are correctly discovered and viewable in the text explorer but don't run.
Edit:
Sometimes after a build I get this:
------ Discover test started ------
GoogleTest: Does C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\MY PROJECT.exe match [Tt]est[s]{0,1}.exe: false
GoogleTest: Does C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\Tests.exe match [Tt]est[s]{0,1}.exe: true
Found 2 tests, resolving symbols
Loading symbols from C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\Tests.exe
Retrieving the COM class factory for component with CLSID {BCE36434-2C24-499E-BF49-8BD99B0EEB68} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
GoogleTest: Does C:\Users\MYUSER\Documents\Visual Studio 2013\Projects\MY PROJECT\Debug\WorldServer.exe match [Tt]est[s]{0,1}.exe: false
========== Discover test finished: 2 found (0:00:00.2372256) ==========
Try installing this NuGet package:
http://www.nuget.org/packages/FSharp.Core.3/
I think you just need the F# runtime.
EDIT: Per Layl Conway, this is what was actually needed to allow the Google Test Runner to run:
F# Tools for Visual Studio Express 2012 for Web
EDIT2: For sake of completeness there's also this blog post (from the answer to another SO question):
http://www.heartysoft.com/build-fsharp-3-on-build-server-without-vs
For the impatient:
Clicking the Direct Download Link (
http://go.microsoft.com/fwlink/?LinkId=261286 if you’re too busy)
downloads VWD_FSharp.msi which is only 7.55MB, doesn’t include Azure
tools, VS and all the other stuff. Builds work, the universe is right
again.
FSharp.Core, Version=4.3.0.0
That's the version included with VS2012 and F# 3.0. VS2013 with F# 3.1 has FSharp.Core V4.3.1.0.
Ensure your project settings for the F# project(s) are set to use the right—and consistent—version of the F# runtime.

azure developement fabric dll hell

Hello I am trying to package and start up azure developement fabric on a windows 2008 server, I am so close yet still far. The steps I take are
1) run cspack.exe command /copyOnly to generate the .csx folder
2) run csrun.exe commmand /LaunchBrowser to start up the developement fabric and startup the browser
the error is as follows
System.BadImageFormatException: Could
not load file or assembly
'Interop.SSCE' or one of its
dependencies. An attempt was made to
load a program with an incorrect
format.
== Pre-bind state information === LOG: User = IP-0AE2B2DF\Administrator LOG:
DisplayName = Interop.SSCE (Partial)
LOG: Appbase =
file:///C:/Users/Administrator/Documents/Visual
Studio
2010/Projects/MyAzureProject/src/AzureCloudService/ServiceDefinition.csx/roles/MyAzureProject.Web/approot/
LOG: Initial PrivatePath =
C:\Users\Administrator\Documents\Visual
Studio
2010\Projects\MyAzureProject\src\AzureCloudService\ServiceDefinition.csx\roles\MyAzureProject.Web\approot\bin
Calling assembly : (Unknown).
=== LOG: This bind starts in default load context. LOG: Using application
configuration file:
C:\Users\Administrator\Documents\Visual
Studio
2010\Projects\MyAzureProject\src\AzureCloudService\ServiceDefinition.csx\roles\MyAzureProject.Web\approot\web.config
LOG: Using host configuration file:
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file
from
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\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:/Users/Administrator/AppData/Local/dftmp/s0/deployment(98)/res/deployment(98).AzureCloudService.MyAzureProject.Web.0/aspNetTemp/aspNetTemp/root/dfbc079a/82bed8d5/Interop.SSCE.DLL.
LOG: Attempting download of new URL
file:///C:/Users/Administrator/AppData/Local/dftmp/s0/deployment(98)/res/deployment(98).AzureCloudService.MyAzureProject.Web.0/aspNetTemp/aspNetTemp/root/dfbc079a/82bed8d5/Interop.SSCE/Interop.SSCE.DLL.
LOG: Attempting download of new URL
file:///C:/Users/Administrator/Documents/Visual
Studio
2010/Projects/MyAzureProject/src/AzureCloudService/ServiceDefinition.csx/roles/MyAzureProject.Web/approot/bin/Interop.SSCE.DLL.
ERR: Failed to complete setup of
assembly (hr = 0x8007000b). Probing
terminated.
this error happens with 2 dlls Interop.SSCE.DLL and SqlLite.dll Ive replaced all references to SqLite dll with a 64bit version and I dont have any references anymore to Interop.SSCE.DLL since I am not using it. Manually deleting these assemblies from the location
"C:\Users\Administrator\Documents\Visual Studio
2010\Projects\MyAzureProject\src\AzureCloudService\ServiceDefinition.csx\roles\MyAzureProject.Web\approot\bin"
solves the issue, but I dont obviously want to manually delete these everytime as I trying to automate a build process. My question is then how is the .csx folder actually generated and will this give me clues as to where these dll's are bring copied from? This is really frustrating as with the exception of those dll errors, I =m able to package the solution and startup the developement fabric with no other problems. Please Help!!
I realize this is old, but I just ran across it while trying to solve the same problem. In my case, the issue was that some of my projects were set to build x86 assemblies, instead of Any CPU. The solution was:
Go to Build -> Configuration Manager
Make sure "Active solution platform" is set to "Any CPU"
Make sure each of the projects also has the "Platform" set to "Any CPU"
Rebuild
Go to:
Tools > Options > Projects and Solutions > Web Projects
Check the Use the 64 bit version of IIS Express for web sites and projects.
This will ensure that your web project runs in x64 mode and will thus be able to use Service Fabric files.
Hope it helps...

ASP.NET MVC 2.0 Prev 1 and SPARK?

I am trying to upgrade the ASP.NET MVC 1.0 application to 2.0 preview 1. I am using the spark as view engine.
issue:
Spark used the System.Web.MVC 1.0.0.0 so I got the source code and recompiled using the 2.0.0.0 and used the new assembly. Now I am getting the different error as follows:
Could not load file or assembly 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 163: return new ViewEngineResult(searchedLocations);
Line 164:
Line 165: entry = Engine.CreateEntry(descriptor);
Line 166: SetCacheValue(descriptorParams, entry);
Line 167: return BuildResult(entry);
Source File: C:\Data\Projects\Samples\spark 1.0 Src\src\Spark.Web.Mvc\SparkViewFactory.cs Line: 165
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Mvc' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
My experience:
Get Spark source from this link: Spark development builds
Replace the file bin\aspnetmvc\System.Web.Mvc.dll with the 2.0 version (from %ProgramFiles%\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies)
Execute the build.cmd script
The updated Spark.dll & Spark.Web.Mvc.dll are available in the build folder
Notes:
on the time of writing, the available spark development version is 1.0.39961.0.
The build script fails while looking for a jsunit file (I believe) but the DLLs are generated properly before it breaks. Just cancel its execution by hitting Ctrl+C when the error is displayed otherwise it'll retry the operation.
Hope it helps.

Resources