Click here to Skip to main content
15,075,394 members
Home / Discussions / C#
   

C#

 
AnswerRe: size of fileupload Pin
Shameel5-Sep-12 22:56
professionalShameel5-Sep-12 22:56 
AnswerRe: size of fileupload Pin
Pete O'Hanlon5-Sep-12 23:37
mvePete O'Hanlon5-Sep-12 23:37 
QuestionC# WinService starts in win7 but not in win2088 Pin
Daniel Jansson5-Sep-12 20:56
MemberDaniel Jansson5-Sep-12 20:56 
AnswerRe: C# WinService starts in win7 but not in win2088 Pin
Bernhard Hiller5-Sep-12 21:35
MemberBernhard Hiller5-Sep-12 21:35 
GeneralRe: C# WinService starts in win7 but not in win2088 Pin
Daniel Jansson5-Sep-12 21:38
MemberDaniel Jansson5-Sep-12 21:38 
GeneralRe: C# WinService starts in win7 but not in win2088 Pin
Bernhard Hiller5-Sep-12 21:49
MemberBernhard Hiller5-Sep-12 21:49 
AnswerRe: C# WinService starts in win7 but not in win2088 Pin
Shameel5-Sep-12 22:58
professionalShameel5-Sep-12 22:58 
AnswerRe: C# WinService starts in win7 but not in win2088 Pin
jschell6-Sep-12 12:48
Memberjschell6-Sep-12 12:48 
Daniel Jansson wrote:
If I copy the entire folder to a Win7 machine (64bit) and install it in the
exact same way, it works like it should.


Incorrect process.

1. Install it on the Win 7 machine
2. Install it on Win 2008
3. Delete the files from Win 7
4. Copy the files as installed from Win 2008 to Win 7.
5. See if it runs.

If it doesn't compare files.


Daniel Jansson wrote:
Any ideas at all on how to resolve this?


Presuming the install works then it means it is an environment problem.

First change the user that the service runs under to you. Try to run it.

If that doesn't work then open permissions up completely on the install dir. If that doesn't fix it then restore then and continue.

Next step is to determine if it is a start up problem or a code problem. You might be able to determine this by adding a log line as the very first line of the Startup (Service method itself). If that gets into the log then you know that some other process is falling. You can debut that by putting a try/catch in Startup, which you should have anyways and log it. This doesn't work if you start threads and you will need to add more logging for exceptions in threads (which you should also be doing any ways.)

If the first log line doesn't show up then it becomes more difficult because it means that the service class is attempting to pull in a dll and initialization for that fails. Resolving that is done by creating a proxy in the Service which uses dynamic loading of everything else. Basically clone all the real functionality in the Service class, remove the functionality from the service class, then use dynamic loading to load and execute the second class with appropriate exception handling and logging for that.

Of course the above assumes that logging itself isn't the problem.
QuestionC# Class for Finger Print Capture Pin
Member 23279205-Sep-12 20:25
MemberMember 23279205-Sep-12 20:25 
AnswerRe: C# Class for Finger Print Capture Pin
Shameel5-Sep-12 20:38
professionalShameel5-Sep-12 20:38 
AnswerRe: C# Class for Finger Print Capture Pin
Thomas Duwe5-Sep-12 22:18
MemberThomas Duwe5-Sep-12 22:18 
QuestionPicture box click event Pin
Soni_moni5-Sep-12 19:43
MemberSoni_moni5-Sep-12 19:43 
AnswerRe: Picture box click event Pin
Shameel5-Sep-12 20:36
professionalShameel5-Sep-12 20:36 
AnswerRe: Picture box click event Pin
DaveyM696-Sep-12 3:18
professionalDaveyM696-Sep-12 3:18 
QuestionC# MIDI controller interface. Pin
Jumpin' Jeff5-Sep-12 16:38
MemberJumpin' Jeff5-Sep-12 16:38 
AnswerRe: C# MIDI controller interface. Pin
DaveyM695-Sep-12 22:17
professionalDaveyM695-Sep-12 22:17 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff6-Sep-12 14:26
MemberJumpin' Jeff6-Sep-12 14:26 
GeneralRe: C# MIDI controller interface. Pin
DaveyM697-Sep-12 0:57
professionalDaveyM697-Sep-12 0:57 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 1:36
MemberJumpin' Jeff7-Sep-12 1:36 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 12:42
MemberJumpin' Jeff7-Sep-12 12:42 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 15:04
MemberJumpin' Jeff7-Sep-12 15:04 
AnswerRe: C# MIDI controller interface. Pin
DaveyM697-Sep-12 22:07
professionalDaveyM697-Sep-12 22:07 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff8-Sep-12 15:18
MemberJumpin' Jeff8-Sep-12 15:18 
GeneralRe: C# MIDI controller interface. Pin
DaveyM699-Sep-12 0:03
professionalDaveyM699-Sep-12 0:03 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff10-Sep-12 1:49
MemberJumpin' Jeff10-Sep-12 1:49 

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.