Conflict between .net framework 1.1 and 2.0

  • Thread starter Thread starter Tolga Tanriverdi
  • Start date 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

Code:
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
Code:
private System.Diagnostics.FileVersionInfo myinfo;

String dir = myproc[i].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
 
tehehe, thats why it is called a beta. Seriously, you may get more help with
this issue in the whidbey newsgroup

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
 
The problem is that you deleted the 2.0 framework and your application
is looking for
C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\aspnet_admin.exe, which,
by using my incredible, Sherlock Holmes-like powers of deduction,
appeard to be a 2.0 file.


Reinstall the 2.0 framework, and all will be balanced in the universe.
 
but if i do that the users who uses my program will have to download the
..net framework 2.0 how can i do it with using .net framework 1.1
are there anyway ?
Thanks
 
Back
Top