Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting this error message when throwing an Exception in a Web Service - How do get more info to trace/fix this error

Posted on 2008-06-19
7
Medium Priority
?
447 Views
Last Modified: 2008-06-22
Language = C#
Medium - Web Service with  try/catch block

catch block consists of:
  catch
  {
     throw;
  }

When exception is thrown again I get:
Type is not resolved for member 'CIS.Core.Security.SecurityPrincipal,CIS.Core.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=2100caacdcc05444'.  

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.Serialization.SerializationException: Type is not resolved for member 'CIS.Core.Security.SecurityPrincipal,CIS.Core.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=2100caacdcc05444'.

Source Error:  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Web Service is using the SoapHeader to Authenticate the UID/PWD of the calling end user.

Just don't know how to track this error, if I can not walk through it, I don't see how I can fix it without being very, very lucky.

Thanks in advanced,

Marv

0
Comment
Question by:Marvin_Rowe
  • 3
  • 2
7 Comments
 
LVL 18

Accepted Solution

by:
Richard Lee earned 1000 total points
ID: 21824542
If the webservice is part of your solution then you can walk through. Place a breakpoint just before the call to the webservice web method is made and trace into with F11.

Also if the webservice is in the solution, set the project properties to use IIS / Custom server. (Property pages: Custom server & Base Url)

Update your web references (you may have to delete and recreate).
0
 

Author Comment

by:Marvin_Rowe
ID: 21824653
webservice is in the solution in fact is test mode, it's the start-up project.  The throw that is causing the error is within the w/s.  I have a breakpoint at the throw.  Pressing F11 while in the w/s at the throw get this error
0
 

Author Comment

by:Marvin_Rowe
ID: 21824697
Correction: webservice is in the solution, in fact, in test mode, it's the start-up project.
0
 

Author Comment

by:Marvin_Rowe
ID: 21824835
Just found out that CIS is an intra company DLL - sorry

Closing question.
0
 
LVL 18

Expert Comment

by:Richard Lee
ID: 21825460
If I assisted in solving the problem then some points should be awarded. I assume that debugging the webservice provided conclusively that the problem originated elsewhere. I advised on the possibility of debugging the webservice.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question