First of all - awesome job on PEX !!!
We are trying to do code explorations for one of our Office Add-In project. So, first of all let me ask yo this - Is this is feasible ? In other words can PEX help me with Add-In/VSTO projects ?
Secondly, I trying to execute PEX on one of our Add-In methods and got the following error
--- Description
runtime context Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context failed to open
runtime context Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context failed to open
--- Exception details
System.InvalidProgramException: Common Language Runtime detected an invalid program. at System.Void Microsoft.VisualBasic.CompilerServices.ProjectData..ctor()
at Microsoft.VisualBasic.CompilerServices.ProjectData Microsoft.VisualBasic.CompilerServices.ProjectData.GetProjectData()
at Microsoft.VisualBasic.ErrObject Microsoft.VisualBasic.Information.Err()
at System.Void Microsoft.VisualBasic.CompilerServices.ProjectData.ClearProjectError()
Any help is appreciated !!!
Thanks,
Mrunal Buch
I saw the same InvalidProgramException issue recently when running Pex. I had been able to run Pex successfully earlier, without any issues. I uninstalled the Windows security update KB2742595 and that fixed the issue. I do not see the InvalidProgramException from CLR any more.
For reference, here is a similar issue with the security update and the MS unit test framework.
Related
I rename a VB.NET 2010 project and the IDE crash over and over.
I open another project and same result, after a few seconds or if I open Form1.vb the IDE crash.
And the worst part is there's no info about on the Error window.
The only that I can see as an error code is 0xC0000005
Is the only program crashing on my PC so I have my doubts about a hardware issue.
How can I figure out what is happening?
Can somebody give any clue?
Thanks.
First off, take a look at this question where the answer does a good job of explaining the OXC0000005 error, and all that it encompasses.
Second, look at what has changed on your system since the last time you were able to successfully run Visual Studio. I have seen a few cases where a bad windows update was the cause of a user receiving this error. If you have installed updates since the last time you were able to run VS without error, you may want to uninstall those updates and try VS again. If VS works, begin to re-install the updates 1-by-1, testing VS between every update, to determine which update caused the issue.
I have a huge program, written in VB 2008, that involves lot of homemade DLL's, socket communication, multi-threading, etc.
Sometimes, out of nowhere, the program crash with the following details in the Event Viewer:
CLR20r3
Not available
0
CMS.exe
1.0.0.0
5177cc90
mscorlib
2.0.0.0
4a275af7
3440
10
System.ObjectDisposedException
I did my homework to try to locate the problem but I can't pinpoint exactly where it might be (there is hundreads of thousands of lines of code in this assembly). I put a Handler to catch any UnHandledException in the main() but it doesn't seems to fire at all.
my question is, how can I debug this outside VS? The software is installed on a production industrial PC in our client's warehouse, so we can't install VS for obvious reasons.
any hints would be really appreciate.
thanks for your precious time and help
Handling System.Windows.Forms.Application.ThreadException and AppDomain.CurrentDomain.UnhandledException do the trick in 80% of case (sadly, some errors like COM error would not be caught).
In such events you can for example dump to a Log file the Exception message and Exception StackTrace.
If you provide the pdb files with your Application, you will be able to see the Line number in the StackTrace, providing a good way to debug it.
I develop and maintain a very large opengl application, written using qt library. I'm switching from qt 4 to qt 5. I downloaded the qt 5.0.0 Windows (8) Visual Studio 2010 precompiled package. Unfortunately I discovered that I get millions of OpenGL errors caused by the OpenGL ES 2 support provided by the precompiled package. So, I downloaded the source code and I recompiled qt using the -opengl desktop flag on the configure step (for further details on the problem please refer here). The opengl compiler errors disappear but I still have hundreds compiler errors everytime inside the Qt library itself there is a reference to two macros Q_STATIC_ASSERT and Q_STATIC_ASSERT_X.
The typical kind of errors i get are:
- error C2062: type 'void' unexpected
- error C2238: unexpected token(s) preceding ';'
Some suggestions?
Thanks
As described in the comment to the question I solved the issue by looking for redefinition of static_assert and commenting it.
In particular my code was using the VCGLib library wich was redefining the assert in base.h
I have done over 20 installer classes for MSI's in c#, i'm now attempting one in c++/cli. I add my project output file (which contains my installer class) to the custom actions "Install"... i over ride OnAfterInstall within the Installer Class, with no code at the moment and i get the following error (just testing):
Error 1001. Exception occurred while initializing the installation:
System.10.FileLoadException: Attempt to load an unverifiable executable with fixups (IAT
with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x30131019).
i would appreciate any guidance on this issue... I've never experienced it before. when this error happens it initiates a rollback... below is a link to the MSI LOG:
http://www.evas.com/MSILOG/MSI67b70.LOG
i would greatly appreciate some guidance,
Thank you
I've only written this type of custom actions in C++ so I don't know for sure what is the problem.
I found on MSDN the following samples, maybe it will help you:
http://msdn.microsoft.com/en-us/library/system.configuration.install.installer(v=vs.71).aspx
When ever I start a blank WPF project in Visual Basic 2010 (SP1) I get the following error:
Type
'Microsoft.VisualBasic.CompilerServices.DesignerGenerated'
is not defined.
The error comes from the auto-generated code in MainWindow.g.i.vb - when I try to add a reference to Microsoft.VisualBasic, it says I can't because it will be added at runtime.
I search of the MSDN forums found nothing, a workaround on MS Connect was to install SP1 (which I have done).
Anyone else have this prob or know how to fix it?
I have got the same Problem and fix it with this:
(I have the German-Version of VS, so i do not know the correct description of the buttons.)
Advanced Compile->Change your framework and say OK. After this change is back. Then go to clean your project(find under build) and rebuild it new.
If VS when it breaks down later, you have the problem-again. The Downloads have only change my memory-space.
I had this problem and found it was due to adding a namespace of Microsoft.MapPoint (in fact any namespace starting "Microsoft" caused it). This was a class from a Microsoft article: http://msdn.microsoft.com/en-us/library/bb259689.aspx
Renaming the namespace to something without Microsoft in it fixed the problem.
Try to install the file from Microsoft
VBWP7SetupENU.msi
See the instructions and the required files in:
http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx#BKMK_Installing
Good luck