Re: Dllimport method calling failed in web form
- From: jialge@xxxxxxxxxxxxxxxxxxxx ("Jialiang Ge [MSFT]")
- Date: Thu, 19 Jun 2008 03:42:44 GMT
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.
=================================================
.
- References:
- Re: Dllimport method calling failed in web form
- From: Jialiang Ge [MSFT]
- Re: Dllimport method calling failed in web form
- From: Billy Zhang
- Re: Dllimport method calling failed in web form
- From: "Jialiang Ge [MSFT]"
- Re: Dllimport method calling failed in web form
- Prev by Date: Re: Icon graphics in gridview drop-down field?
- Next by Date: Troubleshooting Personal Website Starter Kit
- Previous by thread: Re: Dllimport method calling failed in web form
- Next by thread: Re: Dllimport method calling failed in web form
- Index(es):
Relevant Pages
|