List Info

Thread: Failed to establish connection




Failed to establish connection
country flaguser name
United States
2007-05-09 07:54:22

Hi Friends,

I am having a problem with AX 4.0. I have
installed AX 4.0 successfully on windows 2003 server. But i can not
start the axapta because of an error "failed to established connection"

What are the possible solutions? what can i do?
Please help me.

With Kind Regards,

Onur KIYIK.

__._,_.___
.

__,_._,___
Assembly Microsoft.Dynamics.BusinessConnectorNet. dll
country flaguser name
Belgium
2007-05-09 15:59:29

Hi All,

I'm using the SQL-2005. I've created a new dll (C#) that uses the Microsoft.Dynamics.BusinessConnectorNet.dll but when I try to assembly my dll, the sql gives me an error:

CREATE ASSEMBLY for assembly 'ClassFundoFixo' failed because assembly 'microsoft.dynamics.businessconnectornet' is malformed or not a pure .NET assembly.

Unverifiable PE Header/native stub.

Because it, I've already tried to use the DllImport statement on my dll to import only the methods that I need to use on BusinessConnectorNet.dll, but I can't use this dll because my dll doesn't recognize the method Logon and gives me the error message:

System.EntryPointNotFoundException: Unable to find an entry point named 'Logon' in DLL 'Microsoft.Dynamics.BusinessConnectorNet.dll'.

Below, my class:

using System;

using System.Collections.Generic;

using System.Text;

using System.Data;

using Microsoft.SqlServer.Server;

using System.Data.SqlTypes;

using System.Runtime.InteropServices;

namespace ClassFundoFixo

{

public class FundoFixo

{

[DllImport("Microsoft.Dynamics.BusinessConnectorNet.dll", CharSet = CharSet.Auto)]

public static extern void Logon(string company, string language,

string objectServer, string configuration);

[DllImport("Microsoft.Dynamics.BusinessConnectorNet.dll", EntryPoint = "Logoff", CharSet=CharSet.Unicode, ExactSpelling=true,

CallingConvention=CallingConvention.StdCall)]

public static extern bool Logoff();

[DllImport("Microsoft.Dynamics.BusinessConnectorNet.dll", EntryPoint = "CallStaticClassMethod")]

public static extern object CallStaticClassMethod(

string className, string methodName,

params object[] paramList);

public void Run(string IdIntranet, string Modulo)

{

Logon(null, null, null, null);

CallStaticClassMethod("GsInsereDiario_FundoFixo", "Run", IdIntranet, Modulo);

Logoff();

}

}

}

I need that sql assembly or my class uses the Statement DllImport. Does anyone have another idea or know why the classes doesn't work?

Thanks in advance,

Daniel Selles | Dynamics Ax Developer | Systems Advisers Group Brazil

Tel: +55 11 3345 5001 Fax: +55 11 5103 0255
Mob: +55 16 8117 7954 Web: www.systemsadvisers.com/brazil

Systems Advisers Group: We provide global solutions and services around Microsoft Dynamics AX, Microsoft Dynamics GP and SunSystems. As one of the fastest growing Microsoft Dynamics partners globally we are currently 1 of only3 global "power vendors" to Microsoft for Microsoft Dynamics services. With experience in global implementations in over 47 countries, the group has Centres of Excellence in Asia Pac., Europe and Latin America for onshore-offshore capabilities to suit the needs of your organisation.

Offices in: Belgium | Brazil | France | Germany | India | The Netherlands | UAE | United Kingdom | USA

For more information visit us at www.systemsadvisers.com <http://www.systemsadvisers.com/> or write info%40systemsadvisers.com">infosystemsadvisers.com <mailto: info%40systemsadvisers.com">infosystemsadvisers.com>

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )