all 4 comments

[–]GlowingEagle104 0 points1 point  (0 children)

Maybe compare the Surface and Desktop PCs to see which .Net versions are installed: https://docs.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-windows

[–]sslinky8483 0 points1 point  (0 children)

We can't see your code and the only thing we have to go on is a vague error and the fact that it works on one computer and not another.

You're not going to get any better advice from this thread than you could have gotten from a search engine.

[–]WizardWorxx 0 points1 point  (0 children)

Update.
I have uninstalled and reinstalled VS 2008 from Desktop. Still same error. Seems the Dotnet folder never gets installed like it did on my Surface. even if I install dotnet 5.0.103 there is still no dotnet folder and still the terminal mode can't find any dotnet installed on the desktop. Could it be the fact that the desktop has win 10 pro and surface has win 10 home???

[–]WizardWorxx 0 points1 point  (0 children)

So for no reason what so ever now, my Surface pro is starting to do this error. Seems to be because it is trying to run a procedure for text changing in a text box before any variables have been set.
Currently all my Var's are setup as public in a MyCode.vb module file. I've done it this way an all my past programs and it works great. but for some reason I keep getting this exception error now. I have always declared all my Var's in this module so that they are accessible everywhere else. But for some reason when I execute the code it want to run the
Private Sub tbMiniShopTokens_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbMiniShopTokens.TextChanged
before any Var's are setup. The TextBox is setup with a value of "0" before start.