Bug 12781 - Window service compiling using dmcs, not getting started
Summary: Window service compiling using dmcs, not getting started
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-06-20 02:49 UTC by Anjoli
Modified: 2013-06-21 06:36 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Anjoli 2013-06-20 02:49:29 UTC
I had created a window service in .Net framework 4.0 and complied using dmcs. It get successfully complied when i am trying to start it not getting started.
   Code- 
dmcs -out:datacollectorsrv.exe  *.cs -r:System.Data.dll -r:System.Data.DataSetExtensions.dll -r:System.ServiceProcess.dll -r:System.Xml.Linq.dll -r:System.Xml.dll -r:System.dll
   mono-service2 -l:service.lock --debug winsrvftpdownload.exe
--Service not started 


But if same service i complied using gmcs, it getting complied and also running successfully
   Code- 
gmcs -out:winsrvftpdownload.exe -pkg:dotnet35 *.cs 
mono-service2 -l:service.lock --debug winsrvftpdownload.exe
--Service started 

Thanks,
Anjoli
Comment 1 Anjoli 2013-06-20 02:57:29 UTC
a typo error

Code for compling and executing window service based on .netframework 4.0 on linux using mon is as below -

dmcs -out:winsrvftpdownload.exe  *.cs -r:System.Data.dll
-r:System.Data.DataSetExtensions.dll -r:System.ServiceProcess.dll
-r:System.Xml.Linq.dll -r:System.Xml.dll -r:System.dll

mono-service2 -l:service.lock --debug winsrvftpdownload.exe

Note You need to log in before you can comment on or make changes to this bug.