Click here to Skip to main content
11,583,865 members (61,893 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WebService
Hi,

I am creating web service where I have added managed dll, which interns uses unmanaged static library. When I make a call from client till managed dll flow goes well, after that, when flow goes to unmanaged function, following execption occurs,

An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in WebDev.WebHost40.dll
 
Additional information: Exception has been thrown by the target of an invocation.

Can you please suggest how to get rid of this problem.

Thnaks in advance
Posted 17-Jun-12 22:08pm
Comments
db7uk at 18-Jun-12 4:16am
   
Is the unmanaged dll serializable? Are you using WCF?
Pranit Kothari at 18-Jun-12 4:36am
   
No, it is not serializable and I am using ASP.Net webservice.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 440
1 Sergey Alexandrovich Kryukov 310
2 virusstorm 268
3 Richard Deeming 220
4 Dave Kreskowiak 200
0 OriginalGriff 1,623
1 Sergey Alexandrovich Kryukov 1,135
2 Abhinav S 701
3 Dave Kreskowiak 627
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 18 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100