Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralC string reading Pin
saberhawkp423-May-05 20:02
saberhawkp423-May-05 20:02 
GeneralEncoding Technique Pin
Rashaida23-May-05 19:53
sussRashaida23-May-05 19:53 
GeneralReading Access Schema Pin
ivix4u23-May-05 18:13
ivix4u23-May-05 18:13 
GeneralRemoving HTML-tags from a string Pin
anderslundsgard23-May-05 18:08
anderslundsgard23-May-05 18:08 
GeneralRe: Removing HTML-tags from a string Pin
Serdar YILMAZ23-May-05 21:27
Serdar YILMAZ23-May-05 21:27 
GeneralRe: Removing HTML-tags from a string Pin
anderslundsgard23-May-05 22:27
anderslundsgard23-May-05 22:27 
GeneralRe: Removing HTML-tags from a string Pin
eggie524-May-05 12:53
eggie524-May-05 12:53 
Questionlgo4net not found...? Reference: Copy Local solved the problem...? Pin
devvvy23-May-05 17:53
devvvy23-May-05 17:53 
Hi, one of my project uses log4net. I add reference to log4net assembly (which is installed in GAC). I built the project and encountered no problem. However, when I run it console app, I keep getting:

<br />
log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [rollingFile]<br />
of type [log4net.Appender.RollingFileAppender,log4net]. Reported error follows.<br />
System.IO.FileNotFoundException: File or assembly name log4net, or one of its dependencies, was not found.<br />
File name: "log4net"<br />
... bunch of stuff...<br />
LOG: Policy not being applied to reference at this time (private, custom, partia<br />
l, or location-based assembly bind).<br />
LOG: Post-policy reference: log4net<br />
LOG: Attempting download of new URL file:///C:/norman/AT HK development/DutySavi<br />
ng/bin/log4net.DLL.<br />
LOG: Attempting download of new URL file:///C:/norman/AT HK development/DutySavi<br />
ng/bin/log4net/log4net.DLL.<br />
LOG: Attempting download of new URL file:///C:/norman/AT HK development/DutySavi<br />
ng/bin/log4net.EXE.<br />
LOG: Attempting download of new URL file:///C:/norman/AT HK development/DutySavi<br />
ng/bin/log4net/log4net.EXE.<br />

I resolved the problem by changing Copy Local from False (which is default for GAC's assemblies) to True

Any idea why this is happenning? I have another console application which references log4net also, but does not requires "Copy Local" = True.

Thanks in advance!

Norman Fung
GeneralTell me Default Encoding technique Pin
shumyla198323-May-05 17:02
shumyla198323-May-05 17:02 
GeneralString of Bits to Byte[ ] Conversion Pin
gordsh23-May-05 15:59
gordsh23-May-05 15:59 
GeneralRe: String of Bits to Byte[ ] Conversion Pin
S. Senthil Kumar23-May-05 18:11
S. Senthil Kumar23-May-05 18:11 
GeneralRe: String of Bits to Byte[ ] Conversion Pin
Robert Rohde23-May-05 20:33
Robert Rohde23-May-05 20:33 
GeneralRe: String of Bits to Byte[ ] Conversion Pin
gordsh24-May-05 15:51
gordsh24-May-05 15:51 
GeneralShow hidden forms Pin
methodincharge23-May-05 13:30
methodincharge23-May-05 13:30 
GeneralRe: Show hidden forms Pin
Rob Tomson23-May-05 13:42
Rob Tomson23-May-05 13:42 
GeneralRe: Show hidden forms Pin
methodincharge23-May-05 13:56
methodincharge23-May-05 13:56 
GeneralRe: Show hidden forms Pin
Skynyrd24-May-05 6:55
Skynyrd24-May-05 6:55 
GeneralRe: Show hidden forms Pin
methodincharge24-May-05 7:38
methodincharge24-May-05 7:38 
GeneralRe: Show hidden forms Pin
Skynyrd24-May-05 21:41
Skynyrd24-May-05 21:41 
GeneralRe: Show hidden forms Pin
methodincharge25-May-05 2:02
methodincharge25-May-05 2:02 
GeneralRe: Show hidden forms Pin
methodincharge25-May-05 14:03
methodincharge25-May-05 14:03 
GeneralShow xml node in text box without losing formatting Pin
PrachiB23-May-05 12:41
PrachiB23-May-05 12:41 
GeneralRe: Show xml node in text box without losing formatting Pin
DavidNohejl23-May-05 12:58
DavidNohejl23-May-05 12:58 
GeneralRe: Show xml node in text box without losing formatting Pin
PrachiB23-May-05 13:16
PrachiB23-May-05 13:16 
GeneralRe: Show xml node in text box without losing formatting Pin
J4amieC23-May-05 21:42
J4amieC23-May-05 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.