473,811 Members | 2,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SerializationEx ception 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(Name space = "http://webservice.docu ware.com/")]
[WebServiceBindi ng(ConformsTo = WsiProfiles.Bas icProfile1_1)]
public class Service : System.Web.Serv ices.WebService
{

[WebMethod]
public string GetStoreDate(st ring 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.S erializationExc eption was unhandled
Message="Type is not resolved for member
'DocuWare.Commo n.Logging.Loggi ngContextData,D ocuWare.Common,
Version=5.1.0.2 65, Culture=neutral , PublicKeyToken= 879da714589ba9e a'."
Source="WebDev. WebHost"
StackTrace:
at Microsoft.Visua lStudio.WebHost .Host.ProcessRe quest(Connectio n
conn)
at Microsoft.Visua lStudio.WebHost .Server.OnSocke tAccept(Object
acceptedSocket)
at
System.Threadin g._ThreadPoolWa itCallback.Wait Callback_Contex t(Object
state)
at System.Threadin g.ExecutionCont ext.Run(Executi onContext
executionContex t, ContextCallback callback, Object state)
at
System.Threadin g._ThreadPoolWa itCallback.Perf ormWaitCallback (Object
state)
The requested DLL "DocuWare.Commo n" 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 1339

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

Similar topics

1
3900
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: SerializationException Message: Invalid ResX input. ---> SerializationException: Cannot find the assembly Common, Version=1.0.1905.1173, Culture=neutral, PublicKeyToken=null. 2 error(s). The file within the project it is erroring on is a custom control.
0
2092
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 defaults as appropriate. I'm trying to do them both using the SoapFormatter to serialize. But when I try to read in the user's prefs after reading the defaults, both from similar Soap files, I get this exception: ----...
0
1350
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 information: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed."
3
1794
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 System.Data.SqlClient.SqlError. If I push the same build to a production server it runs without issue. This began happening suddenly and was working without issue locally on my machine. I've made no configuration changes to the machine except install windows...
0
955
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 member 'Adeptive.Common.Security.AdeptivePrincipal,Adeptive.Common.Data, Version=1.0.2095.16903, Culture=neutral, PublicKeyToken=null'. Page Error Occurred: /ClientWeb/RecordTime.aspx ExceptionType: System.Runtime.Serialization.SerializationException
4
4885
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 advance Mekim An unhandled exception of type
0
1242
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
311
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
375
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 function i am getting the following exception in IDE window like An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in Unknown Module.
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10648
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10135
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9205
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.