conflict between .net framework 1.1 and 2.0

  • Thread starter Tolga Tanriverdi
  • Start date
T

Tolga Tanriverdi

I wrote my program with visual c#2005 so it s written with .net framework
2.0 but after that i take my code and compiled with visual studio .net 2003
it was working good until today.
Today i deleted the .net framework 2.0 and i took this error when my program
executed


An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
system.dll

Additional information:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\aspnet_admin.exe



here is the part of my code which gives the error

private System.Diagnostics.FileVersionInfo myinfo;

String dir = myproc.MainModule.FileName.ToString();
if (dir[0] == 'C' || dir[0] == 'D' || dir[0] == 'E' || dir[0] == 'F' ||
dir[0] == 'G' || dir[0] == 'H')
{
myinfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(dir);
}



what can be the problem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top