Failure on Instance an c# component

dietmarruefdietmarruef Member Posts: 48
Hi all!

I made a .net Wrapper class to control an SCP component with Navision. First it works fine but now i want to register the class on the needed servers.
(Windows 2003 Server) That´s not so fine.
The registration of the class works but every time i want to intstance the class, i get the following error.

"Could not create an instance of the OLE control or automation server .....
Check that the OLE Control or Automation Server is correctly installed and registred"

On my local machine it works correct. I searched the before and no of the named solutions does work. I also made a c# command line application to instance the class and it works without errors. The needed reference for the component is also proper registred. What did i wrong? Why it doesn´t work`s?

Thanks,

Kind Regards
Dietmar Ruef

Comments

  • ara3nara3n Member Posts: 9,257
    Do you have .NET framework installed on the server? make sure you have the correct version of .NET. As you know there is .NET 1.0, 1.1, and 2.0
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Actually it happened to me as well - I tried out Henrik's .NET control example and registered it with regasm.exe but just could not find where it is from Navision.
  • fufikkfufikk Member Posts: 104
    Try regasm with
    /codebase
    
    and
    /tlb
    
    switches - that's the way VS.NET registers components (I read that somewhere in google) - it helped me :)
Sign In or Register to comment.