Re: Dllimport method calling failed in web form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Billy,

Sorry for my misunderstanding at the very beginning. I assumed that you
meant the DLL could not be called by ASP.NET when it was said "the method
doesn't work and returns false". I'm sorry, Billy, that I should have
clarified my understanding before giving the suggestions.

If the function returns true when run in a winform, but returns false
inside a ASP.NET page, it's likely to be "impersonation" issue. Does the
DLL function needs to run under a certain user account? If yes, the KB
article:

How to implement impersonation in an ASP.NET application
http://support.microsoft.com/kb/306158

may help you with it. It demonstrates several choices of impersonation with
easy-to-follow example codes. Please have a try and let me know whether it
works for you.

Regards,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

.



Relevant Pages

  • Re: NTLM/Kerberous Authentication base64 Client/Server
    ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... here the detailed error message? ... the debugging of the .dll ...
    (microsoft.public.platformsdk.security)
  • RE: C++ exe and library search paths
    ... After we configured the delay-load of the DLL, ... In the dliNotePreLoadLibrary notification implementation, ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: user permissions
    ... that is also an option for impersonation. ... point out since TRUSTWORTHY is at database level, ... Microsoft Online Community Support ... Please feel free to let my manager ...
    (microsoft.public.sqlserver.security)
  • RE: Cannot create linked server from SQL 2005 to SQL 2000
    ... When you use impersonation for linked server, ... Microsoft Online Community Support ... Please feel free to let my manager ...
    (microsoft.public.sqlserver.security)
  • Re: AJAX Toolkit
    ... I think the DLL referred by George is the one in the folder: ... If you don't see the bin folder, ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.framework.aspnet)