could not load file or assembly 'OSIsoft.PISDK, version=1.3.0.0 culture=neutral - pi

Just wanna ask,
This error outcome when i want to run using .net, how to solve it?
Please, need some suggestion & answers
Could not load file or assembly 'OSIsoft.PISDK, Version=1.3.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805' or one of its dependencies. The system cannot find the file specified.

Put OSIsoft.PISDK.dll inside ur development folder,
it will solve your problem.
Happened to me before this.

Related

Telerik doesn't work after moving project to another env

i moved my project from one env, and from then on i have issue running my application.
The error i receive below.
'Could not load file or assembly 'Telerik.Web.UI, Version=2016.2.504.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'
The error code 0x80131515 usually tells that the assembly file has been blocked or not referenced properly (because VS thinks referenced assembly still untrusted). Here is an explanation from Telerik's FAQ:
Operation is not supported HRESULT: 0x80131515
The HRESULT: 0x80131515 error usually means that the file was downloaded from the Internet and
Windows has blocked it. In such cases you need to simply do the
following:
In Windows Explorer, right-click the file.
Select Properties
Click the Unblock button.
Clear the read-only attribute.
Other things you should try to solve this issue:
Using bin folder assembly deployment
Copy Telerik assemblies to \bin folder and use reference from that folder.
Restart VS IDE.
Using GAC assembly deployment
Add Telerik.Web.UI.dll assembly to GAC using this command:
gacutil /i "[InstallDir]\BinXX\Telerik.Web.UI.dll
Note: [InstallDir] belongs to Telerik location path and "X" means numeric value which should be adjusted based on folder hierarchy.
Remove previously used Telerik.Web.UI.dll from bin folder and add reference to the newer one.
Ensure that this line exists in web.config:
<add assembly="Telerik.Web.UI, Version=2016.2.504.45, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" />
Restart VS IDE.
If all possible solutions above are fruitless, create a new project with current Telerik assembly and all required assemblies then move old project files into new project.
Additional references:
Could not load file or assembly 'Telerik.Web.UI'
Upgrade Compile Error
Visual Studio Project Sample Loading Error: Operation is not supported. (Exception from HRESULT: 0x80131515)
Having two versions of Telerik DLLs in the solution is also a culprit. In my case I had subproject that was using a different version of .Net and hence, Telerik DLLs.

Problematic References after Get Latest Version

I check in a project that builds & runs fine on one computer, and then "Get Latest Version" from another. When I build & run on the second computer, I get errors like:
Could not load file or assembly 'System.Web.Cors, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I've fixed this once by removing & adding back all references, but I can't be doing this every time I change setups. Why is it not pulling a complete project definition from version control?
If I delete all the files and download from TFS from scratch, on build the packages don't restore. If I run Update-Package, then I get the error: The given key was not present in the dictionary. Not sure what's causing that.
Update
Here's an example of the issue: I have Newtonsoft included via nuget, and it appears in the References list, but I'm being told it Cannot resolve symbol Newtonsoft, as per image below.
If you work with one XAML build definition, there are some steps (described here) you need to follow in order to have these NuGet packages restored during the VSO (TFS) build process.
Add following items to the solution. (Content of the nuget.config and .tfignore file can be found here)
Add one build.proj file under the root path of the solution folder. (Content of the build.proj file can be found here)
Create one folder named tools under the root path of the solution folder. Create NuGet sub-folder under tools folder, download and save nuget.exe under tools\NuGet path.
Check in nuget.config, .tfignore, build.proj and tools\NuGet\nuget.exe into TFS version control.
Modify the build definition to choose to build the build.proj file.
Then you will have NuGet packages restored successfully during the TFS build process.

How do I locate dependencies for a dll?

I have written a Dev Express winforms application.
And I created a deployment file using the Dev Express instructions
However when I deploy and run it I get the following errors
Exception occurs while activating the 'DevExpress.ExpressApp.SystemModule.ShowNavigationItemController' controller:
Could not load file or assembly 'DevExpress.ExpressApp.Xpo.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
Inner exception:
Could not load file or assembly 'DevExpress.ExpressApp.Xpo.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
The file DevExpress.Xpo.V14.2.dll is actually present.
How do I locate the real missing files?
You need to deploy the DevExpress.ExpressApp.Xpo.v14.2 assembly as well. Not only DevExpress.Xpo.v14.2.

unable to update auto-refresh reference 'ajaxcontroltoolkit.dll and commonlogging.dll

unable to update auto-refresh reference 'ajaxcontroltoolkit.dll and
commonlogging.dll
I am getting this warning every time I build the project but the project is running fine without breaks in local system but I am getting error page in godaddy after uploading to server. is this the reason for 500 error in godaddy shared hosting server?
I had this same problem with the AjaxControlToolkit. I've got no idea what caused it, but by simply re-installing the toolkit into my project with NuGet, that fixed it.
Install the package by following the steps below:
Right-click on your project and select Manage NuGet Packages.
Search the online repository for the package you want. In my case, this was 'ajaxcontroltoolkit'.
Find the package in the list of results that appears and click the Install button on it.
What this does is it removes all previous references of the package (older DLLs and references in your web.config file) and replaces them with newer, correct references
It's that simple.
Hope this helps you
Look in the bin folder of the project - for a file called - in your case:
ajaxcontroltoolkit.dll.refresh
This will have an incorrect path to the dll file. You need to update the path to wherever the dll is now.
Had this same issue and manually creating a .refresh file for its DLL helped. Once I figured the origin of the relative path is the solution folder, and put that in the .refresh, everything worked for this and other references.
I hope this helps somebody...
Im using VS2017 and had an ASP project with 28 Warnings:
Unable to update auto-refresh reference 'XXXXX.dll'. Cannot find
assembly 'F:\Program Files (x86)\Microsoft Web Tools\Packages\…
...well...that directory had been removed!
To make matters worse (or better) when I create a new ASP project the references are handled a little different in solution explorer...and the assemblies referenced in the new project are in C:\Program Files (x86)\Microsoft Visual Studio\Shared
To fix my warnings...I edited the .refresh file.
You can do this by: 1: Double clicking the warning. 2: Navigate to it
in solution explorer under the Bin folder.
And changed (example)
..\..\..\..\..\..\..\Program Files (x86)\Microsoft Web Tools\Packages\AspNet.ScriptManager.bootstrap.3.0.0\lib\net45\AspNet.ScriptManager.bootstrap.dll
to
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Packages\AspNet.ScriptManager.bootstrap.3.0.0\lib\net45\AspNet.ScriptManager.bootstrap.dll
I had the same issue / what solved it for me was simply to do a "Refresh folder" on the Bin folder.

Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified

i am installing URL rewriting DLL (from http://urlrewriter.net/) to GAC. (if i keep dll in BIN folder it works perfectly)
but keeps throwing error.
Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified. (E:\Test\web.config line 28)
wondering is it because dll is http module.. and installed in GAC creating problem ? (because rest all dlls work perfectly fine in GAC)
i looked in to all internet resource for this error. but didn't find proper solution.
attached test project with dll added into bin folder.
http://rapidshare.com/files/449306116/Test.rar
please advise.

Resources