I've got a problem, I want to run scalar-valued-function that will run my C# method that evaluate mathematical expression from text. To evaluate expression I want to use Jace.dll (Jace.NET 0.8.4). When trying to add this dll to database assebly I've got this errors:
Assembly 'Jace' references assembly 'mscorlib, version=2.0.5.0, culture=neutral, publickeytoken=7cec85d7bea7798e.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.
Could not deploy package.
Error SQL72014: .Net SqlClient Data Provider: Msg 10300, Level 16, State 1, Line 24 Assembly 'Jace' references assembly 'mscorlib, version=2.0.5.0, culture=neutral, publickeytoken=7cec85d7bea7798e.', which is not present in the current database.
SQL Server attempted to locate and automatically load the referenced assembly
from the same location where referring assembly came from, but that operation has failed
(reason: version, culture or public key mismatch). Please load the referenced assembly into the current database and retry your request.
Can someone help me solve this one ? I know that database have different version of mscorlib than Jace is needed. Because db is using newer one. Should I just insert this 2.0.5 version to db ?
Related
I created an assembly of microsoft.sqlserver.dtsruntimewrap as my code got this dependency.
It created the assembly succesfully.
So when I created an assembly of my script as follow :
CREATE ASSEMBLY transfer8555
FROM 'C:\Users\transferTask\Transfer\bin\Debug\Transfer.dll'
WITH PERMISSION_SET = UNSAFE;
it returns me this error :
Assembly 'Transfer' references assembly 'microsoft.sqlserver.dtsruntimewrap, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.
I have added a wcf service (SifService) reference to my Kentico web application in VS. I didn't select any of the advanced options. I just provided the wsdl address, provide a namespace (SifService) and click OK. The service reference seems to have added successfully. However, when I attempt to create an instance of the client like in the code below, VS says the type or namespace "SifService" could not be found. We have just recently upgraded from Kentico 8 to Kentico 9. The same exact code works fine in the Kentico 8 code branch. The issue only appears in the Kentico 9 branch.
var sifClient = new SifService.SifClient();
When I attempt to run the site in VS, I get this error in the browser:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Reference.svcmap: Could not load file or assembly 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
[No relevant source lines]
Source File: /App_WebReferences/SifService/ Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
NOTE: Everything runs fine until I add the service reference to SifService.
Sometimes it's an error of visual studio, clean the solution, build, so close the visual studio and build again, for me it worked a few times!
I installed the 4.5.2 framework onto my R2 dev server last week, and have been getting this error, ever since. The files contain no reference to VisualStudio.Shell. Any ideas?
Parser Error Description: An error occurred during the parsing of a
resource required to service this request. Please review the following
specific parse error details and modify your source file
appropriately.
Parser Error Message: Reference.svcmap: Could not load file or
assembly 'Microsoft.VisualStudio.Shell, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
Source Error:
[No relevant source lines]
Source File: /App_WebReferences/ClientApplicationServer/ Line: 1
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'Microsoft.VisualStudio.Shell,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
could not be loaded.
So I spent about 2 days trying to figure out what the heck was going...
The way I was able to fix it is by adding Microsoft.VisualStudio.Shell to
C:\Windows\assembly
But the only way to do that is using gacutil.
gacutil -i Microsoft.VisualStudio.Shell.dll
That fixed it for me. Hopefully it helps someone with the same problem.
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Reference.svcmap: Could not load file or assembly 'RadMenu.Net2, Version=4.4.6.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68' or one of its dependencies. The system cannot find the file specified.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'RadMenu.Net2, Version=4.4.6.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68' could not be loaded.
Pls help me to resolved this error...
This means that somewhere in your projects and/or web.config(s) you have a reference to this horribly old assembly (I think it is 8 or so years old). Remove it and migrate to the modern AJAX suite.
I have an ASP.net appication in which it uses an ODP.net database connection. I have extracted the database handler into a dll file in order to extend its flexibility.
An error pops up occasionaly saying as follows:
Error 1 Assembly 'DatabaseConnection, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' uses 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral,
PublicKeyToken=89b483f429c47342' which has a higher version than referenced assembly
'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral,
PublicKeyToken=89b483f429c47342' c:\Documents and Settings\Visual Studio
2010\Projects\DatabaseConnection\bin\Debug\DatabaseConnection.dll
Last time it happend, the error faded away automatically alone.
What is the reason for such error?
From the error look at the version number, your dll is expecting Oracle.DataAccess of Version=4.112.2.0 and i believe maybe in your GAC or bin you have a lower version 2.112.2.0.
Try to get the required version and this should be resolved.
Also - if you are using .Net 4.0 - you must use the 4.x assembly to be supported by Oracle.