SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


A .NET Framework error in SQL server 2008 R2


A .NET Framework error in SQL server 2008 R2

Author
Message
Mac1986
Mac1986
Mr or Mrs. 500
Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)

Group: General Forum Members
Points: 563 Visits: 791
Hi All,
one of our System monitor job is failing with the below error.
'' Executed as user: REDMOND\MyServiceAccount. Start - SP spAddSGUsersToRGMetaData at 2013-01-17T12:00:01.9155919 [SQLSTATE 01000] (Message 50000) Msg 6522, Level 12, State 1, Procedure spGetSGMembers, Line 0 A .NET Framework error occurred during execution of user-defined routine or aggregate "spGetSGMembers": System.IO.FileLoadException: Could not load file or assembly 'System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050) See Microsoft Knowledge Base article 9490 [SQLSTATE 42000] (Error 50000). The step failed.
A .NET Framework error occurred during execution of user-defined routine or aggregate : System.IO.FileLoadException: Could not load file or assembly 'System.DirectoryServices, , Culture=neutral, one of its dependencies. Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050) See Microsoft Knowledge Base article 9490 [SQLSTATE 42000] (Error 50000). The step failed.
''

Select * from sys.dm_clr_properties gave me C:\Windows\Microsoft.NET\Framework64\v2.0.50727\.

But when i go and checked at the actual location I saw a newer version folder which was installed yesterday i,e v4.0.30319
I'm not sure how to change the version from older to newer version from SQL Instance point of view..


Can you please help me resolve this issue...
Sean Pearce
Sean Pearce
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1790 Visits: 3432
http://support.microsoft.com/kb/949080

Workaround 1
To work around scenario 1 in the "Symptoms" section, you must manually update the .NET Framework assemblies in SQL Server. To do this, use the ALTER ASSEMBLY statement to point to the new version of the .NET Framework assembly in the following folder:
%Windir%\Microsoft.NET\Framework\Version
Note Version represents the version of the .NET Framework that you installed or updated.

Workaround 2
To work around scenario 2 in the "Symptoms" section, use the ALTER ASSEMBLY statement to update the assembly in the database.

If the problem still exists after you do this, drop the assembly from the database, and then register the new version of the assembly in the database.




The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search