Home Dashboard Directory Help
Search

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


Status: 

Closed
 as Not Reproducible Help for as Not Reproducible


3
0
Sign in
to vote
Type: Bug
ID: 777814
Opened: 1/29/2013 3:52:00 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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
HResult=-2146233030
Message=Common Language Runtime detected an invalid program.
Source=System.ServiceModel
StackTrace:
     at System.ServiceModel.ServiceHost..ctor(Object singletonInstance, Uri[] baseAddresses)
     at Microsoft.VisualStudio.TestPlatform.TestExecutor.TestExecutorMain.Run(String[] args)
InnerException:



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.

Details
Sign in to post a comment.
Posted by Microsoft 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 Microsoft on 2/5/2013 at 1:57 AM
Hello,

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 Microsoft 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 Microsoft 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(http://support.microsoft.com)
Sign in to post a workaround.