Click here to Skip to main content
16,005,038 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: how to programmatically get a list of resource file names in solution explorer Pin
fjparisIII3-Apr-10 10:56
fjparisIII3-Apr-10 10:56 
GeneralRe: how to programmatically get a list of resource file names in solution explorer Pin
Luc Pattyn3-Apr-10 11:06
sitebuilderLuc Pattyn3-Apr-10 11:06 
GeneralRe: how to programmatically get a list of resource file names in solution explorer Pin
fjparisIII3-Apr-10 11:45
fjparisIII3-Apr-10 11:45 
GeneralRe: how to programmatically get a list of resource file names in solution explorer Pin
Luc Pattyn3-Apr-10 12:08
sitebuilderLuc Pattyn3-Apr-10 12:08 
GeneralRe: how to programmatically get a list of resource file names in solution explorer Pin
fjparisIII3-Apr-10 12:55
fjparisIII3-Apr-10 12:55 
QuestionError: Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized. Pin
Nafiseh Salmani2-Apr-10 22:51
Nafiseh Salmani2-Apr-10 22:51 
AnswerRe: Error: Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized. Pin
Luc Pattyn3-Apr-10 11:30
sitebuilderLuc Pattyn3-Apr-10 11:30 
Questionstrange error "could not load devenv.exe or some of its dependencies" ( Unit testing /unit testing framework/NServiceBus.Testing.Test ) Pin
Tiju John2-Apr-10 3:30
Tiju John2-Apr-10 3:30 
Hi Guys,

we've been running into some kind of strange trouble recnetly and not luck till now.

Ther error is coming only in one dev. machine out of 3. all have the same version of softwares and using TFS for version control.

For unit testing our modules containg NServiceBus code, we are using NServiceBus unit testing framework.

the code is like

<br />
[TestMethod]<br />
public void SomeMethod(Assembly asm)<br />
{<br />
  ...<br />
  NServiceBus.Testing.Test.Initialize(asm); // throws exception.<br />
  ...<br />
}<br />


the error message
Test method Decos.Kcs.UnitTests.Handlers.CaseHandlers.Dummy.AllCaseHandlerTest.TestSearchCaseHandler threw exception:  System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe' or one of its dependencies. The module was expected to contain an assembly manifest..



the stack trace is
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
System.Reflection.Assembly.LoadFrom(String assemblyFile)
NServiceBus.Configure.GetTypesInDirectoryWithExtension(String path, String extension) in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs: line 211
d__3.MoveNext() in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs: line 173
ctor(IEnumerable`1 collection)
NServiceBus.Configure.With() in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs: line 79
NServiceBus.Testing.Test.InitializeInternal() in d:\BuildAgent-03\work\672d81652eaca4e1\src\testing\Test.cs: line 38
NServiceBus.Testing.Test.Initialize(Assembly[] assemblies) in d:\BuildAgent-03\work\672d81652eaca4e1\src\testing\Test.cs: line 30
TResponseMessage]() in D:\Kanu\Projects\KCS\Sources\Decos.KCS\Development\Decos.Kcs.UnitTests.Handlers.CaseHandlers.Dummy\AllCaseHandlerTest.cs: line 102
Decos.Kcs.UnitTests.Handlers.CaseHandlers.Dummy.AllCaseHandlerTest.TestSearchCaseHandler() in D:\Kanu\Projects\KCS\Sources\Decos.KCS\Development\Decos.Kcs.UnitTests.Handlers.CaseHandlers.Dummy\AllCaseHandlerTest.cs: line 73



The output window contents on the error machine is



The Test.Initialize() methos fails on that specific machine.
While on other machine, it just does not look for devenv.exe.
It just continues with loading NServiceBus.Host and other dlls.
We have cross checked the referneces of the projects and everything seems to be fine.




any help is appreciated.
Thanks
AnswerRe: strange error "could not load devenv.exe or some of its dependencies" ( Unit testing /unit testing framework/NServiceBus.Testing.Test ) Pin
Luc Pattyn2-Apr-10 4:02
sitebuilderLuc Pattyn2-Apr-10 4:02 
AnswerRe: strange error "could not load devenv.exe or some of its dependencies" ( Unit testing /unit testing framework/NServiceBus.Testing.Test ) Pin
Tiju John6-Apr-10 21:04
Tiju John6-Apr-10 21:04 
Questionwho handles error while writing the source code???. Pin
Isaac Gordon1-Apr-10 20:50
Isaac Gordon1-Apr-10 20:50 
AnswerRe: who handles error while writing the source code???. Pin
pdnet1-Apr-10 21:53
pdnet1-Apr-10 21:53 
AnswerRe: who handles error while writing the source code???. Pin
Not Active2-Apr-10 2:02
mentorNot Active2-Apr-10 2:02 
QuestionDoes capFileSaveDIB work Pin
jacket601-Apr-10 9:12
jacket601-Apr-10 9:12 
QuestionHow to get the number displayed in the text which is changing randomly Pin
jaimo1-Apr-10 1:14
jaimo1-Apr-10 1:14 
AnswerRe: How to get the number displayed in the text which is changing randomly Pin
Not Active1-Apr-10 1:39
mentorNot Active1-Apr-10 1:39 
AnswerRe: How to get the number displayed in the text which is changing randomly Pin
jaypatel51211-Apr-10 1:57
jaypatel51211-Apr-10 1:57 
Questionconnection between matlab and Vb6 Pin
G. S. Doiphode31-Mar-10 19:12
G. S. Doiphode31-Mar-10 19:12 
AnswerRe: connection between matlab and Vb6 Pin
Richard MacCutchan31-Mar-10 23:02
mveRichard MacCutchan31-Mar-10 23:02 
AnswerRe: connection between matlab and Vb6 Pin
Dave Kreskowiak1-Apr-10 3:12
mveDave Kreskowiak1-Apr-10 3:12 
QuestionAllow/Disallow a user from changing system time Pin
Aseem Sharma31-Mar-10 17:19
Aseem Sharma31-Mar-10 17:19 
AnswerRe: [Cross Post] Allow/Disallow a user from changing system time Pin
Nuri Ismail31-Mar-10 22:14
Nuri Ismail31-Mar-10 22:14 
QuestionPointToScreen and multiple monitors Pin
vlasto7731-Mar-10 1:17
vlasto7731-Mar-10 1:17 
Answer[Cross Post] PointToScreen and multiple monitors Pin
Scott Dorman31-Mar-10 3:28
professionalScott Dorman31-Mar-10 3:28 
QuestionConstructor in MustInherit Class Pin
Soumya9230-Mar-10 19:35
Soumya9230-Mar-10 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.