Could not load file or assembly 'DragnetLib'

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
gregch
Posts: 17
Joined: Thu Sep 01, 2011 12:57 pm

Could not load file or assembly 'DragnetLib'

Post by gregch » Mon Sep 21, 2015 10:54 am

Product Vault Standard, 7(548)

I can't load projects from Vault in VS 2012 or VS 2013, but can load from file

The text below is from event log



A configuration error has occurred.
9/21/2015 12:35:13 PM
9/21/2015 4:35:13 PM
17344fae84624765abc2bd5357e7a647
1
1
0
/LM/W3SVC/1/ROOT/VaultNotifyService-16-130873269128348303
Full
/VaultNotifyService
C:\inetpub\wwwroot\VaultService\VaultNotifyService\
STUDIO-17

7932
w3wp.exe
IIS APPPOOL\VaultNotifyAppPool
ConfigurationErrorsException
Could not load file or assembly 'DragnetLib' or one of its dependencies. An attempt was made to load a program with an incorrect format. at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) at System.Web.Compilation.BuildManager.ExecutePreAppStart() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) Could not load file or assembly 'DragnetLib' or one of its dependencies. An attempt was made to load a program with an incorrect format. at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
http://127.0.0.1/VaultNotifyService/Vau ... rvice.asmx
/VaultNotifyService/VaultNotifyService.asmx
127.0.0.1

False

IIS APPPOOL\VaultNotifyAppPool
71
IIS APPPOOL\VaultNotifyAppPool
False
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) at System.Web.Compilation.BuildManager.ExecutePreAppStart() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Could not load file or assembly 'DragnetLib'

Post by Beth » Mon Sep 21, 2015 12:39 pm

Check first that you can open a Vault GUI client and log in. Does that work?

The error you are showing me usually shows up when the bitness of the application pools doesn't match the version of Vault installed; 32-bit versus 64-bit.
Beth Kieler
SourceGear Technical Support

gregch
Posts: 17
Joined: Thu Sep 01, 2011 12:57 pm

Re: Could not load file or assembly 'DragnetLib'

Post by gregch » Mon Sep 21, 2015 4:36 pm

yes it works
Client is 64 bit

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Could not load file or assembly 'DragnetLib'

Post by Beth » Mon Sep 21, 2015 7:30 pm

The error that is in the first post is a server side error.

Are you trying to connect to a different server with VS than with the client?
Beth Kieler
SourceGear Technical Support

gregch
Posts: 17
Joined: Thu Sep 01, 2011 12:57 pm

Re: Could not load file or assembly 'DragnetLib'

Post by gregch » Tue Sep 22, 2015 5:23 am

Yes, it is server side, but the error message is complaining about assembly framework mismatches. This is a local machine, only one server

I did install VS 2015, I don't if modified some core assemblies

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Could not load file or assembly 'DragnetLib'

Post by Beth » Tue Sep 22, 2015 8:57 am

Was Vault installed after Visual Studio?

Can you check that you installed the right version of Vault? (Vault Standard versus Vault Professional is what I'm looking for.)
Beth Kieler
SourceGear Technical Support

Post Reply