By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,595 Members | 1,294 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,595 IT Pros & Developers. It's quick & easy.

System.ArgumentException: Illegal characters in path

P: n/a
Hi!

I have a strange error in a console application that is hosted by IIS 5.0
and invokes a web service hosted on the same machine.

A request form the web comes in and it is dispatched to a service class
which uses a helper class to create an instance of the automatically
generated webservice proxy class. The instance creation fails on this row:

_10._0._40._252.ETISXTeeService srv = new
ETISXtee._10._0._40._252.ETISXTeeService();

with this exception:

System.ArgumentException: Illegal characters in path

the full stack trace:

Error: System.ArgumentException: Illegal characters in path.
at
System.Security.Permissions.FileIOPermission.HasIl legalCharacters(String[]
str)
at
System.Security.Permissions.FileIOPermission.AddPa thList(FileIOPermissionAccess
access, AccessControlActions control, String[] pathListOrig, Boolean
checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at
System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess
access, String path)
at System.AppDomainSetup.VerifyDir(String dir, Boolean normalize)
at System.AppDomainSetup.get_ConfigurationFile()
at System.Configuration.ClientConfigPaths..ctor(Strin g exePath, Boolean
includeUserConfig)
at System.Configuration.ClientConfigPaths.GetPaths(St ring exePath,
Boolean includeUserConfig)
at System.Configuration.ClientConfigurationHost.get_C onfigPaths()
at System.Configuration.ClientConfigurationHost.GetSt reamName(String
configPath)
at System.Configuration.ClientConfigurationSystem..ct or()
at System.Configuration.ConfigurationManager.EnsureCo nfigurationSystem()
at System.Configuration.ConfigurationManager.EnsureCo nfigurationSystem()
at System.Configuration.ConfigurationManager.GetSecti on(String sectionName)
at System.Configuration.PrivilegedConfigurationManage r.GetSection(String
sectionName)
at System.Diagnostics.DiagnosticsConfiguration.GetCon figSection()
at System.Diagnostics.DiagnosticsConfiguration.Initia lize()
at System.Diagnostics.Switch.InitializeConfigSettings ()
at System.Diagnostics.Switch.InitializeWithStatus()
at System.Diagnostics.Switch.get_SwitchSetting()
at System.Diagnostics.BooleanSwitch.get_Enabled()
at System.Xml.Serialization.TempAssembly.LoadGenerate dAssembly(Type type,
String defaultNamespace, XmlSerializerImplementation& contract)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings, Type type)
at System.Web.Services.Protocols.SoapClientType..ctor (Type type)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor()
at ETISXtee._10._0._40._252.ETISXTeeService..ctor() in E:\Documents and
Settings\juhan\My Documents\Visual Studio\Projects\ETISXtee\ETISXtee\Web
References\10.0.40.252\Reference.cs:line 189
at ETISXtee.Utils.prepareService() in E:\Documents and Settings\juhan\My
Documents\Visual Studio\Projects\ETISXtee\ETISXtee\Utils.cs:line 20
at ETISXtee.ServiceReturnCountryList.composeBody(Obje ct input) in
E:\Documents and Settings\juhan\My Documents\Visual
Studio\Projects\ETISXtee\ETISXtee\ServiceReturnCou ntryList.cs:line 22

the same webservice is correctly invoked by a test client created using
windows forms.

Of course I have googeled, but i have yet to find a solution :( any help
would be appreciated

Juhan
--
ASP.NET Developer, MCSD
Jan 12 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Juhan" <Ju***@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
Hi!

I have a strange error in a console application that is hosted by IIS 5.0
and invokes a web service hosted on the same machine.

A request form the web comes in and it is dispatched to a service class
which uses a helper class to create an instance of the automatically
generated webservice proxy class. The instance creation fails on this row:

_10._0._40._252.ETISXTeeService srv = new
ETISXtee._10._0._40._252.ETISXTeeService();

with this exception:

System.ArgumentException: Illegal characters in path

the full stack trace:
..... Juhan
--
ASP.NET Developer, MCSD


Hi Juhan,

It seems to me that there is some bad data in a switch configuration section
in your config file. Can you paste the config file?

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Jan 12 '06 #2

P: n/a
Hi Martin

Thanks for your reply. the configuration file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ETISXtee.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<applicationSettings>
<ETISXtee.Properties.Settings>
<setting name="ETISXTeeService" serializeAs="String">

<value>http://10.0.40.252/xteewebservice/etisxteeservice/etisxteeservice.asmx</value>
</setting>
</ETISXtee.Properties.Settings>
</applicationSettings>
</configuration>

Other things I should have mentioned: I am dealing with .net 2.0 and the
same problem occurs also on iis 6.0

Juhan

--
ASP.NET Developer, MCSD
Jan 13 '06 #3

P: n/a
I haven't still found a solution for my problem. Little more additional info:
the webservices I am using are the Sql 2005 endpoints. Could this be somekind
of a security issue?

Juhan

--
ASP.NET Developer, MCSD

Jan 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.