473,396 Members | 1,918 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.

Error deserialising a file

Hi,

I'm getting an error trying to deserialise an XML file via a web service.

The same code and file work perfectly on my local machine the error only
occurs on an ISPs shared web server. I don't even get an error message but a
page not found error.

I've attached the code I am usign to deserialise the file. This is contained
in a dll which the web service calls.

I have tried reading the file as straight text and this works fine. I am
sure that my web service can see the required dll since I have used it to
give me the filename.

Is there some setting in IIS or some difference in the environment on the
ISPs web server that could cause this. THey are running windows 2003 with IIS
6.0 and .net framework 1.1.

Many thanks in anticipation.

Regards,

Steve

Dim serializer As New XmlSerializer(GetType(clsWSGBootSettings))
Dim fstFileStream As FileStream
Dim objMMSSettings As clsWSGBootSettings
'Deserialise the file to create the main web site object
serializer = New XmlSerializer(GetType(clsWSGBootSettings))
fstFileStream = New FileStream(Me.SerialiseFileName,
FileMode.Open)
'Ensure the object is updated
'Force the full model to be created
objMMSSettings = CType(serializer.Deserialize(fstFileStream),
clsWSGBootSettings)
If Not fstFileStream Is Nothing Then
fstFileStream.Close()
fstFileStream = Nothing
End If
Return objMMSSettings
Nov 19 '05 #1
0 1030

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

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
2
by: John F Dutcher | last post by:
Can anyone comment on why the code shown in the Python error is in some way incorrect...or is there a problem with Python on my hoster's site ?? The highlites don't seem to show here...but line...
0
by: Charles Law | last post by:
I have an xml file that I created by serializing a collection that I have created. It contains attributes and elements that correspond to my classes. I want to use the UnknownNode,...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
2
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
by: =?Utf-8?B?SWFpbg==?= | last post by:
I've created some c# classes from Xsds. The classes have namespace attributes in the XmlRootAttributes. Accordingly, they will NOT deserialize with the XmlSerializer unless the same namespace...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
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?
0
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,...
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,...
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
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...
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.