473,473 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

RemotingConfiguration.Configur*e Fails in SmartClient with System.ArgumentException: URI

Hello everyone,

I have an applciation that uses remoting. When the application is run
via a
local copy it works. When it is run via an HTTP address
RemotingConfiguration.Configure fails. Apparently this method can not
find
the configuration file even though other parts of my application can
use
ConfigurationSettings.AppSettings with no problem.
I have seen one other post on this topic but there really was no
solution.
Has anyone solved this problem?

This is my exception:
Additional information: .Config file
http://localhost/PFX/Client.exe.config
can not be read successfully due to exception System.ArgumentException:
URI
formats are not supported.
at System.IO.Path.GetFullPathInternal(String path)
at System.ConfigTreeParser.Parse(String fileName, String configPath)
at
System.Runtime.Remoting.Activation.RemotingXmlConf igFileParser.ParseConfigF*i

le(String filename)
at
System.Runtime.Remoting.RemotingConfigHandler.Load ConfigurationFromXmlFile(*S

tring filename).

Dec 4 '06 #1
2 1787
Hi,

The RemotingConfiguration.Configure method does not support URI formats for
the filename parameter, just like the exception states.

One workaround may be to use ClickOnce deployment instead.

--
Dave Sexton

"Lambuz" <la*****@gmail.comwrote in message
news:11*********************@n67g2000cwd.googlegro ups.com...
Hello everyone,

I have an applciation that uses remoting. When the application is run
via a
local copy it works. When it is run via an HTTP address
RemotingConfiguration.Configure fails. Apparently this method can not
find
the configuration file even though other parts of my application can
use
ConfigurationSettings.AppSettings with no problem.
I have seen one other post on this topic but there really was no
solution.
Has anyone solved this problem?

This is my exception:
Additional information: .Config file
http://localhost/PFX/Client.exe.config
can not be read successfully due to exception System.ArgumentException:
URI
formats are not supported.
at System.IO.Path.GetFullPathInternal(String path)
at System.ConfigTreeParser.Parse(String fileName, String configPath)
at
System.Runtime.Remoting.Activation.RemotingXmlConf igFileParser.ParseConfigF*i

le(String filename)
at
System.Runtime.Remoting.RemotingConfigHandler.Load ConfigurationFromXmlFile(*S

tring filename).
Dec 5 '06 #2
A god workaround is available at the followinf url:

http://bloggingabout.net/blogs/rick/.../16/10787.aspx.

bye bye

Dec 5 '06 #3

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

Similar topics

0
by: Simon Holderness | last post by:
Can you tell me if it is possible to use the PropertyGrid control in a SmartClient deployed through IE, without modifying the security policy. The error I get is ...
0
by: Jay Allard | last post by:
Hello I posted this in the vb.net group on the 2/25/2004, but didn't get any response. Here's attempt 2. Does anyone know of a more appropriate place to post this? One new piece of...
0
by: Per Bergland | last post by:
After many woes, I finally managed to get a stack dump of my System Service (written in C#) that insists on crashing when launched at system boot time (see below on how to get this dump - I...
14
by: Jasonkimberson | last post by:
Currently I am having a problem creating a windows service that monitors a mapped drive for events (using the FileSystemEventHandler). The service complies but fails to start: "The XMLWatcher...
1
by: big A | last post by:
I am writing an ASP.net application using the web.config file and RemotingConfiguration.Configure to define the remoting configuration. This technique works fine for the initial page load; however...
18
by: Atara | last post by:
In my apllication I use the following code: '-- My Code: Public Shared Function strDate2Date(ByVal strDate As String) As System.DateTime Dim isOk As Boolean = False If (strDate Is Nothing)...
2
by: Lambuz | last post by:
Hello everyone, I have an applciation that uses remoting. When the application is run via a local copy it works. When it is run via an HTTP address RemotingConfiguration.Configure fails....
6
by: =?Utf-8?B?QkJN?= | last post by:
Hi, I have an app that is crashing due to a System.ArgumentException. At this point it's just a simple app to test some basic object values. The main app is a Windows App that looks like...
4
by: Mike | last post by:
Greetings, I have an aspx page where on it is a link that calls my smartclient (a windows form) that opens up. When the user is done in the form, he or she hits a button that saves data and closes...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.