Click here to Skip to main content
15,499,430 members
Home / Discussions / C#
   

C#

 
GeneralRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 8:15
sponsorJudah Gabriel Himango6-Feb-06 8:15 
AnswerRe: Weird C# String Behavior Pin
leppie6-Feb-06 6:16
Memberleppie6-Feb-06 6:16 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 6:36
Membermalharone6-Feb-06 6:36 
AnswerRe: Weird C# String Behavior Pin
Nish Nishant6-Feb-06 7:06
sitebuilderNish Nishant6-Feb-06 7:06 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 7:20
Membermalharone6-Feb-06 7:20 
GeneralRe: Weird C# String Behavior Pin
Daniel Grunwald6-Feb-06 7:55
MemberDaniel Grunwald6-Feb-06 7:55 
GeneralNoooo! Pin
leppie6-Feb-06 8:49
Memberleppie6-Feb-06 8:49 
QuestionWierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 5:22
MemberByStorm Software6-Feb-06 5:22 
I'm written a crazy simple service in C# and a simple class library that exposes 1 class. We're talking "hello world" simple here.

Here's the wierdness.
I have a reference to the class library from the service, when I attempt to start the service, I get an event log entry saying that it can't find the class library.

Event log record-->
Service cannot be started. System.IO.FileNotFoundException: Could not load file or assembly 'SampleClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'SampleClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at RemotingTest.TestService.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

What I've tried.
Create a console app using the same code -> Works
Remove the calls to the class library and start the service -> Works
uninstall the service/reinstall the service and start the service -> Fails.
Copy the class library dll to the windows system32 directory -> Fails.

????

Any ideas? I'm sure that it is something really stupid, but I can't think of it.
AnswerRe: Wierdness trying to use a class library in a service Pin
Joe Woodbury6-Feb-06 5:54
professionalJoe Woodbury6-Feb-06 5:54 
AnswerRe: Wierdness trying to use a class library in a service Pin
leppie6-Feb-06 8:57
Memberleppie6-Feb-06 8:57 
GeneralRe: Wierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 10:48
MemberByStorm Software6-Feb-06 10:48 
QuestionXsltArgumentList doesn't accept long parameter values Pin
mikko laanti6-Feb-06 5:21
Membermikko laanti6-Feb-06 5:21 
AnswerRe: XsltArgumentList doesn't accept long parameter values Pin
leppie6-Feb-06 6:21
Memberleppie6-Feb-06 6:21 
QuestionAdd to favourites Pin
Brendan Vogt6-Feb-06 4:51
MemberBrendan Vogt6-Feb-06 4:51 
Questionstatus bar Pin
Kola Sokol6-Feb-06 4:41
MemberKola Sokol6-Feb-06 4:41 
AnswerRe: status bar Pin
Ravi Bhavnani6-Feb-06 5:04
professionalRavi Bhavnani6-Feb-06 5:04 
GeneralRe: status bar Pin
Kola Sokol6-Feb-06 6:06
MemberKola Sokol6-Feb-06 6:06 
Questionmemcopy in C# ? Pin
smoitry6-Feb-06 4:28
Membersmoitry6-Feb-06 4:28 
AnswerRe: memcopy in C# ? Pin
Judah Gabriel Himango6-Feb-06 5:58
sponsorJudah Gabriel Himango6-Feb-06 5:58 
QuestionHelp with multiview control needed!! Pin
BenPage6-Feb-06 3:07
MemberBenPage6-Feb-06 3:07 
Questionbit + sq Pin
ita_cas6-Feb-06 2:48
Memberita_cas6-Feb-06 2:48 
AnswerRe: bit + sq Pin
albCode6-Feb-06 3:01
MemberalbCode6-Feb-06 3:01 
Questioncombo box, datagrid problem Pin
steve1_rm20006-Feb-06 2:31
Membersteve1_rm20006-Feb-06 2:31 
QuestionHow to create RadioButtonColumn for DataGridView Pin
USrinivas6-Feb-06 2:17
MemberUSrinivas6-Feb-06 2:17 
AnswerRe: How to create RadioButtonColumn for DataGridView Pin
luckyv6-Feb-06 4:03
Memberluckyv6-Feb-06 4:03 

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.