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)


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.

Bootstrap – A Perfect framework for web Development


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


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.

Error: HTTP Error 500.22 – Internal Server Error


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.

HTTP Error 404.2 – Not Found


II7 error:
Error Summary
HTTP Error 404.2 – Not Found
The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.

Follow the Below Steps:
1.       Double click the Server Name “xxxx”, then double click “ISAPI and CGI Restrictions
2.  Then select the version and select Allow from the right panel.














Now its Cleared.


How to add a New Eclipse Project to an SVN Repository


Adding a Project to SVN from Eclipse

Follow the below steps: 
1) Right-click the project and select Team -> Share Project.
2) Select SVN as the repository type.







3) Select the repository this project should be stored in.









4) Select the repository directory where the project should be stored, and click Finish.








5) Now the /trunk/SimpleProject directory is created in the repository, and the project is associated with this repository location in Eclipse. You can now commit (upload) your changes by right-clicking and selecting Team -> Commit.
















When you’re done, the project will be linked with the repository

ASP.NET v2.0 to be set to ‘Allow’ in the list of IIS Web Server Extensions.


When trying to install any web services you will receive the following error.

“ASP.Net must be set to be allowed in Internet Information Services (IIS)  web service extension”
In any case IIS in installed after the .Net Framework installation, this type of error occurs.

To Fix this error follow the below steps :

1. Go to command prompt and then change the directory to        

“C:\Windows\Microsoft.NET\Framework\v2.0.50727″ 

2. Then run  the command “aspnet_regiis.exe -i” as shown below.

3. After this command completes successfully open IIS Manager and go to web service extensions and mark the “ASP .NET v2.0.50727″ as Alloweb if it isnt already.