cancel
Showing results for 
Search instead for 
Did you mean: 

SAP >net Connector 64 Bit

Former Member
0 Kudos

Getting problem with SAP.net connector2.0 in 64 bit windows server.

ERROR:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Pls help me

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Para que funcione SAP Connector en un ambiente de 64 bits seguir los siguientes pasos:

1.- Dirigirse a las propiedades del proyecto que esten desarrollando (usumimos que ya hemos generado la conexión a SAP con .NET 2003 con Framework 1.1)

2.- Luego en la sección "Build" de nuestro proyecto ubicamos la opción "Platform target" y escogemos "x86"

3.- Asumimos que contamos con las siguientes dll traidas desde la carpeta c:WindowsSystem32 de nuestro ambiente de 32bits: librfc32.dll, msvcp71.dll, msvcr71.dll, SAP.Connector.dll y SAP.Conector.Rfc.dll

4.- Copiar el archivo librfc32.dll hacia la siguiente ruta C:WINDOWSsystem

5.- Copiar el archivo msvcp71.dll hacia la siguiente ruta C:WINDOWSsystem32

6.- Copiar los archivos msvcp71.dll y msvcr71.dll hacia la siguiente ruta C:WINDOWSSysWOW64

7.- Arrastrar los archivos SAP.Connector.dll y SAP.Conector.Rfc.dll hacia la siguiente ruta C:WINDOWSassembly

Si fuera necesario descarguense antes el "Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)" desde la pagina de microsoft, este archivo contiene dlls necesarias para un ambiente donde no se tiene instalado VS 2008.

Con eso me funcionó sin ningun problema.

Compartanlo!!!

Former Member
0 Kudos

I tried to implement this but get the following error: What am I doing wrong?

Msg 10314, Level 16, State 11, Line 1

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65937. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:

System.IO.FileLoadException: Could not load file or assembly 'sbfrclrstoredprocedures, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

System.IO.FileLoadException:

at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

at System.Reflection.Assembly.Load(String assemblyString)

Former Member
0 Kudos

hello,

I found the note 1368756. I don´t know if it is the same problem but the error message is mentioned here:

"Running SAPExtractorCommandLine.exe in a 64-bit environment resulted in the following error message: "ERROR: SAPeProcessor.RfcReadTable: : An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)". To fix this issue, SAPExtractorCommandLine.exe was compiled using x86 platform."

Also this topics in SDN could help you solving the problem:

Very much to read but then you should be able to solve the problem.

Best regards

Tobias

Former Member
0 Kudos

Hi thanks for your quick reply,

I can describe my issue in details

*Development*

I have created a service in .net 3.5 which will connect to SAP using SAP.Net connector Proxy class (Developed in .net 2003).

*Deployment*

Now above created service need to be hosted in 64 bit server, I hosted the service where in I am getting the error as below

u201CAn attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)u201D

I have done all .dll copying as mentioned in this link /community [original link is broken]

Note:** Deployment server is not installed with 1.1 framework

Still not working

Edited by: Lijin U.p. on Nov 5, 2009 3:01 PM