473,396 Members | 1,832 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,396 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 1306

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.