Yazdığım bir hizmeti dağıtmaya çalışıyorum. Gördüğünüz gibi, işe yaramıyorKendi geliştirdiğimiz bir Windows Service yükleme
Installing assembly 'c:\Users\brwatson\Development\Projects\TweetLinks\TweetLinkQueue\bin\Debug\TweetLinkQueue.exe'.
Affected parameters are:
logtoconsole =
assemblypath = c:\Users\brwatson\Development\Projects\TweetLinks\TweetLinkQueue\bin\Debug\TweetLinkQueue.exe
logfile = c:\Users\brwatson\Development\Projects\TweetLinks\TweetLinkQueue\bin\Debug\TweetLinkQueue.InstallLog
Installing service TweetLinkService...
Creating EventLog source TweetLinkService in log Application...
Rolling back assembly 'c:\Users\brwatson\Development\Projects\TweetLinks\TweetLinkQueue\bin\Debug\TweetLinkQueue.exe'.
Affected parameters are:
logtoconsole =
assemblypath = c:\Users\brwatson\Development\Projects\TweetLinks\TweetLinkQueue\bin\Debug\TweetLinkQueue.exe
logfile = c:\Users\brwatson\Development\Projects\TweetLinks\TweetLinkQueue\bin\Debug\TweetLinkQueue.InstallLog
Restoring event log to previous state for source TweetLinkService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
: İşte InstallLog dosya. Nasıl devam edeceğimi bilmiyorum ve Bing ve Google ile duvara çarptı. ServiceProcessInstaller1 için hesabı LocalSystem'e ayarladım. Kod iyi bir şekilde derleniyor, ama şimdi şu şeyi çalıştırmak istiyorum ... herhangi bir fikir? Kutumda bir yönetici değilim ve ben komutunu çalıştırıyorum:
ınstallutil TweetLinkQueue.exe VS2008 yönetici konsolundan
. Giriş Noktası ile GÜNCELLEME
public TweetLinkService()
{
InitializeComponent();
if (!EventLog.SourceExists("TweetLinkQueue"))
{
EventLog.CreateEventSource("TweetLinkQueue", "Log");
TweetLinksLog.Source = "TweetLinkQueue";
TweetLinksLog.Log = "Log";
TweetLinksLog.WriteEntry("Log Created!");
}
}
: Ben
namespace TweetLinkQueue
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new TweetLinkService()
};
ServiceBase.Run(ServicesToRun);
}
}
}
/ShowCallStack seçeneğiyle birlikte installutil çalıştırırsanız herhangi bir ek bilgi alır mısınız? – itowlson
Günlük dosyası bilgisi yukarıdaki sorudadır. –
Hizmeti yüklemek isteyen kullanıcı Güvenlik olay günlüğüne yazma iznine sahip mi? – Oded