Using a 32-bit Delphi DLL in ASP.NET?

First off, it works great in Visual Studio 2010 when I test.

But I tried 4 of the following publications in IIS7 on 64-bit Windows 7, but still not working:

1.Visual Studio 2010 Publish β†’ Build β†’ General β†’ Platform Target: Any processor

1-A: IIS7: ASP.Net v4.0, enable 32-bit application = False

Error:
Server Error in '/TestDll' Application.
--------------------------------------------------------------------------------

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

1-B: IIS7: ASP.Net v4.0, enable 32-bit application = True

It doesn’t even load, β€œInternet Explorer cannot display the web page”, and the application log received an application error.

  • Visual Studio 2010 Publication -> Build -> General -> Platform: x86

2-A: IIS7: ASP.Net v4.0, Enable 32-bit application = False

Could not load file or assembly 'WebApplicationTest' or one of its dependencies. An attempt was made to load a program with an incorrect format. 

: , "WebApplicationTest" .

=== Pre-bind state information ===
LOG: User = IIS APPPOOL\ASP.NET v4.0
LOG: DisplayName = WebApplicationTest
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: WebApplicationTest | Domain ID: 7
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/inetpub/wwwroot/TestDll/
LOG: Initial PrivatePath = C:\inetpub\wwwroot\TestDll\bin
Calling assembly : (Unknown).

2-B: IIS7: ASP.Net v4.0, 32- = True

.

hmm.. , , , IIS7 ASP.NET 32- ... , , ...

...

0
1

, , 32 32- . , 64- .

, DLL 32 , .

- FreePascal 64- DLL. , - , , FreePascal COM.

- Delphi altogther , 64 , . Visual Studio.

+2

All Articles