Richard Von

WINDOWS XP STANDARD

I use an graphics application that is customized using C# code. The code is compiled before use and then is executed as needed.

Recently I had to change one of my customized indicators and found that the DrawDiamond command would not work. Changing nothing else in the code except making that phrase DrawSquare caused the indicator to work.

An unchanged backup of the indicator that had previously worked fine also would not work as replacing the non-working one requires compiling the backup version.

Also, another customized indicator properly displays diamonds in the same application -- I am afraid to re-compile it because I do not want to lose this second indicator.

So my conclusion is that the compiler must be corrupted somehow. I have removed all Microsoft.NET Framework entries via add/remove programs and downloaded and installed only Microsoft.NET Framework 2.0 with no success -- still won't draw diamonds with any code.

How can I fix this I would appreciate any help.



Re: Visual C# General Corrupted C# compiler?

OmegaMan

I would recommend you try this on a second computer. As any programmer knows its usually the last thing installed or uninstalled which affects a program. If you can get it working on the other computer, then that means something about its environment is causing the problems.

Otherwise, for nothing else but peace of mind, uninstall VS2005 and reinstall it with SP1 and rebuild and see if the same happens.





Re: Visual C# General Corrupted C# compiler?

Richard Von

Good idea, I will try on second computer.

I am pushing my depth here and I'm not entirely sure what VS2005 means. Is this the Microsoft .NET or all of XP or exactly what

By the way, I uninstalled Microsoft .NET 1.0 and its update as well as 2.0, but only reinstalled 2.0. Is there any reason I should have tried to find and reinstall 1.0

Thanks for considering my problem.





Re: Visual C# General Corrupted C# compiler?

Oscarfh

VS2005 = visual studio 2005.





Re: Visual C# General Corrupted C# compiler?

OmegaMan

.Net versions are independent of each other and should not have to be installed/unistalled. VS2005 installs .Net 2 if it is not on the system. You want .Net 1 on your system if you have .Net 1 applications that need it to run.





Re: Visual C# General Corrupted C# compiler?

Ji Cheng Wang - MSFT

Hi Richard,

As I understand, you should make sure your application is running on which version of .NET first. Then determine if you need to install .NET Framework 1.x or .NET Framework 2.0. My suggestions as follow:

1) If your application is created by VS.NET 2002, you need to install .NET Framework 1.0 to run it. If you made some changes to your application and would like to recompile it, try to install VS.NET 2002.

2) If your application is created by VS.NET 2003, you need to install .NET Framework 1.1 to run it. If you made some changes to your application and would like to recompile it, try to install VS.NET 2003.

3) If your application is created by VS.NET 2005, you need to install .NET Framework 2.0 to run it. If you made some changes to your application and would like to recompile it, try to install VS.NET 2005.

Note:

Different .NET Framework versions are independent, and they will not affect each other.

Hope this helps,






Re: Visual C# General Corrupted C# compiler?

Richard Von

It will take me some time to find out what the software supplier used to create the application. So far I have removed and re-downloaded and re-installed .NET Framwork 2.0 and 1.1. Is there a separate download VS.NET 2005 Where would I find it

Thanks.





Re: Visual C# General Corrupted C# compiler?

OmegaMan

There is no such thing as VS.NET. The different IDEs of Visual Studio 200X are independent, so to speak, of an .Net versions. But to work they will install .Net X version that their build environment targets.