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

Illegal characters in path when instantiating TCPClient()

Im trying to execute a cgi.exe file from IIS. I can execute this from the command line and it works great. When the file is loaded by IIS 6.0 and gets executed by accessing the url, I get a "Configuration system failed to initialize" exception message and the innerexception message is Illegal characters in path when the TCPClient() constructor gets called. Following is the stack trace:

at System.Configuration.ConfigurationManager.EnsureCo nfigurationSystem()
at System.Configuration.ConfigurationManager.PrepareC onfigSystem()
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.DiagnosticsConfiguration.get_So urces()
at System.Diagnostics.TraceSource.Initialize()
at System.Net.Logging.InitializeLogging()
at System.Net.Logging.get_On()
at System.Net.Sockets.TcpClient..ctor(AddressFamily family)
at System.Net.Sockets.TcpClient..ctor()

Thanks in advance for any help.
May 13 '10 #1
3 2343
Plater
7,872 Expert 4TB
Despite the error message, my guess? Permissions issue.
Does the ASP_NET user (or does IIS6 use a different user?) have the correct priveledges to open directories/sockets?
May 17 '10 #2
@Plater
Plater,
Thanks for your response. I have to agree with you. I went down the permissions path and spent a lot of time on it without being successful. This was quite a small CGI app so I ported it to a c++ win32 app. That resolved resolved the socket open issue. Must be something to do with .NET. I'd really like to understand what the problem is for two reasons:. The remainder of the project is written in .Net and don't really want to sway away from our established practices as well as it really ticks me off that I never really figured it out. So if anyone can actually lead to a resolution I would be happy to post it for others.
May 21 '10 #3
Plater
7,872 Expert 4TB
Did you have it output to some debug location the URLs/Paths and etc it was trying to form? Maybe something would be spotted there?
May 21 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: MB | last post by:
Hi, I am using a web service to call an asp page on a remote server via System.Net.WebClient . The asp page returns a xml stream persisted from a recordset. I am having problems converting the...
2
by: Karl Koscher | last post by:
I'm trying to communicate with a USB device using C#. I'm able to determine the device path using P/Invoke and SetupDiGetClassDevs, SetupDiEnumDeviceInterfaces, and SetupDiGetDeviceInterfaceDetail,...
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...
3
by: Juhan | last post by:
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...
3
by: Eckhard Schwabe | last post by:
I only found one post on Google where someone mentions the same problem with a DataSet: XmlDataReader in .Net 1.1 can not read XML files from a path which contains "%10" or "%3f". code to...
1
by: Thomas | last post by:
Hi, I have written a simple web application in asp.net 1.1.4322. following is the code written in Page_Load private void Page_Load(object sender, System.EventArgs e) { string str =...
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,...
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...
1
by: crusson | last post by:
(edited to add): this is in Visual Basic .net I am at a complete loss... I've been building a program on my machine, running it out of the developer with the f5 key and builidng it and running...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.