0

I have a .NET application running on a client computer using Windows 10 Home 2017, version 1703, build 15063.250.

The application is a Windows Form Application developed under .NET 1.1. I have the .Net 1.1 successfully installed on the computer.

When I run the application I get a simple message box with the error:

Failed to load resources from file. Please check setup.

There is no entry on the Event Viewer.

The error only happens on computers running this specific windows version. I already searched the web for this issue but I didn’t found a useful answer.

11
  • 2
    Why are you targeting .NET 1.1, it is extremely old. there is no version of windows out there that does not come with at least 2.0 bundled in. Commented May 2, 2017 at 15:11
  • 1
    The earliest supported .NET version is 4.5.2. Support for .NET 1.1 ended over 10 years ago Commented May 2, 2017 at 15:16
  • @PanagiotisKanavos one correction is that .NET 1.1 support only expired on July 14, 2015, so not "10 years ago". Besides, .NET 3.5.1 is still supported.
    – Lex Li
    Commented May 2, 2017 at 15:26
  • @LexLi that's not correct. Support as in "limited life support" was available only for those OSs that had .NET 1.1 preinstalled, which is Windows XP and 2003. For every other OS, real support ended when .NET 2.0 came out. The same holds for 3.5.1 - it only has limited support through the OSs where it came preinstalled. Commented May 2, 2017 at 15:50
  • @LexLi even that support may not mean much - TLS 1.2 was added in .NET 4.5.2 You can't make a call to GMail or any other service that requires TLS1.2 from any earlier version. Even if you have an OS that offers "support" for an obsolete .NET version, you may not be able to use it for long Commented May 2, 2017 at 15:51

2 Answers 2

0

Basically it looks like Creators update did some stuff to how .NET 1.1 works. I have an application that runs fine on 14393 (Anniversary update). In Creators update version (15063) it fails with exact same error.

But, the application can still be run as Domain or local admin account. Hence, it must be some security issue.

EDIT (POSSIBLE ANSWER)

I have located and fixed the error in my project.

The error means there is StackOverflowException in your code. Yeah, I know.

In my project it was this piece of code:

public object GetValue(string someParam) {
    try {
        return GetValueEx(someParam).ToString();
    }
    catch (Exception ex) {
        return null;
    }
}

Method GetValueEx returns object.

Now, the problem was, that GetValueEx returned null and for some odd reason on Windows 10 Creators update this will not just throw NullReferenceException, but would start bubbling and bubbling until StackOverflowException would be thrown.

In earlier versions of Windows OS, this works without a glitch.

I fixed this code snippet to:

public object GetValue(string someParam) {
    try {
        object result = GetValueEx(someParam);
        return (null == result) ? result : result.ToString();
    }
    catch (Exception ex) {
        return null;
    }
}

and the problem was gone.

0

just do a MessageBox.Show in all your catch loops and play your code in a NON Windows 10 OS. You will see a NullReferenceException. Modify your code to avoid this exception, then it will work in your Windows 10 OS up to date with Creator update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.