473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SerializationException in Web Service

Hello,

I am creating a web service with .NET 2.0 and Visual Studio 2005.
I want to enable the following class as a web service:
[WebService(Namespace = "http://webservice.docuware.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{

[WebMethod]
public string GetStoreDate(string fcGUID, long dwdocid)
{
string date = <do something in an external application and
return a string>;

return date;
}
}
When I now test the GetStoreDate Web Service it actually does
everything right. The debugger shows the correct value for the date
variable. However after leaving the method I get the following
exception:

System.Runtime.Serialization.SerializationExceptio n was unhandled
Message="Type is not resolved for member
'DocuWare.Common.Logging.LoggingContextData,DocuWa re.Common,
Version=5.1.0.265, Culture=neutral, PublicKeyToken=879da714589ba9ea'."
Source="WebDev.WebHost"
StackTrace:
at Microsoft.VisualStudio.WebHost.Host.ProcessRequest (Connection
conn)
at Microsoft.VisualStudio.WebHost.Server.OnSocketAcce pt(Object
acceptedSocket)
at
System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at
System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object
state)
The requested DLL "DocuWare.Common" is referenced in the Web Project
and I also use it in the class:
using DocuWare.Common.Logging;

I am actually not using any classes or methods from the DLL in my
webservice. However it is possible that the some method down the line
from <do something in an external application and return a string> uses
a method of the DLL.

Why am I getting this exception? How can I avoid it?

Thanks for your help.

billa

Mar 7 '06 #1
0 1305

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Frank Jones | last post by:
When manually running resgen.exe from the command prompt (Visual Studio .NET 2003 command prompt) I get the following error: error: Invalid ResX input. error: Specific exception:...
0
by: Philip Reed | last post by:
I'm trying to write a preferences-handling infrastructure that serializes prefs to XML. Basically I want to read in a common "default" prefs set, then read in the user's prefs and override the...
0
by: Skip | last post by:
Hi, I get the following exception thrown when I try to run my code: "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional...
3
by: Really stuck | last post by:
Hello, I'm getting the following error now with my aplication, but only when I run it ocally on my machine: System.Runtime.Serialization.SerializationException: Cannot find member name...
0
by: Adam P | last post by:
Hi, When I run my website under IIS, it works fine. When I attempt to run it as a "file system" website under vs2005 RC1 I get the following error: Error Message: Type is not resolved for...
4
by: mekim | last post by:
I am getting an unhandled exception on a webservice as listed below and my quesiton is How do I trap it to find where it's coming from since it seems to be outside of the my code. Thx in...
0
by: Simon Hart | last post by:
Hi, I have the following code which is miss-behaving at one site: public class HMRHost { private int _pid;
0
by: billa | last post by:
Hello, I am creating a web service with .NET 2.0 and Visual Studio 2005. I want to enable the following class as a web service: public class Service : System.Web.Services.WebService {
2
by: Andy | last post by:
Hi All, I am calling a Java web service which is throwing some exception which the catch block is trapping successuly. I can see the "javax.ejb.EJBException:" in ex.message. but after this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.