473,394 Members | 1,739 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,394 software developers and data experts.

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 1590
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...
0
by: Sidney Zhang | last post by:
Hi: I got a very strange problem while using my dotNet SmartClient exe in IE. (One Click Deployment.) What we did are 1) a C# dotNet exe, very small, just for testing. around 492K. 2) put the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.