Hi there,
I have a GUI project that always has worked fine. Till recently we used
Com+, now we use .Net remoting instead. We use a configuration file, named
"ClientRemoting.config". This is placed in the same directory of the
excecutable (Debug or Release). The project include also some UserControls
(which must use the configuration file, maybe even while creating an
instance). I want to use these UserControls in the same project. When I
create a new form and want to add a UserControl the following exception
occures:
An exception occurred while trying to create an instance of
FarmLine.GUI.FCentral.Controls.AlarmPopUp. The exception was ".Config file
C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\ClientRemoting.config can not be read successfully due to
exception System.IO.FileNotFoundException: The system cannot find the file
specified.
at System.IConfigHelper.Run(IConfigHandler factory, String fileName)
at System.ConfigTreeParser.Parse(String fileName, String configPath,
Boolean skipSecurityStuff)
at
System.Runtime.Remoting.Activation.RemotingXmlConf igFileParser.ParseConfigFile(String filename)
at
System.Runtime.Remoting.RemotingConfigHandler.Load ConfigurationFromXmlFile(String filename).".
So the configuration file is searched in the directory "Microsoft Visual
Studio .NET 2003\Common7\IDE"??
I can't solve this problem, can anybody help me?
thanks,
Koert 2 1977
Is it a asp.net user control or asp.net server control?
Ollie Riches
"Koert" <Ko***@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com... Hi there,
I have a GUI project that always has worked fine. Till recently we used Com+, now we use .Net remoting instead. We use a configuration file, named "ClientRemoting.config". This is placed in the same directory of the excecutable (Debug or Release). The project include also some UserControls (which must use the configuration file, maybe even while creating an instance). I want to use these UserControls in the same project. When I create a new form and want to add a UserControl the following exception occures:
An exception occurred while trying to create an instance of FarmLine.GUI.FCentral.Controls.AlarmPopUp. The exception was ".Config file C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\ClientRemoting.config can not be read successfully due to exception System.IO.FileNotFoundException: The system cannot find the file specified. at System.IConfigHelper.Run(IConfigHandler factory, String fileName) at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean skipSecurityStuff) at System.Runtime.Remoting.Activation.RemotingXmlConf igFileParser.ParseConfigFile(String filename) at System.Runtime.Remoting.RemotingConfigHandler.Load ConfigurationFromXmlFile(String filename).".
So the configuration file is searched in the directory "Microsoft Visual Studio .NET 2003\Common7\IDE"??
I can't solve this problem, can anybody help me?
thanks, Koert
it's a windows forms project, so no asp .net. I think I have found the
problem. In the constructor there is some initialization code which uses the
redirected dll. Because it's loaded in the IDE he starts searching for it in
the IDE directory. I'm now changing the code so that the initialization is
not executed during design time (unfortunately the DesingMode property for
controls does not work in constructors so I have to change all 21 controls in
my project...)
Maybe there is a faster way?
"Ollie Riches" wrote: Is it a asp.net user control or asp.net server control?
Ollie Riches
"Koert" <Ko***@discussions.microsoft.com> wrote in message news:7A**********************************@microsof t.com... Hi there,
I have a GUI project that always has worked fine. Till recently we used Com+, now we use .Net remoting instead. We use a configuration file, named "ClientRemoting.config". This is placed in the same directory of the excecutable (Debug or Release). The project include also some UserControls (which must use the configuration file, maybe even while creating an instance). I want to use these UserControls in the same project. When I create a new form and want to add a UserControl the following exception occures:
An exception occurred while trying to create an instance of FarmLine.GUI.FCentral.Controls.AlarmPopUp. The exception was ".Config file C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\ClientRemoting.config can not be read successfully due to exception System.IO.FileNotFoundException: The system cannot find the file specified. at System.IConfigHelper.Run(IConfigHandler factory, String fileName) at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean skipSecurityStuff) at System.Runtime.Remoting.Activation.RemotingXmlConf igFileParser.ParseConfigFile(String filename) at System.Runtime.Remoting.RemotingConfigHandler.Load ConfigurationFromXmlFile(String filename).".
So the configuration file is searched in the directory "Microsoft Visual Studio .NET 2003\Common7\IDE"??
I can't solve this problem, can anybody help me?
thanks, Koert This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alexander Kienzle |
last post by:
I'm new to Java programming. I'm developing a Servlet for tomcat which needs
an external configuration file. With external I mean a file (in XML format)
which
is customizable and not contained in...
|
by: kathy |
last post by:
What Application Configuration File is? And
when/where/how to use it? Any documents on that? MSDN has
somrthings scatter everywhere - hard to follow.
thanks,
|
by: Jessard |
last post by:
Hi Guys and Girls,
I have a situation where I am wishing to deploy a .NET dll onto a number of
servers. The classes in the DLL will be used by VBScripts. When one of the
classes - Connection -...
|
by: Florida Coder |
last post by:
I have the need to store some application specific configuration data to be
used by a class library and or a windows service. I would like to do this
in a fashion similar to the way we do with...
|
by: phillip |
last post by:
This is interesting, I have attached my web.config file and the
exception I have been logging. I created a library which provide data
access to a database and a control system. The library is...
|
by: Ramanfromoz |
last post by:
Hi,
Developing a new we application. Everything okay on my local WIN XP
PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly.
Now, the same code I am copying over to a...
|
by: Rider |
last post by:
Hi, simple(?) question about asp.net configuration..
I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm
first start application the follow message shown.
=========
Server...
|
by: sean rogers |
last post by:
hello
im using the configuration block and have created the main config file for
the application - the file that contains the paths to the other configuration
sections i.e. -
(my other...
|
by: Jeff Hegedus |
last post by:
I have a dll that requires some configuration data. I put the configuration
data in a custom configuration section in a config file that is loaded in
the installation folder of the dll. If I...
|
by: Mike |
last post by:
Hi
I have problem as folow:
Caught Exception: System.Configuration.ConfigurationErrorsException:
An error occurred loading a configuration file: Request for the
permission of type...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |