473,401 Members | 2,068 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,401 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 13803
"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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.