Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:52:14+00:00 2026-05-22T21:52:14+00:00

I am having some issues installing my Windows Service. I followed Matt’s instructions here

  • 0

I am having some issues installing my Windows Service.

I followed Matt’s instructions here to create my service:
Easiest language for creating a Windows service

The ServiceAccount is set to User, although I have tried LocalService, LocalSystem and NetworkService.

The purpose of my Windows Service is to create a Host for my WCF Service. I am running Win 7 64-bit Prof.

I ran the following in PowerShell w/ Admin Privelages:

PS C:\windows\Microsoft.NET\Framework64\v2.0.50727> ./installutil "H:\<omitted>\Host Windows Service.exe"

I received the following error:

Microsoft (R) .NET Framework Installation utility Version 2.0.50727.4927
Copyright (c) Microsoft Corporation.  All rights reserved.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the H:\<omitted>\Host Windows Service.exe assembly's progress.
The file is located at H:\<omitted>\Host Windows Service.InstallLog.
Installing assembly 'H:\<omitted>\Host Windows Service.exe'.
Affected parameters are:
   assemblypath = H:\<omitted>\Host Windows Service.exe
   logfile = H:\<omitted>\Host Windows S
ervice.InstallLog
   logtoconsole =
Unable to create an instance of the Host_Windows_Service.ProjectInstaller installer type.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
The inner exception System.Security.SecurityException was thrown with the following error message: That assembly does no
t allow partially trusted callers..

An exception occurred during the Install phase.
System.InvalidOperationException: Unable to create an instance of the Host_Windows_Service.ProjectInstaller installer ty
pe.
The inner exception System.Reflection.TargetInvocationException was thrown with the following error message: Exception h
as been thrown by the target of an invocation..
The inner exception System.Security.SecurityException was thrown with the following error message: That assembly does no
t allow partially trusted callers..

The Rollback phase of the installation is beginning.
See the contents of the log file for the H:\<omitted>\Host Windows Service.exe assembly's progress.
The file is located at H:\<omitted>\Host
 Windows Service.InstallLog.
Rolling back assembly 'H:\<omitted>\Host Windows Service.exe'.
Affected parameters are:
   assemblypath = H:\<omitted>\Host Windows Service.exe
   logfile = H:\<omitted>\Host Windows Service.InstallLog
   logtoconsole =
Unable to create an instance of the Host_Windows_Service.ProjectInstaller installer type.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
The inner exception System.Security.SecurityException was thrown with the following error message: That assembly does no
t allow partially trusted callers..
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.InvalidOperationException: Unable to create an instance of the Host_Windows_Service.ProjectInstaller installer ty
pe.
The inner exception System.Reflection.TargetInvocationException was thrown with the following error message: Exception h
as been thrown by the target of an invocation..
The inner exception System.Security.SecurityException was thrown with the following error message: That assembly does no
t allow partially trusted callers..
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback wil
l continue. However, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

I even tried disabling UAC altogether with no luck. Please let me know if you need more info.

I am tempted to use Matt’s method for installing a Windows Service here: How to make a .NET Windows Service start right after the installation? . Although, I am worried I will run into similar problems.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:52:15+00:00Added an answer on May 22, 2026 at 9:52 pm

    Try moving the service and its dependencies to the C: drive and trying again, especially if H: is a network drive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some issues with producing an int matrix without creating memory leaks. I
We've been having some issues with a SharePoint instance in a test environment. Thankfully
I have been having some issues with LINQ-To-SQL around memory usage. I'm using it
We are having some issues getting SharePoint to work as we want it to.
I am having some issues with using the OrderBy extension method on a LINQ
I am using Fluent NHibernate and having some issues getting a many to many
I'm having some inheritance issues as I've got a group of inter-related abstract classes
We are having some performance issues with a page and I wanted to ask
I'm having some weird issues with Xcode, and this is pretty much impossible to
I'm trying to experiment with xampp. After having some space issues, I wanted to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.