Hello Pete,
Thanks for the quick response. We have also received your email. I have
also consulted our CE Developerment team to see their advice on it.
After reviewing your reply carefully, I think the problem is:
You developed a managed C# component and have data access layer in it. Then
you use InterOp and RegAsm.exe to register the C# component as a normal COM
component. Now you want to use this COM component in asp but failed, right?
If there is any misunderstandings, please feel free to point out.
If so, I think you met a limitation here. The .NET Compact Framework
supports a subset of the interoperability of the desktop .NET Framework. In
particular, you can make function calls into Win32 DLLs, but you cannot
call COM interfaces (a feature known as COM Interop).
.NET Compact Framework interoperability only supports calls into Win32
libraries. It does not support calls from Win32 into the .NET Compact
Framework. That is why you can't use InterOp here.
So for the time being, the best way here is to stay in unmanaged world.
That means to call database accessing APIs directly in a COM component.
Then register the COM component and use it in asp page. For how to develop
data access part in unmanaged world, you can refer to some samples. The
SQLCE 2.0 product ships with two eVC samples. Take a look at NorthwindOleDb
in the SQL CE sample installation directory.
There is another solution which would be a hybrid between the two ¨C use
ASP pages as we don¡¯t have ASP.NET in CF, call to a ¡®shim¡¯ COM object
using an interface which pass request / response to and from the managed
code by some technologys like socket or
Microsoft.WindowsCE.Forms.MessageWindow class. Its not pretty, but it¡¯s
the best on offer right now.
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ?
www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ¨C
www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.