473,664 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with xmlserializer

Hello.

I have developed an application (an office com addin).The application works
fine with no error messages on my devoping machine (that machine is not
connected to any domains).

I have problems getting this application to run on a computer where the user
is on a domain (as in a big company where you log on to the company domain).

The funny thing is that the application works fine in outlook. But not
in word or excel...

The error occurs when:
- calling the reference.cs class to create the web service proxy object.
This class inherits System.Web.Serv ices.Protocols. SoapHttpclientP rotocol.
- from outlook this object creates successfully.

The stack trace from my error is as follows:
unknown error -1

at System.IO._Erro r.WinIOError(In t32 errorCode, String maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess access,
Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIB UTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess access)
at System.IO.FileS tream.Compiler. TempFileCollect ion.EnsureTempN ameCreated()
at System.IO.FileS tream.Compiler. TempFileCollect ion.AddExtensio n(String
fileExtension, Boolean keepFile)
at System.IO.FileS tream.Compiler. TempFileCollect ion.AddExtensio n(String
fileExtension)
at
Microsoft.CShar p.CSharpCodeGen erator.System.C odeDom.Compiler .ICodeCompiler. *CompileAssembl yFromSourceBatc h(CompilerParam eters options, String[] ources)
at System.codeDom. Compiler.CodeDo mProvider.Compi leAss
emblyFromSource (CompilerP*aram eters options, String[] sources)
at System.Xml.Seri alization.TEmpA ssembly.Generat eAsse mbly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespac e, Evidence evidence,
CompilerParamet ers parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMap ping[] xmlMappings,
Type[] types, String defaultNAmespac e, String location, Evidence evidence)
at System.Xml.Seri alization.XmlSe rializer.FromMa pping s(XmlMapping[]
mappings, Type type)
at System.Web.Serv ices.Protocols. SoapClientType. .ctor (Type type)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotoc ol..ctor()

After reading several posts on the internet I found something about calling
the XmlSerializer could create problems. This because it has to compile code
and has to make a temporary file to write to. Is there anything is this lead
or are ther other things that may cause my problems?

I'll be very happy for any hints or tips you can give me
Nov 23 '06 #1
0 1136

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

Similar topics

5
5414
by: Stuart Robertson | last post by:
I am trying to find a solution that will allow me to use XmlSerializer to serialize/deserialize a collection of objects where a given object is shared between two or more other objects, and not create duplicate XML representations of the shared object, but instead use IDREFs to refer to the shared object. The XML I'm trying to produce is as follows (where "href" is an IDREF): <?xml version="1.0" encoding="utf-8"?> <MyRootClass...
1
2433
by: TheCow | last post by:
Hi Group I have homemade class, lets call it firstclass, and then another class (secondclass) which contains an ArrayList of firstclass objects. When I try to xml serialize secondclass with the arraylist in it I get an errormessage saying "The type <TheNameSpace>.<TheFirstClass> was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."
1
4309
by: Bluetears76 | last post by:
Hi I have a hirachy of classes which are Message(base), then FileMessage and ChatMessage (extended) I want to serialize the objects and when i am deserizaling i dont know if i am getting FileMessage or ChatMessage. So how to get that object and use it I have written following code for serialization public void Send(Message message) { NetworkStream netWorkStream=null;
3
4508
by: Loui Mercieca | last post by:
Hi, I have created a class, named FormField , which basically contains two fields, name and value. I have set the tag before the class and the field is set as an XmlAttribute whil the name as XmlText. In my main class, i have created an arraylist which contains a collection of this class FormField. Basically its: public void Add( string sName, string sValue )
4
2727
by: Wayne Wengert | last post by:
I am still stuck trying to create a Class to use for exporting and importing array data to/from XML. The format of the XML that I want to import/export is shown below as is the Class and the code I am using to create a sample XML file. I am trying to dimension the ArrayOfJudgeEntity to have two sets of the JudgeTableEntity values. When I run the code I get an error that the XML is not correct. I jsut can't get my head around the array...
0
1033
by: davesauny | last post by:
Hi guys, I'm having trouble with serialization especially of array elements! What I have is an array of clsUsers which have various properties as shown in the code below The XML I want to achieve is shown at the top and underneath that is the xml i have achieved.... any help you can provide would be most helpful!
1
3674
by: robear | last post by:
Hi All. I have been converting a C# to VB.NET Web Project and I have one last issue to contend with. I have included relevant code below and an explanation of the error.. Public Function LoadMenuFromFile(ByVal filePath As String) As MenuDataSet Dim cacheKey As String = filePath
0
1705
by: neoret | last post by:
Hello. I have developed an application (an office addin).The application works fine with no error messages on my devoping machine (that machine is not connected to any domains). I have problems getting this application to run on a computer where the user is on a domain (as in a big company where you log on to the company domain).
1
4945
by: depalau | last post by:
I'm experiencing issues where XmlSerialier.Deserialize throws an exception when attempting to use a MemoryStream built with an XmlWriter vs. a standalone StringReader. It is attempting to deserialize a complex object. Here is what I have: 0. Environment: Visual Studio 2005, VB.Net. I won't go into the gory details of my complex object, just suffice to say that I need to return XML instead of the object directly from the web service....
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8861
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
8778
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...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
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...
1
6187
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
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4185
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...
2
2003
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.