Home All Groups Group Topic Archive Search About

RemotingConfiguration.Configur=ADe_Fails_in_SmartClient_with_System.ArgumentException:_URI

Author
4 Dec 2006 2:25 PM
Lambuz
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.RemotingXmlConfigFileParser.ParseConfigF­i

le(String filename)


at
System.Runtime.Remoting.RemotingConfigHandler.LoadConfigurationFromXmlFile(­S

tring filename).

Author
5 Dec 2006 3:19 AM
Dave Sexton
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" <lamb***@gmail.com> wrote in message
news:1165242345.397855.43600@n67g2000cwd.googlegroups.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.RemotingXmlConfigFileParser.ParseConfigF­i

le(String filename)


at
System.Runtime.Remoting.RemotingConfigHandler.LoadConfigurationFromXmlFile(­S

tring filename).
Author
5 Dec 2006 2:42 PM
Lambuz
A god workaround is available at the followinf url:

http://bloggingabout.net/blogs/rick/archive/2006/01/16/10787.aspx.

bye bye

AddThis Social Bookmark Button