.NET Questions and Solutions

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘exception error’

BUG: You may receive a “COMException (0×80010105): The server threw an exception” error message in Visual Studio .NET 2003

Symptoms
In Microsoft Visual Studio .NET 2003, if you automate your application to run out-of-process, you may receive a COM exception error message that is similar to the following from the Devenv.exe out-of-processcomponent:

Unhandled Exception: System.ApplicationException: Failed —> System.Runtime.Int
eropServices.COMException (0×80010105): The server threw an exception.at EnvDTE._Solution.Open(String FileName)at DTEAutomation.Class1.Main(String[] args) in c:\vs7play\enterprisetemplate\dteautomation\class1.cs:line 45
— End of inner exception stack trace —at DTEAutomation.Class1.Main(String[] args) in c:\vs7play\enterprisetemplate\dteautomation\class1.cs:line 80
Resolution
This problem occurs because a cached pointer to the selected data is not valid.Then,the Enterprise Template Project is opened.

BUG: PInvoke method with System.GUID return type raises exception error

Symptoms
When you run Platform Invocation Services (PInvoke) with System.GUID as the return type, the process is unsuccessful and you receive the following exception error message:

An unhandled exception of type ‘System.Runtime.InteropServices.MarshalDirectiveException’ occurred in TestPInvoke.exe Additional information: Method’s type signature is not PInvoke compatible.
Resolution
Microsoft has confirmed that this is a problem in Visual Studio .NET.

BUG: Microsoft Date Time Picker Control Causes Exception Error

Symptoms
If you have a Microsoft Date and Time ActiveX control instantiated within aToolBar and the focus is set to the Date and Time control, some of the ALTkey combinations cause an exception error, and Visual FoxPro shuts down.
Resolution
Microsoft has confirmed this to be a bug in the Microsoft products listedat the beginning of this article.

“The Server Threw an Exception” Error Message When User Logs in Through Site Builder

Symptoms
When a user starts the Site Builder and clicks the Login button, the user may receive the following error message:

The server threw an exception
Resolution
If the user who is trying to log on does not have access to the root of the domain (that is, if the user does not have Read access for Users and Groups), Content Management Server (CMS) does not impersonate the System account user for CMS for this group membership enumeration, so the user cannot enumerate the group membership and receives an exception error message from the domain.
Note that this is not a problem when Active Directory Service (ADS) Lightweight Directory Access Protocol (LDAP) authentication is enabled. Impersonation with the System account user works correctly when ADS LDAP authentication is enabled.