when using ACCPAC COM API debug mode is working, Live environment does not work

Last post 05-08-2008 9:48 PM by Thomas Sun – MSFT. 3 replies.

Sort Posts:

  • when using ACCPAC COM API debug mode is working, Live environment does not work

    05-06-2008, 12:01 PM
    • Loading...
    • ycarlos
    • Joined on 05-06-2008, 3:52 PM
    • Posts 2

    Hi,

    does anyone know how to solve this problem ?

    http://forums.asp.net/p/1046003/1467497.aspx#1467497


    In my company we have ACCPAC server and WEB server.
    the problem is when I debug my program (web application using vb.net) is running fine; but when I compile and put it in to the WEB server my program crash.

    On my project I use AccpacCOMAPI as reference.

    I use simple program to test this problem, here is the code.

     

    Dim mysession As AccpacSession

    mysession = New AccpacSession
    lbltest.Text += "mysession = New AccpacSession<br>" mysession.Init("", "AP", "AP2000", "52A")
    lbltest.Text += "mysession.Init(,AP , AP2000, 52A)<br>" mysession.Open(tbUname.Text.ToUpper, tbPass.Text.ToUpper, "SLIDAT", Now, 0, "")
    lbltest.Text += "mysession.Open(" & tbUname.Text.ToUpper & ", " & tbPass.Text.ToUpper & ", SLIDAT, Now, 0, )<br>" mysession.Close() lbltest.Text += "mysession.Close()<br>"
     




    here is the error that I got when i try to open session:


    Retrieving the COM class factory for component with CLSID {B3B13604-A675-11D2-9B95-00104B71EB3F} failed due to the following error: 80040154.


    I tried to search everywhere but no luck.



    Carlos Yuwono
     
  • Re: when using ACCPAC COM API debug mode is working, Live environment does not work

    05-08-2008, 4:23 AM

    Hi,

    The code runs fine on your development machine means it is fine.

    This error usually is caused by the permissions problem. You can try to grant more permission to the accounts that runs your application on server.

     

    I hope this helps.

     

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: when using ACCPAC COM API debug mode is working, Live environment does not work

    05-08-2008, 2:48 PM
    • Loading...
    • ycarlos
    • Joined on 05-06-2008, 3:52 PM
    • Posts 2

     yah when I said fine its mean working fine Big Smile

    but then not when i put it to local test machine.

    Could you please tell me little more detail about how to do it ?

    I tried to change te execute permission = Scrip Only, scripts and executables or none but again no luck :(

     

     

    Thanks

  • Re: when using ACCPAC COM API debug mode is working, Live environment does not work

    05-08-2008, 9:48 PM

    Hi,

    Thanks for your response.

    You can grant more permission to the account that runs your application on test machine. You also can try to create new account with more permission for your application. If you do so, it is better to create an application pool with this new account to run your application. For example, see http://msdn.microsoft.com/en-us/library/ms998297.aspx

     

    I hope this helps. 

     

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (4 items)