retrieving the com class factory for component with clsid 80040154 Retrieving the COM class factory for component with CLSID {…} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

December 28, 2016

PROBLEM:

When you run the .net Code in X64 Environment you will get the following error message.

” Failed –Retrieving the COM class factory for component with CLSID ….”

E.g. in Retrieving the COM class factory for component with CLSID {94773112-72E8-11D0-A42E-00A024DED613} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

WORKAROUND:

The possible workaround is modify your project’s platform from ‘Any CPU’ to ‘X86’ (in Project’s Properties, Build/Platform’s Target)

ROOTCAUSE

The VSS Interop is a managed assembly using 32-bit Framework and the dll contains a 32-bit COM object. If you run this COM dll in 64 bit environment, you will get the error message.

SOLUTION

  1. Open IIS
  2. Select  the application pool used by your website
  3. Click Advanced setting
  4. enable 32-bit Application to TRUE which was set to False by default.
  5. Restart IIS
  6. Now its resolved. 🙂

settings

 

 

 

 

 

 

 

 

 

Thanks for reading this article!! please leave your comments and suggestion about this article.

Advertisements

Bootstrap – A Perfect framework for web Development

December 28, 2016

In the my Recent projects , i am came across various framework for .Net based web Application. But quite interested and flexible framework is Bootstrap

Bootstrap – a new start-up for more creativity in web developments.

Bootstrap is a powerful front-end framework for faster and easier web development. It includes HTML and CSS based design templates for common user interface components.

Also gives more ability  to create responsive layout.

why we have to opt  Bootstrap:

  • Responsive layout
  • easy to use
  • Compatible with most of the browsers.
  • Open Source –  completely free to download and use

To Download GetBootstrap here

Bootstrap comes with CSS , javascript in the  form of jquery

Structure:

structure

 

http://getbootstrap.com/javascript/

My first Example, i always used to copy the code from the examples given and give a try.

code

boot modalThanks for reading this article!! please leave your comments and suggestion about this article.

 

 


How to connect Microsoft Dynamics GP using API methods

December 28, 2016

The following are the types to integrate Microsoft Dynamics GP  from other Applications

1. Component Object Model (COM) API

Using the COM dll ,  develop Visual studio application for the integration.


2. eConnect

  eConnect is a collection of tools, components, and interfaces that allow applications to pro grammatically interact with Microsoft Dynamics GP. eConnect interfaces allow external applications to integrate with Microsoft Dynamics GP. The external applications can perform actions like creating, updating, retrieving, and deleting back office documents and transactions. 

An eConnect integration also reduces costs by reducing data re-entry

3. Integration Manager

 Integration manager  is  an integration tool used to convert and transfer data other application in to Microsoft Dynamics GP.(Trial Version – 90 days)

4. Dynamics GP Web Services

Using web services able to convert and transfer data to other application(vice versa).Also through Web services management console user data access can be restricted.


Behind web services , eConnect API is used to integrate with Dynamics GP.

Thanks for reading this article!! please leave your comments and suggestion about this article.


How to Show information / warnings in SharePoint

March 2, 2016

In SharePoint , Status bar is used to display information / warnings  using Javascript.This script is added at the client side.

The status script functions are listed out in the SP.UI.Status class. in SP.js which is added in master page by default.

The SP.UI.Status class has 6 functions.
           1. addStatus   – used to add the status bar information
           2. appendStatus  – used to append the information
           3. removeAllStatus – remove all  status
           4. removeStatus – remove status
           5. setStatusPriColor – used to set color for the status bar information
           6. updateStatus – update  / replage the status information

    So simply follow the steps the to add the information / warning in SharePoint  site.

     1. Add a Script Editor / Content editor web part in the page



    2. Edit snippet and add the below code to show the information.


    window.onload = function(){
    var Status;
    Status = SP.UI.Status.addStatus(“Information : “, “ We sincerely apologize for the inconvenience.Our site is currently undergoing maintenance and upgrades and will return return shortly.“, true);
      SP.UI.Status.setStatusPriColor(Status, “yellow”);

      }



    3. Save the page and refresh.

    Now the page looks as below












    Woo hoo , Now its very simple to show the notification for alerts/ warnings in SharePoint site.

    For more info , refer https://goo.gl/45xmbX


    retrieving the com class factory for component with clsid 80040154 Retrieving the COM class factory for component with CLSID {…} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

    October 5, 2015

    PROBLEM:
    When you run the .net Code in X64 Environment you will get the following error message.
    ” Failed –Retrieving the COM class factory for component with CLSID ….”
    E.g. in Retrieving the COM class factory for component with CLSID {94773112-72E8-11D0-A42E-00A024DED613} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
    WORKAROUND:
    The possible workaround is modify your project’s platform from ‘Any CPU’ to ‘X86’ (in Project’s Properties, Build/Platform’s Target)
    ROOTCAUSE
    The VSS Interop is a managed assembly using 32-bit Framework and the dll contains a 32-bit COM object. If you run this COM dll in 64 bit environment, you will get the error message.
    SOLUTION
    1. Open IIS
    2. Select  the application pool used by your website
    3. Click Advanced setting
    4. enable 32-bit Application to TRUE which was set to False by default.
    5. Restart IIS 
    6. Now its resolved. 🙂 



    Bootstrap – A Perfect framework for web Development

    December 1, 2014

    In the my Recent projects , i am came across various framework for .Net based web Application. But quite interested and flexible framework is Bootstrap

    Bootstrap – a new start-up for more creativity in web developments.

    Bootstrap is a powerful front-end framework for faster and easier web development. It includes HTML and CSS based design templates for common user interface components.
    Also gives more ability  to create responsive layout.
    why we have to opt  Bootstrap:
    • Responsive layout
    • easy to use
    • Compatible with most of the browsers.
    • Open Source –  completely free to download and use
    To Download GetBootstrap here

    Bootstrap comes with CSS , javascript in the  form of jquery 

    Structure:
    bootstrap/
    ├── css/
    ├── bootstrap.css
    ├── bootstrap.min.css
    ├── js/
    ├── bootstrap.js
    ├── bootstrap.min.js
    └── img/
    ├── glyphicons-halflings.png
    └── glyphicons-halflings-white.png

    http://getbootstrap.com/javascript/


    My  first Example,  i always used to copy the code from the examples given and give a try.

    <div class="modal fade">
    <div class="modal-dialog">
    <div class="modal-content">
    <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×<span class="sr-only">Close
    <h4 class="modal-title">Modal title

    <div class="modal-body">

    One fine body



    <div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close
    <button type="button" class="btn btn-primary">Save changes




    This is just a note to convey that Bootstrap is a Perfect framework for web Development projects.



    Error: HTTP Error 500.22 – Internal Server Error

    March 1, 2013

    This error indicates that your application is not coded to run in Integrated Pipeline Mode.

    To resolve this issue you must either:

    • Update your code to run in Integrated Pipeline Mode.
    <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    </system.webServer>
    • Open iis and select the application pool for your Site and change managed pipeline mode in to integrated to Classic.





    Now its Cleared.