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

The parameter 'exePath' is invalid in ConfigurationManager.OpenExe

I have this code:
System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration("SAS.Int .ComunServicios.ComunProcesos.dll");
The filepath is not useful for me.

If I want to use an absolute path like:
System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration("C:\\SAS .Int.ComunServicios.ComunProcesos.dll");

Then I have the exception:
"An error occurred loading a configuration file: The parameter 'exePath' is
invalid.
Parameter name: exePath"

How can I use absolute path?


May 31 '06 #1
1 15511
System.Configuration.Configuration is used to open your .config file and not
dll perhaps.
http://msdn2.microsoft.com/en-us/lib...iguration.aspx

chanmm

"fran" <fr**@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have this code:
System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration("SAS.Int .ComunServicios.ComunProcesos.dll");
The filepath is not useful for me.

If I want to use an absolute path like:
config =
ConfigurationManager.OpenExeConfiguration("C:\\SAS .Int.ComunServicios.ComunProcesos.dll");

Then I have the exception:
"An error occurred loading a configuration file: The parameter 'exePath'
is
invalid.
Parameter name: exePath"

How can I use absolute path?

May 31 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ron Rohrssen | last post by:
I want to show a dialog and when the form (dialog) is closed, return to the calling form. The calling form should then be able to pass the child form to another object with the form as a...
0
by: jens Jensen | last post by:
Hello, I'm trying to connect to a system via https. As an additional security measure, the server requires me to attach an x509 certs to my "HTTP POST" request. I get the error...
0
by: dawg1998 | last post by:
I am able to populate a DropDownList control within multiple rows of a GridView with the following code: `````````````````````````````````````````````````````` <asp:GridView id="gvGridView"...
1
by: shapper | last post by:
Hello, I create a few VB classes under app_code of a web site. Now I am trying to create a library project. Something strange is going on. I have the following line: Dim connectionString As...
3
by: Mark | last post by:
I am trying to read the appsettings section of a configuration file using the ConfigurationManager object (ASP.NET application) with the following three lines but for some reason the...
3
by: dawson | last post by:
Hello, from the code below, how do I add/send a parameter to the stored procedure? SqlConnection conn = null; conn = new...
4
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
i have this function which call an sp that has a return code public SqlDataReader fn_SpecData(Int32 iDate, Int32 iRange, out Int32 iRowCount) { string constr =...
0
by: Jim McGivney | last post by:
This is probably a Newbie question, but your response would be appreciated. Using VWD I have a GridView on a page. The GridView is feed data by accessdatasource1. I can filter the data...
2
by: zombiemasta | last post by:
Hi, I've wrote a stored procedure which expects a parameter to be passed in on the WHERE clause for channelID. The stored procedure runs fine in Navicat for MySQL when you specify the parameter...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...

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.