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
436 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 250 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now