The type initializer for System.Uri threw an exception.

Hi,

I've been having some problem with this piece of code:

XElement xEl =XElement.Load(@"d:\somefile.xml");

i've been getting some creepy errorsIndifferent

you can see a screenshot herehttp://www.narvenblog.com/tralha/code_error.jpg

and the error in wherer

http://www.narvenblog.com/tralha/error.html

do u kown why?

[1110 byte] By [PedroLuz] at [2008-2-1]
# 1

I am not able to reproduce the problem.

Does it help if you use

XElement.Load(@"file:///D:/somefile.xml")

instead?

MartinHonnen at 2007-9-26 > top of Msdn Tech,Visual Studio Orcas,XML in Orcas...
# 2

that doesn work either Sad

i dont think the problem it's the code... but something with the xlinq lib or some configuration

but thanks

PedroLuz at 2007-9-26 > top of Msdn Tech,Visual Studio Orcas,XML in Orcas...

Visual Studio Orcas

Site Classified