System.InvalidProgramException occurs when using Fakes with ServiceModel.dll in test project. - by pthorsey

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 777814 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/29/2013 3:52:00 PM
Access Restriction Public


When using the ServiceModel assembly while trying to fake a SOAP service I get the error below that prompts me to load the Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.pdb. 

Error copied to the clipboard is as follows:
System.InvalidProgramException occurred
  Message=Common Language Runtime detected an invalid program.
       at System.ServiceModel.ServiceHost..ctor(Object singletonInstance, Uri[] baseAddresses)
       at Microsoft.VisualStudio.TestPlatform.TestExecutor.TestExecutorMain.Run(String[] args)

After it goes into this failure state, I have to then remove my reference to the ServiceModel assembly from the project and its corresponding fake just to get any of my other non-fake tests to run. This failure completely corrupts the test project until the reference is deleted and recompliled. 

Sign in to post a comment.
Posted by Macy [MSFT] on 2/11/2013 at 2:53 AM
Hi, given that we have not heard back from you in 7 days. We will go ahead and close this Connect Issue. If you get a chance to review and provide the information requested earlier, you can go ahead and reactivate this issue.
Posted by Macy [MSFT] on 2/5/2013 at 1:57 AM

Sorry for bothering. Is there any update?

It would be greatly appreciated if you could provide us with that information as quickly as possible.

Thank you!
Posted by pthorsey on 1/30/2013 at 9:34 AM
I am pretty slammed at xbox and will need a bit to generate a failure scenario that I can pass to you. However hopefully by this weekend I can have that to you.
Posted by Macy [MSFT] on 1/29/2013 at 11:30 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Macy [MSFT] on 1/29/2013 at 4:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(