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

  • SEARCH
  • Home
  • 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 7047747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:48:31+00:00 2026-05-28T02:48:31+00:00

I have a C# service that works without any problems on my laptop (Windows 7).

  • 0

I have a C# service that works without any problems on my laptop (Windows 7). As soon has I install it on my Windows Server 2003 I get the following errors. First, right after clicking start in the service window, I get:

Could not start MyService service on Local Computer. Error 14001: This
application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.

In the event viewer I get the two following errors:

Source: SideBySide EventID: 58

Syntax error in manifest or policy file “C:\Program
Files\HP\MyService\MyService.exe.Config” on line 9.

Source: SideBySide EventID: 59

Generate Activation Context failed for C:\Program
Files\HP\MyService\MyService.exe. Reference error message: Manifest
Parse Error : Internal error.

My .NET application has the target framework of .NET Framework 4 Client Profile. Both laptop and server have VCredist 05, 08 and 2010, and they both have .NET 4, 3.5 3, 2 and 1.1 installed.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <appSettings>
    <!-- Make sure to add \ and end of path -->
    <add key="xmlDistantFolder" value="\\127.0.0.1\epgdata\" />
    <add key="xmlLocalFolder" value="c:\\folder\" />

    <add key="runTargetExec" value="disabled" />
    <add key="targetExe" value="c:\\Windows\explorer.exe" />

   </appSettings>

</configuration>

Also, If I removed my app.config file (actually called MyService.exe.config) the service works, but it can’t read the essential configuration data in it, thus making it useless.

I modified the target framework to .NET 3.5 and in the resources in Application tab in my project properties, and I’ve put in the manifest option to “Create application without a manifest” instead of “Embed manifest with default settings”.

The service now starts, but I get an error about an invalid character in my configuration file. I’ve added this value, and it generates an error, saying that one of the character is invalid to XML. Any clues?

<add key="url" value="http://127.0.0.1/node/exec?path=c:\\\\Program Files\\\\myApp\\\\&exec=myExecutable.exe&flags=[%22/nouser%22,%22/console%22]" />
  • 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-28T02:48:32+00:00Added an answer on May 28, 2026 at 2:48 am

    Here is the solution to my problems:

    1. To fix the Side-By-Side error, I set the manifest option to “Create application without a manifest” instead of “Embed manifest with default settings”.

    2. To fix the invalid character in my configuration file I modified the & for &amp;. This makes the XML valid and parsable by the Configuration Manager class.

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

Sidebar

Related Questions

I have a legacy Windows server service and (spawned) application that works fine in
I have a WCF service that works ok if I create the service without
I have a VB.NET Windows Service that I wrote and it works fine. In
I have an ASP.NET MVC website that works in tandem with a Windows Service
I have six wcf services that I'm hosting in a windows service. Everything works
We have built a .NET Windows Service that we install on client PCs to
I have a web service that takes a byte[] and saves it. This works
I have written a simple WCF service that accepts and stores messages. It works
I have developed a Service for Android that starts when BOOT_COMPLETED is received.It works
I have a client program that consumes a web service. It works quite well

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.