Comments
6 comments
-
Hi,
This is a very confusing and vague problem. You would typically get a partially-trusted error when assemblies try to cross zones, ie when you run a .NET assembly across a network share, in which case the "Intranet" zone security kicks in and does not allow the assembly to run unless you "fully trust" the Intranet zone (NOT recommended!).
The other annoying thing is that .NET doesn't tell us what "That Assembly" is. It may be SQL Prompt, but maybe not.
I think that the best thing would be to create some fusion logs and get the faulting assembly and failure information.
Create some new keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogFailures DWORD 1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogPath REG_SZ <path to logs>
Then run SSMS and look in <path to logs>\default\sqlwb.exe . The assemblies that fail to bind should have their own .htm files, listing the reason for the failure. -
I have created the fusion log dumps, and they are as follows:
C:\temp\Default\SqlWb.exe\RedGate.SQLPrompt.SSMSUI, Version=3.9.0.43, Culture=neutral, PublicKeyToken=7f465a1c156d4d57.HTM*** Assembly Binder Log Entry (12/31/2008 @ 9:57:19 AM) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = ERXNETWORK\benjamin.hayes LOG: DisplayName = RedGate.SQLPrompt.SSMSUI, Version=3.9.0.43, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 (Fully-specified) LOG: Appbase = file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = NULL Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe.Config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Post-policy reference: RedGate.SQLPrompt.SSMSUI, Version=3.9.0.43, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.SQLPrompt.SSMSUI.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.SQLPrompt.SSMSUI/RedGate.SQLPrompt.SSMSUI.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.SQLPrompt.SSMSUI.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.SQLPrompt.SSMSUI/RedGate.SQLPrompt.SSMSUI.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.SQLPrompt.SSMSUI.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.SQLPrompt.SSMSUI/RedGate.SQLPrompt.SSMSUI.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.SQLPrompt.SSMSUI.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.SQLPrompt.SSMSUI/RedGate.SQLPrompt.SSMSUI.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.SQLPrompt.SSMSUI.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.SQLPrompt.SSMSUI/RedGate.SQLPrompt.SSMSUI.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.SQLPrompt.SSMSUI.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.SQLPrompt.SSMSUI/RedGate.SQLPrompt.SSMSUI.EXE. LOG: All probing URLs attempted and failed.
C:\temp\Default\SqlWb.exe\RedGate.Refactoring.ComAddIn, Version=1.3.0.207, Culture=neutral, PublicKeyToken=7f465a1c156d4d57.HTM*** Assembly Binder Log Entry (12/31/2008 @ 9:57:20 AM) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = ERXNETWORK\benjamin.hayes LOG: DisplayName = RedGate.Refactoring.ComAddIn, Version=1.3.0.207, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 (Fully-specified) LOG: Appbase = file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = NULL Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe.Config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Post-policy reference: RedGate.Refactoring.ComAddIn, Version=1.3.0.207, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.Refactoring.ComAddIn.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.Refactoring.ComAddIn/RedGate.Refactoring.ComAddIn.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.Refactoring.ComAddIn.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.Refactoring.ComAddIn/RedGate.Refactoring.ComAddIn.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.Refactoring.ComAddIn.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.Refactoring.ComAddIn/RedGate.Refactoring.ComAddIn.DLL. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.Refactoring.ComAddIn.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/RedGate.Refactoring.ComAddIn/RedGate.Refactoring.ComAddIn.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.Refactoring.ComAddIn.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PublicAssemblies/RedGate.Refactoring.ComAddIn/RedGate.Refactoring.ComAddIn.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.Refactoring.ComAddIn.EXE. LOG: Attempting download of new URL file:///C:/Program Files/Microsoft SQL Server/90/Tools/Binn/VSShell/Common7/IDE/PrivateAssemblies/RedGate.Refactoring.ComAddIn/RedGate.Refactoring.ComAddIn.EXE. LOG: All probing URLs attempted and failed.
-
I'd say the refactor and prompt components have become unregistered. .NET is not looking in the installation folders for the .dll files, only in the default assembly folders for SSMS.
Can you try re-registering the assemblies?
Here are the instructions for SQL Prompt
The same basic procedure should also work for refactor. -
I have registered both dlls with regasm, and I am still receiving the same errors as before. I don't know if these errors are even relevant to the fact that I cannot activate my SQL Prompt 3 or anything else, for that matter. Is there some other way to activate than going into SSMS 2005, and under SQL Prompt and Enter Serial Number...?
-
I would probably rule out the source of the problem as activation. The error claims that the assembly reference is violating the security settings and that's purely a dotnet error.
Maybe it world work to go into the .NET Framework wizards and grant full trust to all assemblies signed with the Red Gate key. -
well, it has been five months. I am wondering what happened to you already?
Yeah,about the issue, I agree with Brian. It would not be an activation error problem. My friend had the same issue on his assembly and thought that it was the real reason behind it. Brian Donahue's idea could be right. Just check the.NET Framework wizards.
________________________________________
make up for the engine assembly replacement that i am working out
Add comment
Please sign in to leave a comment.
After installing SQL Toolbelt 2008, I tried to start my SSMS 2005, and it would hang. I killed it, and restarted SSMS 2005. Then I received an error message from SSMS 2005
The full dump is
I told the error to "Continue", and went on. The trial expired, so I purchased a license, but I could not activate. Each time I put the serial number into the field, the "Activate" button does not become "un-grayed out". I uninstalled the SQL Toolbelt's components, and even went into the Registry and removed all references to SQL Prompt and redgate, and reinstalled.
After it finished installing, I tried to start up SSMS 2005, but it would hang, and never seem to finish. I would kill it, and once I started SSMS 2005 back up again, I would get the error message again. I continued past it, and once again, cannot "Activate". Is there some way to correct the error message, or to set it to trust the assembly?