473,326 Members | 2,012 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,326 software developers and data experts.

Does system.dll need to be copied to the app bin directory?

I am using MS Visual Studio 2002 with Windows 2000 Advanced Server and am
starting to learn C#. Perhaps this is obvious but I can't see if what's
happening is "normal" or if something needs to be set differently. I have
implemented System.Configuration.NameValueSectionHandler which is found in
System.dll. The problem I have is this only work if I either manually copy
System.dll to the application's bin directory or set the System reference
"copy local" property to TRUE which does the same thing. It doesn't seem
reasonable for a file which much exist on every web server running the app
to need to be copied to the app's bin directory.

Is the referenced System.dll supposed to be automatically copied to the
C:\winnt\microsoft.net\framework\v1.0.xxxx\Tempora ry ASP.NET Files\...
directory at some point or is it supposed to be in a path? I would think
such a path would include the .NET framework directory where System.dll
resides but it only includes the Temporary directory and the application's
bin directory currently. I actually added the dot-net directory to the
system PATH but that made no difference. Is there another environment
variable I need to set?

Any information is appreciated.

Thanks.
Nov 16 '05 #1
2 2257
Wysiwyg,

The behavior you are seeing is not normal. System.dll should be in the
GAC, and if it is not found locally, then fusion (the assembly loader),
should pick it up from the GAC.

Have you tried running the Fusion Log Viewer to see how System.dll is
loaded?

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Wysiwyg" <wy*****@xmissionNSPAM.com> wrote in message
news:cf**********@news.xmission.com...
I am using MS Visual Studio 2002 with Windows 2000 Advanced Server and am
starting to learn C#. Perhaps this is obvious but I can't see if what's
happening is "normal" or if something needs to be set differently. I have
implemented System.Configuration.NameValueSectionHandler which is found in
System.dll. The problem I have is this only work if I either manually copy
System.dll to the application's bin directory or set the System reference
"copy local" property to TRUE which does the same thing. It doesn't seem
reasonable for a file which much exist on every web server running the app
to need to be copied to the app's bin directory.

Is the referenced System.dll supposed to be automatically copied to the
C:\winnt\microsoft.net\framework\v1.0.xxxx\Tempora ry ASP.NET Files\...
directory at some point or is it supposed to be in a path? I would think
such a path would include the .NET framework directory where System.dll
resides but it only includes the Temporary directory and the application's
bin directory currently. I actually added the dot-net directory to the
system PATH but that made no difference. Is there another environment
variable I need to set?

Any information is appreciated.

Thanks.

Nov 16 '05 #2
Thanks for the quick reply.

The System resource is in the Global Assembly Cache. Could this have to do
with my using Visual Studio 2002 which references System.dll in the dot net
1.0.3705 directory while I have the Microsoft.net framework 1.1 installed? I
uninstalled both Visual Studio and the dot net framework but that didn't
change anything. I see both 1.0.3300.0 and 1.0.5000.0 versions of System in
my GAC from both the original framework and the 1.1 update. VS installed the
original (3300) framework even with 1.1 already installed. I can always try
working using the original framework without the dot net 1.1 update and see
if that matters. I don't have the dot net SDK but I'll load that so I can
look at the Fusion logs. Thanks again!

Bill

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uv*************@tk2msftngp13.phx.gbl...
Wysiwyg,

The behavior you are seeing is not normal. System.dll should be in the GAC, and if it is not found locally, then fusion (the assembly loader),
should pick it up from the GAC.

Have you tried running the Fusion Log Viewer to see how System.dll is
loaded?

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Wysiwyg" <wy*****@xmissionNSPAM.com> wrote in message
news:cf**********@news.xmission.com...
I am using MS Visual Studio 2002 with Windows 2000 Advanced Server and am starting to learn C#. Perhaps this is obvious but I can't see if what's
happening is "normal" or if something needs to be set differently. I have implemented System.Configuration.NameValueSectionHandler which is found in System.dll. The problem I have is this only work if I either manually copy System.dll to the application's bin directory or set the System reference "copy local" property to TRUE which does the same thing. It doesn't seem
reasonable for a file which much exist on every web server running the app to need to be copied to the app's bin directory.

Is the referenced System.dll supposed to be automatically copied to the
C:\winnt\microsoft.net\framework\v1.0.xxxx\Tempora ry ASP.NET Files\...
directory at some point or is it supposed to be in a path? I would think
such a path would include the .NET framework directory where System.dll
resides but it only includes the Temporary directory and the application's bin directory currently. I actually added the dot-net directory to the
system PATH but that made no difference. Is there another environment
variable I need to set?

Any information is appreciated.

Thanks.

Nov 16 '05 #3

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

Similar topics

2
by: Cherrish Vaidiyan | last post by:
Hello database professionals, I am thankful for all ur support to me till now. I accept the suggestion given to me by Mr.Frank in case of answering. This query is related to oracle 9i on Red...
1
by: Alex VanderWoude | last post by:
I am trying to <include> some text into an XML documentation topic, but that text is stored in a file that is in a different directory than the "current" XML file. Using a relative path does not...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
by: jessienjr | last post by:
I am trying to enable ldap for PHP on Windows Server 2003 SP 1 I am running PHP5.2.5 I am running Apache 2.2 I have copied and put all of the following files in the extensions directory "ext" or...
6
by: Lloyd Sheen | last post by:
Ok I copied a VS 2005 web site to another folder. Open my new VS 2008. Attempt to run. I get the following: Error 1 It is an error to use a section registered as...
6
by: Lord Zoltar | last post by:
I built a small app with VS C# Express 2008, and published it as a click-once app. I tried installing it on my local machine, and when I click on its icon from the Start menu, nothing happens....
1
by: jabbari | last post by:
Hello, Please Help us...! I have a big problem ,so i searched on google and other search engine ,then I realized that so many other people have the same problem and they, all, have'nt been able to...
3
by: moltendorf | last post by:
I copied the files from my "test" database on my old server (MySQL was not running) to my new server ("./mysql/data/test" folder), and after starting the server, SHOW TABLES; shows all of the tables...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
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...
0
isladogs
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 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.