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

System.ArgumentException: Illegal characters in path

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
3 13801
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: deko | last post by:
Is there a way to check user input for illegal characters? For example, a user enters something into a text box and clicks OK. At that point I'd like to run code such as this: illegal =...
1
by: Steve Grahovac | last post by:
I have been having trouble the last few days opening any ASP.NET web forms in the design view in the designer. Every time I clicked on an aspx file I got a message box with the error "Unable to...
0
by: paul | last post by:
I just installed Windows XP SP2 on my web server. Now when I run one of the web applications I get the following error: ArgumentException: Illegal characters in path.] ...
1
by: WALDO | last post by:
I have a small installation app that I'm building. The user can specify an install path at the command line. How can I ensure that something they put in is valid? What I'm NOT looking for is...
10
by: webmaster | last post by:
Getting error: Illegal characters in path what's wrong with this? string xmlSR = "<XmlDS><table1><phone>Value1</phone><name>jake</name></table1></XmlDS>"; myDataSet.ReadXml(xmlSR,...
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...
3
by: =?Utf-8?B?SG9seXNtb2tl?= | last post by:
Hi there, I am having a problem im my webservices method when trying to save a file with latin characters to disk passed through WSE. I have noticed that when trying to read the file name from...
2
by: ranjith konnoju | last post by:
hi, i am getting an exception while populating the data in the datagrid. am getting the values into datatable and binding it to the datagrid but it is not displaying the data and giving...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.