I get an unhandled exception, when I try to execute
XmlDocument.Loa d(...) in my C# Windows application:
--------------------------------------------
"Common Language Runtime Debugging Services"
Process id... thread id...
Click OK to terminate ...
Click Cancel to Debug ...
--------------------------------------------
Running environment:
Windows 2000 Terminal Server, .NET Framework 1.1 with all latest
service packs.
But strangest thing is - if I run the same programm as an
administrator,e verything runs well, but if user is power user or User
- I get this exception. Even more - I cannot catch this exception in
my programm by using catch(Exception )...
This is not a file permission issue, because user has full access to
the loadable XML file.
Any ideas? 3 1514
Uldis V. wrote: I get an unhandled exception, when I try to execute XmlDocument.Loa d(...) in my C# Windows application: -------------------------------------------- "Common Language Runtime Debugging Services" Process id... thread id... Click OK to terminate ... Click Cancel to Debug ... --------------------------------------------
Running environment: Windows 2000 Terminal Server, .NET Framework 1.1 with all latest service packs.
But strangest thing is - if I run the same programm as an administrator,e verything runs well, but if user is power user or User - I get this exception. Even more - I cannot catch this exception in my programm by using catch(Exception )... This is not a file permission issue, because user has full access to the loadable XML file.
Any ideas?
So, what is that exception?
--
Oleg Tkachenko [XML MVP, MCP] http://blog.tkachenko.com
> So, what is that exception?
Exactly what I wrote between lines.
Here is a screen clip picture:
---- http://www.nelss.lv/~uldisv/xmlLoad_error.JPG
----
But it does not tell anything about hte problem. In the event viewer
this text is also written.
And worst thing is, that it is not possible to catch it with .NET
catch(Exception ) :-(
Uldis V.
Nelss IS Development Team
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Forget about this, and do not respond. :-)
That was my mistake, I tried to use debug version exe, and there vere
some pathes hardcoded.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: binnyva |
last post by:
Hi everyone.
I just made a JavaScript program to read a RSS feeds and display it in
a HTML file. The script - Jasfer or JAvaScript FEed Reader - is
available at http://www.geocities.com/binnyva/code/javascript/jasfer/
The problem that I have is that this script works only in IE. The XML
reading part goes fine - but I don't know how to access the DOM
sturcture in Firefox. The used code is given below.
|
by: Gismo |
last post by:
I have got file raport.rld which is an XML file generated by MS Reporting
Services.
The problem is:
in this file are tags from two different namespaces
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefini
tion"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"
|
by: Whugster |
last post by:
I have this really frustrating problem when calling XmlDocument.Load(string
filename). Whenever I call this method in a web application in my Windows XP
development PC, I get the following error:
Specified argument was out of the range of valid values. Parameter name: The
specified value must be greater than 0.
Here's the stack trace:
-------------------------
|
by: Graham Pengelly |
last post by:
Hi
I am trying to transform on System.Xml.XmlDocument into another using
XslTransform without writing the object out to a file. I am guessing it
should work something like this...
public XmlDocument TransformXmlDoc(XmlDocument docToTransform, string
xsltFilePath)
{
//load the xslt
|
by: Foo |
last post by:
Hi
I have a problem, while retrieving xml data through network. I use
Load(Stream) method for this, but this doesn't work:
NetworkStream ns = client.GetStream();
StreamReader sreader = new StreamReader(ns);
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(sreader);
Everything goes right while retrieving data to string and then loading to
| |
by: Rob Panosh |
last post by:
Hello,
I am trying to create a xmlDocument from as dataset. My code is listed
below. All seems to go well until
xmlDocument.Load(CType(ms, System.IO.Stream)) ... I keep getting the
following error "The Root Element is Missing" ... any help would be
appreciated.
Thanks,
Rob Panosh
|
by: Gustaf |
last post by:
I have a class that contains a certain kind of XML document. The input
file is *not* an XmlDocument, but when loaded, I want it to work like
the XmlDocument class, like:
MyDocument doc = new MyDocument();
doc.Load("input.txt"); // doc is now an XmlDocument
// Query or modify the XmlDocument as usual
doc.Save("output.xml"); // doc saved using XmlDocument.Save();
That is, the input file is not XML, and the Load() method is obviously
|
by: Viral |
last post by:
Hello All,
I have the following XML document : (for ease of understanding i am just
posting a part of it)
Base XML
------------
<?xml version="1.0"?>
<ROOT>
<REPLY>DRAWLIST_INFO_REQUEST</REPLY>
|
by: lamxing |
last post by:
Dear all,
I've spent a long time to try to get the xmldocument.load method
to handle UTF-8 characters, but no luck. Every time it loads a
document contains european characters (such as the one below, output
from google map API), it always said invalid character at position
229, which I believe is the "ß" character.
Can anyone point me to the right direction of how to load such
documents using the xmldocument.load() method, or...
|
by: JustinLee |
last post by:
Hi,
I have a small app that saves and loads data in XML format. Basically I have 2 methods. They each load data from a different XML documents. They both load data the same way. Everything works great except if I call method 1, then method 2, then method 1 again. When I call method 1 the second time, and the XmlDocument is loaded, it is missing a whole level of nodes. I put a break point on the XmlDocument right after the xmlDoc.Load() is...
|
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...
| |
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...
|
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...
|
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,...
|
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...
|
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();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |