c# application won't start in windows xp - c#

I've made c# application in VS 2010 and Windows 7 OS and used .Net 2.0 but when I tried to run it under Windows xp service pack 3 it won't start. There is no error, nothing is happening. Windows xp has .Net 3.5 installed. Does anyone have any idea what could be the problem?

Check if you have some icon in project larger then 32x32. Just solved my problem deleting icon.

Related

C# Winforms App built on Windows 10 complains about dll on windows 7

I have a winforms C# application, using dotnet framework 4.6.1. I recently got a new development machine, which runs windows 10, rather than windows 7.
Now when I try to run the application on a windows 7 machine, I get a strange error. The full text of the error is:
The procedure entry point I_RpcBindingSetPrivateOption could not be located in the dynamic link library RPCRT4.dll.
I have also had a similar message about a different dll - api-ms-win-crt-private-I1-1-0.dll.
After I click on "OK" for this error, the application works fine.
I think this has to do with the fact that windows 10 and windows 7 have different versions of these dll's. But I'm not sure how I can prevent this error.
Can anyone offer any suggestions on how to prevent this error appearing?

How to make simple C# app which works on both Win 7 and Win 10 without installation

We built a simple C# Windows Application with VS 2017 targeting .NET Framework 4.6.
The app works fine as a .exe file on other Windows 10 PCs. However, some PCs are still running on Windows 7 and we would like the app to be able to work on Winodws 7 as well as Windows 10 without further installations of .NET framework or App installation. In other words, just putting .exe file of the app on Windows 7 or Windows 10 and it works.
I thought to target a .NET framework 3.5 or 4 but this needed further installations on either Windows PCs.
Any help from the professionals is appreciated.

Vs2017 how to build target Windows 7

i have one project that runs on windows 7 machines
Well windows 7 embeded, but that still uses win7 SDK.
Its a combination of windows C# and C++
Under vs2017 i no longer have the option to build to the windows 7 target platform (C++ and c#), the lowest i have is windows 8.1
Trying to install 7 sdk results in all kind of chickken egg problems
Took me 2 days install vs2017 with a working c++ crt, so i hope there is a way to re-add win 7 sdk for vs2017.
Or maybe I wonder is there an option to build 8.1 but not use too advanced futures, as 8.1 and 7 besides the glitter graphics was not such a huge change (ea most win 7 apps run fine on 8.1, and i never saw serious programs who worked only on 8.1) Maybe even 8.1 SDK has some backward compatibility build in?

Using SharpDX 2.6.3 under Windows 10

I recently updated my machine from Windows 8 to Windows 10. Since then, I get a NullReferenceException in SharpDX.Toolkit.Game.dll when I call
this.game.Run(context)
Where game inherits from SharpDX.Toolkit.Game and context is a SharpDX.Toolkit.GameContext with a ContextType of DesktopWpf.
On the SharpDX Homepage I could not find any information about migrating projects to Windows 10.
Before upgrading, everything worked fine. Do I need to tweak any special setting? Or do I need to upgrade to SharpDX 3.0.0, which is still alpha?
Edit: The exception is not raised in my code, but in the code of SharpDX - just to make it clear.
I just found the solution:
After upgrading Windows from 8.1 to 10, you need to upgrade your Windows SDK as well by installing the Windows 10 SDK.
The Windows 10 SDK can be downloaded here.

Visual Studio 2012 Windows Phone Application - Target

How can I downgrade the target of my project from 8.0 to 7.1?
I tries to set it from project>settings>"Target Windows Phone OS Version" , but in dropdown list there is only one line: "Windows Phone OS 8.0".
Thank you.
That is probably not possible. One thing you can try, set up windows phone 7.0 sdk and try to port your app there from scratch.Yes, i think that's the only way, so create a new project under wp 7.0 and import all of your files there.
SO also tells about it, some suggestions for you that may help:
How to downgrade a Windows Phone 8 app?
Is there any easy way to downgrade an wp OS 8 app to OS 7.1?

Categories

Resources