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 491413
In Process

The Archive Base Latest Questions

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

As part of getting our application ready for Windows7, we recently added a manifest

  • 0

As part of getting our application ready for Windows7, we recently added a manifest to our our user interface’s exe.

It runs ok on Windows7. However, now when I try to run the signed exe on Windows Server 2003, the program crashes during startup. I’ve looked at the crash dump, and it seems to by failing in the constructor of Castle.Core.Resource.ConfigResource which is called from the Program.Main method.

If this is included in the manifest:

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
        <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
        <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
    </application>
</compatibility>

then it crashes, but if I comment it out and rebuild, it’s ok.

Have you got any ideas about what could be causing the problem?

  • 1 1 Answer
  • 4 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-13T02:00:31+00:00Added an answer on May 13, 2026 at 2:00 am

    Well, I still don’t know the reason why it doesn’t work, but I have a workaround.

    Instead of loading the castle configuration from the app.config file with something like:

    IWindsorContainer container =
        new WindsorContainer(
            new XmlInterpreter(new ConfigResource("castle")));
    

    Move the config into a literal string and load it this way:

    StaticContentResource scr = new StaticContentResource(
        @"<configuration>
            <!-- Move stuff that was originally in the app.config to here -->
        </configuration>"
        );
    IWindsorContainer container = new WindsorContainer(new XmlInterpreter(scr));
    

    It seems the problem is down to ConfigResource’s constructor running this line:

    XmlNode section = (XmlNode) ConfigurationManager.GetSection(sectionName);
    

    this returns null if I use mt.exe to add a manifest to the console, but returns the expected value if I don’t.

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

Sidebar

Related Questions

We recently upgraded our website project to Visual Studio 2010. I am now getting
The part of the application that I am currently having trouble getting to work
What are your tricks on getting the caching part of web application just right?
I am getting this error as part of this larger puzzle here . var
Possible Duplicate: Getting odd/even part of a sequence with LINQ How can I get
I am getting a strange behavior for multi-part form. I have a simple HTML
I have seen this question that talks about getting the last part of a
Part of my web application is a background script that polls from a beanstalkd
Part of our website is protected with .htaccess style password protection. When you try
I am part of a development team building a new ASP.NET 3.5 web application.

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.