473,626 Members | 3,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't run a C# Program Without VS2005

Firstly, let me come clean and say I don't really know what I'm doing.

Classic tale: I'm using some code developed by a third party who is now
uncontactable. Further, he did it in C# and .NET which are a total
mystery to me. My bit of the project is done in C and links to his bit
which is a DLL. As VS2005 for C doesn't seem to know about
App.config.exes , he provided a .exe.config file saying "this will work
with everything -- just rename it in the same directory as your .exe".

All is well on a "developmen t" system that has VS2005 installed, but
our customers' machines don't. There, everything fails with a message:

Exception: The configuration section for Logging cannot be found in the
configuration source.
at
Microsoft.Pract ices.Enterprise Library.Logging .LogWriterStruc tureHolderCusto mFactory.Create Object(IBuilder Context
context, String name, IConfigurationS ource configurationSo urce,
ConfigurationRe flectionCache reflectionCache )
at ... <snip long traceback chain>

but the .exe.config _does_ have a section called
"loggingConfigu ration".

The "Exception ..." message seems to be coming from one of the
functions _fastClientServ ice.lookupQueue Reference,
_fastClientServ ice.createQueue , or _fastClientServ ice.Connect which I
can't find any documentation for. Are they Microsoft's or something
written by the contractor?

Possibly significantly, this is the same message I get when the
..exe.config file is deleted, so perhaps something is looking in the
wrong place. Are there any environment variables or equivalent that
have to be set up? The files are all in the same places on both
customer and development machines.

Curiously, if I replace the real .exe.config with a junk file (e.g. a
..exe) the programs doesn't even get that far and just say: "The system
cannot execute the specified program." This suggests that the
..exe.config is being found at least once.

Chris

Apr 29 '06 #1
2 1631
PL

The Enterprise Library is not part of the core framework, possibly it is
missing on the target machine, try to download and install it separately on
the target machine.

http://msdn.microsoft.com/library/de...ml/EntLib2.asp

PL.
<ch*********@po stmaster.co.uk> skrev i meddelandet
news:11******** **************@ j73g2000cwa.goo glegroups.com.. .
Firstly, let me come clean and say I don't really know what I'm doing.

Classic tale: I'm using some code developed by a third party who is now
uncontactable. Further, he did it in C# and .NET which are a total
mystery to me. My bit of the project is done in C and links to his bit
which is a DLL. As VS2005 for C doesn't seem to know about
App.config.exes , he provided a .exe.config file saying "this will work
with everything -- just rename it in the same directory as your .exe".

All is well on a "developmen t" system that has VS2005 installed, but
our customers' machines don't. There, everything fails with a message:

Exception: The configuration section for Logging cannot be found in the
configuration source.
at
Microsoft.Pract ices.Enterprise Library.Logging .LogWriterStruc tureHolderCusto mFactory.Create Object(IBuilder Context
context, String name, IConfigurationS ource configurationSo urce,
ConfigurationRe flectionCache reflectionCache )
at ... <snip long traceback chain>

but the .exe.config _does_ have a section called
"loggingConfigu ration".

The "Exception ..." message seems to be coming from one of the
functions _fastClientServ ice.lookupQueue Reference,
_fastClientServ ice.createQueue , or _fastClientServ ice.Connect which I
can't find any documentation for. Are they Microsoft's or something
written by the contractor?

Possibly significantly, this is the same message I get when the
.exe.config file is deleted, so perhaps something is looking in the
wrong place. Are there any environment variables or equivalent that
have to be set up? The files are all in the same places on both
customer and development machines.

Curiously, if I replace the real .exe.config with a junk file (e.g. a
.exe) the programs doesn't even get that far and just say: "The system
cannot execute the specified program." This suggests that the
.exe.config is being found at least once.

Chris

Apr 29 '06 #2

PL wrote:
The Enterprise Library is not part of the core framework, possibly it is
missing on the target machine, try to download and install it separately on
the target machine.

http://msdn.microsoft.com/library/de...ml/EntLib2.asp

PL.
The Enterprise Library _is_ installed on the target machine, or so I am
told by my boss (who has disappeared for the weekend leaving me to fix
this for an important meeting with a customer on Monday). However, he
says it was "installed manually", so I'm slightly suspicious. I asked
if it could be installed "properly", but he said NO. I've copied what I
am told are the DLLs actually required, including
Microsoft.Pract ices.Enterprise library.Logging .dll, to just about
everywhere, but to no effect.

Chris

<ch*********@po stmaster.co.uk> skrev i meddelandet
news:11******** **************@ j73g2000cwa.goo glegroups.com.. .
Firstly, let me come clean and say I don't really know what I'm doing.

Classic tale: I'm using some code developed by a third party who is now
uncontactable. Further, he did it in C# and .NET which are a total
mystery to me. My bit of the project is done in C and links to his bit
which is a DLL. As VS2005 for C doesn't seem to know about
App.config.exes , he provided a .exe.config file saying "this will work
with everything -- just rename it in the same directory as your .exe".

All is well on a "developmen t" system that has VS2005 installed, but
our customers' machines don't. There, everything fails with a message:

Exception: The configuration section for Logging cannot be found in the
configuration source.
at
Microsoft.Pract ices.Enterprise Library.Logging .LogWriterStruc tureHolderCusto mFactory.Create Object(IBuilder Context
context, String name, IConfigurationS ource configurationSo urce,
ConfigurationRe flectionCache reflectionCache )
at ... <snip long traceback chain>

but the .exe.config _does_ have a section called
"loggingConfigu ration".

The "Exception ..." message seems to be coming from one of the
functions _fastClientServ ice.lookupQueue Reference,
_fastClientServ ice.createQueue , or _fastClientServ ice.Connect which I
can't find any documentation for. Are they Microsoft's or something
written by the contractor?

Possibly significantly, this is the same message I get when the
.exe.config file is deleted, so perhaps something is looking in the
wrong place. Are there any environment variables or equivalent that
have to be set up? The files are all in the same places on both
customer and development machines.

Curiously, if I replace the real .exe.config with a junk file (e.g. a
.exe) the programs doesn't even get that far and just say: "The system
cannot execute the specified program." This suggests that the
.exe.config is being found at least once.

Chris


Apr 29 '06 #3

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

Similar topics

6
2578
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a schema for it with Visual Studio, I get the error "Failed to create a schema for this data file because:
6
1399
by: Brett | last post by:
I have a C# project created in VS.NET 2003. I tried to run it in VS.NET 2005. 2005 did a conversion. I see much VB code and VB style comments. I don't know what it did. Will a 2003 C# project run in 2005? Thanks, Brett
6
2333
by: Plamen Doykov | last post by:
Hi all I have converted a simple project from ASP.NET 1 to 2.0 with the latest prerelease of Visual Studio 2005. The problem is I can't access internal members from the code behind. It gives: error CS0122: 'Class' is inaccessible due to its protection level This happens only when access members from code behind, not from the other classes. It compiles OK when making the class and its members public. However, I don't want to do that....
7
3241
by: Tau | last post by:
Because vc8 uses MFC80.dll, and many PCs don't have these libraries... So I wonder if I can use vs2005's IDE to write a vc6 program? I mean just using mfc42.dll, etc...to make it runnable on other machines. Thanks in advance.
9
1977
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as side-by-side assemblies and that application has to have a manifest binding it to those assemblies. My question is, can previously built apps use my new dlls build with vs2005? It would be really important to make it work, because otherwise we would...
1
1585
by: Dave | last post by:
I want to produce a program that can only be run by a user with administrator privileges (ie a member of the BUILTINS/Adminstrators group - I think. Correct me if I'm getting my terminology wrong). Can someone start me in the right direction. I'm using VS2005 (just upgraded from 2003) -- Dave
8
1508
by: Dave | last post by:
I want to create a program that can only be run by a user with administrator privileges (ie in the BUILTIN/Administrators group - I think. Correct me if I'm wrong, I'm a bit hazy on users and groups). I'm not sure where to start. Can someone point me in the right direction. I'm using VS2005 (just upgraded from 2003) -- Dave
6
2205
by: Pucca | last post by:
I have a program that originally compiles into a exe file. I changed the compile option to generate dll file. This program calls a com component. Can I use pinvoke in C# to call it? The following is the main dll file. #include "stdafx.h" #define MAX_ADSPATH_CHARS 2048 //*************************************************************************** // local function prototypes
3
1446
by: Thomas | last post by:
Hi, I have written a simple console program in VS2005 and it should run on computers that dosn't have .NET (not 1.1 and not 2.0). I think it depends on the headerfiles? I have exculded the default stuff (stdafx.h, stdafx.cpp). And I use the following headers: #include <shlwapi.h> #include <stdio.h> #include <stdarg.h> #include <vector>
0
8641
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8366
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8510
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7199
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.