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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:39:24+00:00 2026-05-15T15:39:24+00:00

My C#, .NET 4, app runs fine on XP (media centre to be exact

  • 0

My C#, .NET 4, app runs fine on XP (media centre to be exact – don’t ask).

On Windows 7, it installs fine, but immediately borks. It complains about a NullReferenceException in the callback of a background worker. (I’d love to give you more information, but short of installing VS on the target machine, this is all I can get.)

So, anything I should know about deploying to Windows 7?

Edit: As requested, here’s a better description of what’s going on… When the main form of my app initialises, it uses a background worker to create an instance of a logging class. When the logging class is created, the worker’s callback uses the log instance to add a new entry.

  • 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-15T15:39:25+00:00Added an answer on May 15, 2026 at 3:39 pm

    Like I commented, this is most likely a case of privileges (and it will break on Vista too).

    It should be OK to write to an eventlog, but a restricted (normal) user cannot create an EventLog.

    You may be able to workaround by pre-creating the EventLog with another Tool. But some (XP-minded) software thinks it’s a good idea to always create the Log. Wrong.

    Standard solution is to create the source from your setup.exe

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

Sidebar

Related Questions

My ASP.NET web app runs fine under IIS 7.5. But I want to make
I've got a WPF app that runs perfectly fine inside VS.NET, but if I
I have an app that was developed for Windows but runs fine on MacOS
I have a .NET console app that references a DLL. It runs fine if
I have a C# Web app that runs perfectly fine in VS2010, but when
I have a .NET 2.0 app that runs just fine on XP and Vista,
I have an application that runs fine on .Net 2.0 SP2, but fails to
My app compiles fine. Runs fine on Vista machines. But doesn't even start on
My web app runs on .Net 3.5, all of the dates are saved on
So this code runs in an asp.net app on Linux. The code calls one

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.