VB Compiler Error in VS2005 Team Dev

Visual Studio .Net

    Next

  • 1. Trying to debug under admin privileges logged on as restricted
    Hello, I'm trying to debug .net apps and services under a restricted account, however VS.NET 2003 is logged on as someone with admin privileges. If we log on with that account, everything works, but logged on as a restricted user and then do a "runas" admin on visual studio problems ocurr. We've discovered that Internet Explorer starts and is visible in the Task Manager, but is effectively invisible to the user which tends to point to it being non-interactive. The admin user is part of the appropriate groups (debugger users etc), we've tried using the dbgfix.dll, the 'MakeMeAdmin' script, iexplore just does not want to show. Any ideas?
  • 2. Configuration Manager and References
    Hi, I have a VS.NET 2005 solution that is composed of: - Project 1 is a data access project that is an ADO.NET wrapper; - Project 2 contains some custom web controls - Project 3 is a web site that uses Project 1 and 2 Question 1: When I go to Web Site's Property Pages, the reference for Project1 has the type BIN, but for the Project2 is of type Project. I don't think I made any special settigns for either of the projects, so why are the reference types different and what does that signifies? Question 2: When I open the Configuration Manager and I choose Release as the active solution configuration, both Project 1 and Project 2 configurations change to Release, but the only option available for the Web Site is Debug. Why can't I choose a Release configuration for the web site? Thanks
  • 3. Edit and Continue problem
    Hi I have had instances where changes made while in Edit and Continue mode are not always saved correctly i.e. a bug is fixed and the code tests ok but on a later compile that change may not be there. The setup is XP with VS.2005 VB.Net. Has anyone come across this problem ? Thanks

VB Compiler Error in VS2005 Team Dev

Postby SlQ » Wed, 20 Sep 2006 15:19:01 GMT

Hi,
I am debugging a project that contains ADO.NET datasets.  When I hit a 
breakpoint, and press F11 to step into the process, I consistently get a VB 
compiler error whenever my debugging takes me into the dataset designer code 
file, where the <System.Diagnostics.De{*filter*}NonUserCode()> attribute lives.  
My understanding was that this attribute would cause the de{*filter*} to step 
through the code, as per these remarks:

"Designer provided types and members that are not part of the code 
specifically created by the user can complicate the debugging experience. 
This attribute suppresses the display of these adjunct types and members in 
the de{*filter*} window and automatically steps through, rather than into, 
designer provided code. When the de{*filter*} encounters this attribute when 
stepping through user code, the user experience is to not see the designer 
provided code and to step to the next user-supplied code statement."

This does not seem to be the case for me.  The error is so bad, that I get 
prompted to send error reports to Microsoft and have to use task manager to 
kill the IDE.  Then I have to restart my machine!  Is there a way to avoid 
this behavior?  Thanks.
-- 
John

RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Wed, 20 Sep 2006 18:25:02 GMT

Hi John,

Can you provide the detailed error information regarding your problem? A 
screen shoot would be helpful for us to understand the scenario. With the 
error message, I can perform some search in our database and find out if 
this is a known issue. Thanks.

Additionally, what type project do you encounter this error, Winform or 
Asp.net project? Can this VS2005 crash occur in a new sample project? If 
you have the definite steps to reproduce this problem or even a simple 
reproduce project, please feel free to provide the steps or the project to 
me. 

I look forward to hearing from you. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Fri, 22 Sep 2006 18:16:40 GMT

Hi John,

Have you reviewed my reply? How about your problem now? If you have any 
concern or need any help, please feel free to feedback. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Fri, 22 Sep 2006 21:00:56 GMT

Hi John,

Sorry for the striking reply, I almost missed your email in the mailbox. I 
will perform some research for this issue and get back to you ASAP. 

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Sat, 23 Sep 2006 18:22:11 GMT

Hi Henin,

After performing some search, I find several reported issues regaridng this 
error. It seems that it is caused by VB background compiler thread 
exception crash. Please refer to the 2 records below:

 http://www.**--****.com/ 
98056cb-7e44-4ee0-9da8-7776106a0726
 http://www.**--****.com/ 
c9c9185-e305-426d-be7c-1f0e01bec62e

The first one is caused by VSS, while the second one really a bug which 
using a lot of parameters for attribute's constructor. You may check to 
ensure if your problem is the same as these 2 issues.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: VB Compiler Error in VS2005 Team Dev

Postby SlQ » Sun, 24 Sep 2006 02:10:02 GMT

Neither of these describes my issue.  I will try to put together a simple 
demo to reproduce using NW database this weekend.
-- 
John






RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Tue, 26 Sep 2006 12:06:19 GMT

Hi Henin,

Thanks for your effect of creating a sample demo project.

Actually, I can find many records in our internal database for following 
keywords:
"Visual Basic compiler" encountered problem "internal compiler error" 
recover HC0000005

However, no one in these records is specific with F11 single stepping or 
De{*filter*}NonUserCode. So without a reproducing project and just with the 
shootscreen and current information, it is hard for us to troubleshoot the 
root cause. Thanks for your understanding.

I will wait for your demo project to investigation. Thanks for your patient.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: VB Compiler Error in VS2005 Team Dev

Postby SlQ » Wed, 27 Sep 2006 06:14:02 GMT

Hi Jeff,
Please check your mailbox for a sample project that I sent to you this 
morning.
-- 
John






RE: VB Compiler Error in VS2005 Team Dev

Postby stcheng » Thu, 28 Sep 2006 13:10:09 GMT

Hello John,

Thanks for your reply. Jeffery has been absent today and I'll help monitor 
this issue and inform Jeffery as soon as he've come back. Meanwhile, if you 
have any further finding or comments, please feel free to post here also.

Thanks for your understanding.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Fri, 29 Sep 2006 19:14:19 GMT

i John,

Sorry for letting you wait, I am sick at home for 2 days :-(

Yes, I have received your sample project in mailbox. Below is my analysis
process regarding your project:
1. After unzipping your project, I openned it and tried to debug it by
pressing F5 in VB2005 IDE. Then I got an unhandled exception in the
"Me.Adapter.Fill(dataTable)" in "GetData()" method of DataSet1.Designer.vb
file. Also, the VB2005 IDE will pop up the "Microsoft (R) Visual Basic
Compiler has encountered a problem and needs to close. We are sorry for
the inconvenience." crash dialog.

By using "Process Explorer", I can see that this dialog(Microsoft
Application Error Reporting process) is actually started by VB2005 IDE
exception handler, see the call stack below:

msvb7.dll!CreateDWProcess+0xea
msvb7.dll!WatsonFilter+0x4d
msvb7.dll!DoFilterException+0x24
msvb7.dll!CompilerProject::GetCurrentActiveStatementPosition+0x78
msvb7.dll!_EH4_CallFilterFunc+0x12
msvb7.dll!_except_handler4+0x8e
ntdll.dll!ExecuteHandler2+0x26
ntdll.dll!ExecuteHandler+0x24
ntdll.dll!KiUserExceptionDispatcher+0xe

In the details information from the Microsoft Application Error Reporting
dialog, I can find that the unexpected exception is 0xC0000005, which is
Access Violation exception.

Then, I tried to load windbg to debug this Access Violation in VB2005 IDE.
I got the following full call stack(sorry the call stack is really too
long):

(2c4.714): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000000 ebx=0000000c ecx=0ad2e500 edx=001ba046 esi=12cc0064
edi=09bf248c
eip=598afb2b esp=0012d6b0 ebp=00000274 iopl=0 nv up ei pl nz na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00010202
msvb7!ENCBuilder::GetCurrentActiveStatementPosition+0x53:
598afb2b 8b8040020000 mov eax,dword ptr [eax+240h]
ds:0023:00000240=????????
*** WARNING: Unable to verify checksum for
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\4fe66c7733005e4fbfe3
7c4f11e3cd76\mscorlib.ni.dll
0:000> kL 50
ChildEBP RetAddr
0012d6dc 598afa93 msvb7!ENCBuilder::GetCurrentActiveStatementPosition+0x53
0012d71c 5d7335d5
msvb7!CompilerProject::GetCurrentActiveStatementPosition+0x84
0012d734 5d743560
msvbprj!CVbBldCompiler::GetCurrentActiveStatementPosition+0x44
0012d744 54cf6eb8
msvbprj!CVsProjHierarchy::GetCurrentActiveStatementPosition+0x42
0012d7b4 54bb4791 encmgr!CEncMgr::CurrentPositionFromOriginal+0x14c
0012d84c 54c27e8e vsdebug!CTextPos::SetTextPositionFromDocumentContext+0x156
0012d878 79f21268 vsdebug!CDe{*filter*}::ShowSource+0x5c
0012d988 014ea7ca mscorwks!CLRToCOMWorker+0x196
0012da04 13f46dc4 CLRStub[StubLinkStub]@14ea7ca
0012da40 13f4494d
Microsoft_VSDesigner!Microsoft.VSDesigner.ExceptionAssistant.CodeEditorCoope
rator.OpenDocumentWindow(Microsoft.VSDesigner.ExceptionAssistant.ExceptionIn
fo)+0x34
0012da90 13f4451b
Microsoft_VSDesigner!Microsoft.VSDesigner.ExceptionAssistant.De{*filter*}Monitor
.NewAssistantWindow(Microsoft.VSDesigner.ExceptionAssistant.ExceptionInfo,
Boolean)+0x145
0012dac0 51a45504
Microsoft_VSDesigner!Microsoft.VSDesigner.ExceptionAssistant.De{*filter*}Monitor
.OnEnterBreakMode(EnvDTE.dbgEventReason, EnvDTE.dbgExecutionAction
ByRef)+0xab
0012dac0 79e88f63
EnvDTE_ni!EnvDTE._dispDe{*filter*}Events_SinkHelper.OnEnterBreakMode(En

RE: VB Compiler Error in VS2005 Team Dev

Postby SlQ » Sat, 30 Sep 2006 15:41:02 GMT

eff, I feel bad to have put you through all of this. It seems that one of
the projects in my solution had the advance compiler option of enable
optimizations checked in the debug mode. Having unchecked that box, the
issue seems to be resolved. Hope you feel better soon.
--
John


""Jeffrey Tan[MSFT]"" wrote:


RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Tue, 03 Oct 2006 14:24:18 GMT

Hi John,

Not at all, it's my job. 

Thank you for feedback the root cause for the problem. If you need further 
help, please feel free to post, I will work with you. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: VB Compiler Error in VS2005 Team Dev

Postby Tm91dmFuZGE » Mon, 11 Dec 2006 16:21:02 GMT

Hi John.
I am experiencing the same problem too. But in my case, not only one of 
project will raised error while debugging but all projects do. Before, i 
assumed that might be caused by a project. so i debugeg some of my finished 
and release projects. And what?? It raised all the time when you stop, break 
and event when you start debugging your project. So i try to build very very 
simple project called "Hello World", (you must know it, don't you?). And then 
i was trying to stop the debugging, it raised once again.
Reinstalling Visual Studio and .Net Framework did not effected anything.

I guess VS developers should concern about this. Its not impossible, that 
someone get fired from his job just because of this thing happened when they 
are on deadline.


-- 
Best Regards,
Nouvanda






RE: VB Compiler Error in VS2005 Team Dev

Postby jetan » Tue, 12 Dec 2006 18:27:39 GMT

Hi Nouvanda,

I have added a reply to you in your new post regarding this issue, please 
check it there. I will follow up with you. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to 
 http://www.**--****.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
 http://www.**--****.com/ 
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Similar Threads:

1.Setup VS2005 Team Edition for software testers SCN 1303 error

When I setup VS2005 Team Edition for software testers simple chinese version 
on windows XP SP2 system , I get a error 1303 : "You have No privilege to 
access dir c:\inetpub\wwwroot\, Please make sure you are the administrator, 
or notes your administrator" ,BUT I AM SURE I USE THE ADMINISTRATOR TO SETUP 
VS2005!

Who can help me ? Thanks !

2.Compiler Error Message: The compiler failed with error code -1073741819

Hey,
I have a Windows 2000 Advanced Server SP4 with Framework 1.1 installed.
I have an ASPNet website that every now and then I get the following
error:
"Compiler Error Message: The compiler failed with error code
-1073741819"
The only resolution for this error is kill the aspnet_wp process on the
server and deleting the ASPNet cache folder
(%windir%\Microsoft.Net\Framework\V1.14322\Temporary ASPNet Files).
After a while, the error is recieved once again but on different aspx
files...
Is it a problem in the Framework IIS or the Web app and what causes
this problem???
Thanks ahead

--Ram

3.Possible VS2003 c# compiler bug: error CS0584: Internal Compiler Error: stage 'COMPILE' symbol ''

Hi everybody!

It's the second time it happens to me... Working with typed DataSets
and doing copy & paste, I compile and get weirds messages like these:

An internal error has occurred in the compiler. To work around this
problem, try simplifying or changing the program near the locations
listed below. Locations at the top of the list are closer to the point
at which the internal error occurred.

error CS0584: Internal Compiler Error: stage 'BIND' symbol
'WindowsApplication1.Form1.Form1_Load(object, System.EventArgs)'
error CS0584: Internal Compiler Error: stage 'COMPILE' symbol
'WindowsApplication1.Form1'
error CS0584: Internal Compiler Error: stage 'COMPILE' symbol
'WindowsApplication1'
error CS0584: Internal Compiler Error: stage 'COMPILE' symbol ''
error CS0586: Internal Compiler Error: stage 'COMPILE'

Once you get one of these you must exit VS2003, because the compiler
does not work anymore...

Here is how to reproduce it:

Create a Solution, with 2 projects, one client app and one class
library.

In the class library proyect add a typed Dataset, and a class with a
method like this:

public MyDataset FakeFunction (MyDataset.ClassificationDataTable table)

{
  return new MyDataset();
}

In the client app, call the method in this way (here's where the error
is):

MyDataset ds2 = MyClass.FakeFunction(ds.ClassificationDataTable);

That is you miss it doing copy-paste, you should have written:

MyDataset ds2 = MyClass.FakeFunction(ds.Classification);

And you got the evil messages, very descriptive, aren't they?

The curious thing about it is that if you place the class with the
method and the Dataset in the client app proyect, the error message is
accourate, so the error only happens when referencing another project:

error CS0572: 'ClassificationDataTable': cannot reference a type
through an expression; try
'ClassLibrary1.MyDataset.ClassificationDataTable' instead

4.fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:

> 
> You still probably wouldn't be able to get hold of a fix if there is one
> without contacting Microsoft - such is the bizarre nature of the system. If
> you need it fixing now, you might as well get in touch with them now.
> 

But be prepared for them to ask you for a business case indicating how this 
bug affects your business before they even consider providing a fix at all :o(

I'm not sour, but they still haven't fixed the MSXML.dll for WinCE -and of 
course now they certainly won't.

5.fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)

Hello

I'm using the latest version of Visual Studio 2003 version 7.1.3088, .net framework 1.1.4322 and I've some problem compiling a project, it give me the error

c:\build\main\.....\methodeInc.h(36) : fatal error C1001: INTERNAL COMPILER ERRO
        (compiler file 'msc1.cpp', line 2701)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more informatio

I was able to reproduce the behaviour with this very little example, hope it helps you to fix the compiler

class 

	int i
public
	B(int f) : i(f) {}
}

typedef B TB

class TB;             <-------- that's the line that cause the compiler erro

Best Regards

- mn

6. Sharing usercontrols in a large dev team.

7. team dev

8. Team System Dev/Test Chats, Wed & Thurs



Return to Visual Studio .Net

 

Who is online

Users browsing this forum: No registered users and 17 guest