.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :.NET Framework
 
0 down vote favorite

Hello,

 

I have converted a VB 6 project to VB.NET 2008 One of the forms throws the following error in the design mode. Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) here is the call stack:

at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid) at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid) at System.Windows.Forms.AxHost.CreateInstance() at System.Windows.Forms.AxHost.GetOcxCreate() at System.Windows.Forms.AxHost.set_Site(ISite value) at System.ComponentModel.Container.Add(IComponent component, String name) at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name) at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToConta


View Complete Post


More Related Resource Links

Class not registered (exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

  

I have Visual Studio 2005 (8.0.50727.42) running with SQL Server 2005 (9.00.342.00) on Windows 2003 R2 Ent. Ed. sp2,

when creating an Integration Services Project and try to add a Data Source, choose Native Ole DB/Oracle Provider for Ole DB, click Data Links i get the error-message, saw othe posts with an office 2003 Web Components solution but that did not work for me, need help.

 


Can't browse Cube and Explore data. Class not registered (Exception from HRESULT: 0x80040154 (REGDB

  

Hello,

I'm using MS SQL Server 2008 and office 2010. I can't browse cube and can't explore data in Visual Studio, BIDS.

 I'm getting this massage:

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) (Microsoft Visual Studio)

------------------------------
Program Location:

   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  

"Exception from HRESULT: 0x800AC472"

  

Am Exporting Data in to Excel File,meanwhile if i open any other Excel file than the excel File on which am exporting data gets opened up Automatically having name Book1.How should i stop these excel file not to get open.In the Error log i get an error message showing " Exception from HRESULT: 0x800AC472" . Need help on these.Thanks in Advance.


"Exception from HRESULT 0x800A5077"

  
Hi, I am using  VS2005 and Crystal Report 8.5. Yesterday I was working with report. It was working nice. Showing the report as per recordselectionformula. After some time it was not working. When I tried to show the report it is showing "Exception from HRESULT 0x800A5077 " What could be the reason and how can i fix it. Please help me.

Path too long (Exception from HRESULT: 0x80010135)

  
Hi I have recieve this error any idea how to solve it Path too long (Exception from HRESULT: 0x80010135) ThanksMomo

Deployment bug: Class not registered

  
I deployed my web app from my development machine (WinXP Pro) to the production server (Windows 2003).  Everything works except for a COM library I am referencing from my business object.  The references in my solution are: Web Project --->  Business Layer Project (DLL)  ---> COM Library I suspect part of my problem is I didn't properly deploy, I just grabbed everything under \wwwroot\MyWebApp and copied it to the server.  I'm going to be researching proper deployment strategies, but in the meantime maybe someone could give me suggestions.  In my error log, the exception source is "Interop.AccpacCOMAPI", and the message is "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" and the stack trace is as follows: at AccpacCOMAPI.AccpacSessionClass.Init(String ObjectHandle, String AppID, String ProgramName, String AppVersion) at WSTimesheets.AccPacWrapper.GetAccPacEmployeeList(Guid AppUserID) in C:\Documents and Settings\Joe\My Documents\Visual Studio 2005\Projects\WellServe\BusLogic\WSTimesheets\AccPacWrapper.cs:line 239 Here is a snippet of the code:1 // Open a session to AccPac 2 bool sessionOpened = false; 3 bool linkOpened = false; 4 AccpacCOMAPI.AccpacSession accpacSession = null; 5 AccpacCOMAPI.AccpacDBLink dbLinkRead = null; 6

Deactivate WPF commands globally (class registered)

  
Hello everyone, I need to deactivate the default WPF commands in a globally way, i'm talking about those that are registered as "class commands". Here's the reason : We are upgrading an old application to WPF, that application uses some key shortcuts that overlap with default wpf commands. I know that that should be a problem as commands attached to an instance have more "priority" than those that are attached to the "type" or "class". The problem is, we cannot attach the input binding (notacommand to disable the shortcut) to every instance. It will be, either overkill (modify all the styles) or almost impossible (controls instantiated by third party controls).   So, is there a way to disable wpf "class attached" commands in a globally way ? Thank you.

Exception from HRESULT: 0x81070215

  
When I try to access the Site Collection Features link in the Settings page of one of my SharePoint site collections I get the following error: Exception from HRESULT: 0x81070215 at Microsoft.SharePoint.Library.SPRequestInternalClass.LocalizeXml(String bstrXmlPath, String bstrFeatureDefinitionId, String bstrFeatureRoot, UInt32 lcid, String bstrDefaultResourceToken) at Microsoft.SharePoint.Library.SPRequest.LocalizeXml(String bstrXmlPath, String bstrFeatureDefinitionId, String bstrFeatureRoot, UInt32 lcid, String bstrDefaultResourceToken) I have no access to the Site Collection Features because of this except through the STSADM.  Is there a fix or workaround? 

Getting Error " Error occurred in deployment step 'Add Solution': Exception from HRESULT: 0x810702

  
i'm getting the following error when deploying my sharepoint project i've created 3 site templates by adding according to this article http://www.sharepointbits.com/blog/sharepoint-2010-custom-site-templates.html but when i deployed my project i got the following Error occurred in deployment step 'Add Solution': Exception from HRESULT: 0x8107026E

SSRS 2008: Failed to unload app domain DefaultDomain. Exception from HRESULT: 0x80131015

  
I have a SQL Server Reporting Services 2008 giving this error in Event Viewer.Failed to unload app domain DefaultDomain. The following exception occurred: Error while unloading appdomain. (Exception from HRESULT: 0x80131015).

SSIS 2008 generates Class not registered

  
I am getting the following error in SQL Server 2008 R2 (build 10.50.1734) x86 platform BI Development Studio (BIDS) 9.0.30729.4462 with .NET Framework 3.5 SP1 in a Integration Services project Data Source View table when I attempt to Explore Data: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) This happens on a Windows 7 Professional workstation x86 platform, (but has not been observed on Windows XP). The error occurs on Data Source Views bound to a Data Source connected to a SQL Server 2005 SP3 (build 9.0.4053) and SQL Server 2008 R2 server (I'm sure it's not a server issue, but a workstation issue). I have successfully unregistered and re-registered DTS.DLL and DTSComm.DLL in the registry, with no resolution to the issue. Does anyone have any ideas? Thanks.Greg

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

  
Hi, When I deploy the asp.net application on 64 bit OS mechine I am getting the following error. The same application is running properly in 32 bit mechine. Error : The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stack

Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

  

We are current users of WSS 3.0 SP1 (MS SQL Server 2005 w/SQL Server Configuration Manager & SQL Server Management Studio Express) and are having issues with the following error occurring quite frequently when we visit pages on our SharePoint site.

 

Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

 

Our research keeps brining up that the log files are getting large and are not being cleared. We are doing a Full Backup of our SharePoint Farm with BackupExec 11d so we are not understanding how to fix this. Does anyone have any suggestions...

 

Thanks in advance.


(Exception from HRESULT: 0x80072014)

  

Hi, i have one user and i try change value emial in AD.


My code is here:

        Dim userID = "domain\user"
        Dim password = "password"
        Dim dirEntry1 As New DirectoryEntry("LDAP://DC=domain,DC=pl", userID, password, AuthenticationTypes.Secure)
        Dim mySearcher1 As DirectorySearcher = New DirectorySearcher(dirEntry1)

        mySearcher1.Filter = String.Format("(CN=usertochange)")
        mySearcher1.PropertiesToLoad.Add("cn")
        mySearcher1.PropertiesToLoad.Add("mail")



        Dim resEnt1 As SearchResult
        resEnt1 = mySearcher.FindOne()

        If resEnt1 Is Nothing Then
            MsgBox("User not found")
        Else

            dirEntry1.Properties("mail").Value = "test@abc.com"
            dirEntry1.CommitChanges()


            MsgBox("Found: " + resEnt1.GetDirectoryEntry().Properties("cn").Value + " :: " + resEnt1.GetDirectoryEntry().Properties("mail").Value)

        End If

In line dirEntry1.CommitChanges() i have error: (Exception from HRESULT: 0x80072014).
Please help.

dirEntry1.Com

Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

  

hi,

While adding users in to sharepoint group, i am getting the error msg as "Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) " .what is this means, how ro resolve this? Please guide me.


System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSD

  

Error:

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

 at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)

 

Resolution Steps (there could be various causes for this error but this solution worked for me):

- Run Administrative Tools > Sharepoint Central Administration

- Go to Application Management > Sharepoint Site Management > Site Collection Administrations

- Check if your name (the person configuring sharepoint) is primary or secondary administration

 

 

Regards

Daman

 


Is there an exception class to signify internal error?

  

Hi,

I'm just wondering if there is an exception class in the .NET Framework intended to signify that an internal error has occured. If there isn't, I'll simply define one, but if there is, I would like to use it.

There are some situations where code is reachable, at least as judged by the compiler, but in fact should never be reached. Consider the following example:

static public int GetElementIndex(XmlElement e)
{
  XmlNode parent = e.ParentNode;
  if (parent is XmlDocument) return 1;

  int n = parent.ChildNodes.Count;
  int idx = 0;
  foreach (XmlNode child in parent.ChildNodes)
  {
    if (child is XmlElement && child.Name == e.Name)
    {
      ++idx;
      if (child == e) return idx;
    }
  }

  // If this line is ever reached, there is a bug somewhere!
  throw 
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend