cancel
Showing results for 
Search instead for 
Did you mean: 

RPC Server Unavailable

Former Member
0 Kudos

Hi i am having this weird problem.

I keep getting the error RPC Server Unavailable when i tried conecting to the company. It can retrieve the company name into the listbox without any problem. Only connecting it gives me this error.

This only happens to the database in the live server in Windows2003 Server. The patch level for the server is 6.7 and the SDK Sapbobscom i am using is also 6.7 so this is not the version problem. Is there any problem with the server itself? Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Melvin,

This is a very commented issue in the forum. Search about the -2147024891 error.

Have a look at OSS 833798 note.

Regards,

Ibai Peñ

Former Member
0 Kudos

No my error is not about upgrading from windows 2003 to w2k sp1....

my error number is -2147023174

it only gets this error when i am trying to connect to the company using DI-API

Thanks

Former Member
0 Kudos

Can anyone help me? This is kinda urgent.

What does this message means and is there anything i could do to check if the rpc is running? like start the service or check the service is there?

Also most of the time, this error message means the program has the problem or the server?

Thanks

Former Member
0 Kudos

Hi Melvin,

Which is the client SO?

If XP, here are some issues.

1- Make sure the Windows XP firewall is disabled.

2- Create a user to access to the server, which has admin rights in the server (just to see this is the problem.)

3- 6.7 is not the patch level (6.70.189.0 is for patch 30), ensure they are the same.

For the server:

1- If is SP1, it will have disabled the remote COM rights.

2- Have a look at the SLIC table. Is the License Server IP right?

As you see, not an easy issue.

Regards,

Ibai Peñ

Former Member
0 Kudos

is my codings correct? For the connection to the B1


        m_company = New SAPbobsCOM.Company

        ' Specify server, database, user and logon to the Business One company
        With m_company
            .UseTrusted = ATrusted
            .Server = AServer
            .DbUserName = DBuser.Text
            .DbPassword = DBpassword.Text
            .CompanyDB = ADatabase
            .UserName = AUser
            .Password = APwd

            lResult = .Connect()

            If lResult = 0 Then 'check the Result
                logonToB1 = True
            Else
                logonToB1 = False
            End If
        End With

Just wanna confirm it. Thanks

Former Member
0 Kudos

What´s the value of ATrusted?

If true, you are using Windows user to logon to the Company instead of AUser and APwd.

Regards,

Ibai Peñ