Report View - Could not load file or assembly - reporting-services

I use VS2008 to develop a web application.
When I open a local report, it's report datasource does not show.
I click the report->DataSource to see it's datasource, but it appear an
error message:
Could not load file or assembly ###
But the file or assembly does exist.
How can I solve this problem?
I searched everywhere and didnt found a solution for this.
Thanks.

Copy the assembly to the folder
C:\Program Files\Microsoft Visual Studio 9.0\ReportViewer.
I use SysInternals Process Monitor to find where VS was looking for the containing file.

The assembly may exist but in a place not seen by the app. Use filemon / procmon to find out where your app is trying to load the assembly from and you will have a clue of what's going on. Also make sure the assembly version matches as well.

Related

HelpNDoc : Problem to generate CHM format help - Error HHC5010

I would like to generate a CHM help file with HelpNDoc.
But I get an error message:
HHC5010: Error: Cannot open "c:\users\philippeDocuments\HelpNDoc\Output\chm\creabook.chm". Compilation stopped.
I tried to create the CHM folder myself, in the "Output" folder but no result.
I'm running Ubuntu 22.04.1 LTS and using Wine as a Windows emulator.
Maybe it's an authorization issue?
What is surprising is that I was able to generate the Word and html documentation.
Is someone can help me ?
I do not use Ubuntu or Wine as an environment and would like to recommend a machine with Windows for compiling CHM help files.
Despite the close connection of CHM help files with the Windows operating system, I do not want to completely exclude the possibility of compiling in a Wine environment.
My good old compiler Error Message Reference shows the following:
HHC5010: Cannot open ""file name"". Compilation stopped.
Problem: The specified file either doesn't exist, or another program has it open and is denying permission to read the file.
Result: The .chm file is corrupt and cannot be used.
Solution: If another program does have the file open, close the program. Otherwise either correct the name in your project file or remove it.
Please make sure that the CHM help file "c:\users\philippeDocuments\HelpNDoc\Output\chm\creabook.chm" is not open in Wine's HTML help viewer by using e.g. wine hh creabook.chm.
Please also try if you can open another CHM help file in your environment. Maybe you have to specify a windows path, e.g.
wine hh.exe `winepatch -w /some/dir/somefile.chm`
As mentioned above, this is somewhat problematic outside of Windows.
See also some notes at Installing Microsoft HTML Workshop under Wine

SSIS file path changing to C:\windows\system32 depending on how I open the project file

I've been working with SSIS reading different files - from CSVs to XLSXs - with no problems. My paths are relative, so SSIS searches for the files from the project's folder.
Well, today my colleague tried to run a package and he got a curious error message saying that the file could not be found under the "C:\windows\system32" folder. There's no configuration that would point SSIS to that folder and with me and a third colleague it's working well.
After some investigation we discovered that the problem has nothing to do with the user itself, but with how the user opens the project. Since the beginning I've been opening the project by double clicking the ".dtproj" file. My colleague first opens the SSIS development interface then opens the project file from the menu.
Has anyone noticed that behavior? What could be the cause for that?
error message print
Microsoft Visual Studio 2008
Version 9.0.30729.4462 QFE
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: IDE Standard
This happens because the different ways of launching the IDE end up with different current directories for the IDE process. You can test this by creating a package with only a Script Task, with the one line:
MessageBox.Show(Environment.CurrentDirectory);
And then running this project after launching it both ways.
Double-clicking the project or solution file sets the folder containing that file as the current directory. (I assume this is standard Windows process launching behaviour when starting a process based on the file extension association.) SSIS packages then look in the current directory when the path to the configuration file is relative.
We use relative paths to configuration files all the time to simplify deployment, and have to always remember to open the solutions by double-clicking the SLN file.

FireDac error 314 - but DLLs are in program directory

I am getting when trying to access a MySql database :
[FireDac][Phys][MySQL]-314. Cannot load vendor library [libmysql.dll
or libmysqlld.dll]
This did not previously happen with this (unchanged) code, however, I have upgraded to Windows 10 and had to reinstall Delphi XE8, so it is obviously a system configuration matter.
In order to try to solve the problem, I copied both of those files into c:\windows\sysytem32.
When that did not seem to work, I copied them into \win32\debug, which is where the generated .EXE resides.
I imagine that I am doing something rather stupid, but can't see what.
The proper solution is to place the driver file (eg., libmysql.dll) in your application's folder, or to place the installation location in your FDDrivers.ini file:
[MySQL]
Vendor=<folder>\libmysql.dll
(Recent versions of the documentation seem to use VendorLib instead of Vendor in the INI file.)
See the RAD Studio documentation topics Configuring Drivers (FireDAC) and Connect to MySQL Server (FireDAC) for more information.
Let me to answer in two point.
Developing, live database connection!
Hope you have on your data module an "TFDPhysMySQLDriverLink" component.
Click this component and browse your LibMySQL.DLL into VendorLib. Should be work. But only in design time.
Runtime. Hopefully your DM created firstly in your project.
In the DM's OnCreate event, you have to disconnect your library (I always ran my project with no database connection) and replace your "TFDPhysMySQLDriverLink"'s Vendorlib to LibMySQL.DLL (which is copied your which is copied where the generated .EXE resided)
Have a nice day!

Adding a DLL to a SharePoint 2010 Application Page project

I am trying to create an application page in SharePoint 2010. I am trying to use the GoogleMap Control on the page. In a traditional ASP.NET application you would just plop that .dll into the bin directory of the web application project. But in SharePoint, this doesn't work.
Now after googling for hours, I have found many references to creating your own user control (.ascx) and including that in your project. But this is a different case. I keep getting an error: "Could not load file or assembly 'Artem.GoogleMap, Version=4.1.0.0, Culture=neutral, PublicKeyToken=fc8d6190a3aeb01c' or one of its dependencies. The system cannot find the file specified.". I have the .dll installed in the GAC. So I should be able to find it.
Anyone have an experience with this?

Adding editFTPnetPRO to SSIS package causes error message

I'm trying to add some secure FTP code to an SSIS package. I've used the EnterpriseDT product successfully on other .NET projects, so I wanted to incorporate it into an SSIS 2008 package I'm working on.
If I create a Script Task (VB), edit the script, choose Project | Add Reference, and select the editFTPnetPRO.dll file, it comes back with this error:
No template information found. See the application log in Event Viewer for more details.
To open Event Viewer, click Start, click Control Panel, double-click Administrative Tools, and then double-click Event Viewer.
The application log doesn't contain any pertinent details.
I have no idea what this is trying to tell me. I've gone down a couple dead ends searching for this error message and following the prescribed fixes, but nothing has fixed it yet. Any idea what might be going wrong?
P.S. - I tried the devenv.exe /installvstemplates fix, which didn't change anything.
Update: Here is the error captured in the SSIS package when you try to run it:
Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'edtFTPnetPRO, Version=6.3.1.20, Culture=neutral, PublicKeyToken=0dce1ad63760d80b' or one of its dependencies. The system cannot find the file specified.
Where is it looking for this file? I tried copying it to the project direcory, the bin folder, and the C:\WINDOWS\Microsoft.NET\Framework\v2.0.nnnn folder, but it still can't find it, and it won't tell me where it's looking.
I'm now having this same problem with a custom C# assembly that I created to use with SSIS. I have added the assembly to the Windows\assembly and C:\WINDOWS\Microsoft.NET\Framework\v2.0.nnnn folders.
Put your DLL into C:\Program Files\Microsoft SQL Server\100\DTS\Binn and try again.
I have encountered this error a few times while attempting to add a reference from the .NET tab of the Add Reference dialog.
The (painfully simple) fix is to use the Browse tab to add the reference.