Calling C# DLL from ASP on Compact Framework (Windows CE)

空扰寡人 提交于 2019-12-11 05:49:11

问题


I am writing an ASP application on Windows CE that will need to call business logic that exists in a .NET DLL (C#).

It appears as though although the Compact Framework allows us to call native code from managed code, the CF doesn't allow us to call managed code from native code. - But, I'm not 100% sure on this.

Has anyone had success using COM Interop to call methods from a managed dll from ASP on CF? If so, can you point me to where I can learn how to do it?

If not, given that I must use ASP (on CF) and I'm stuck with the business logic in a managed assembly, how else can I get data out of the assembly into the ASP application?


回答1:


I was just notified of a blog post by John Spaith (WinCE Team Member) -

...the Compact Framework does not allow you to call managed code from native, so you can't have your ISAPI/ASP page call out into managed. (You can do managed code->native calls, but not the other way around.)

Here's the link to Spaith's post



来源:https://stackoverflow.com/questions/5071496/calling-c-sharp-dll-from-asp-on-compact-framework-windows-ce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!