Posted by codingsense on October 20, 2009
I got this error while opening a connection. So i googled for the solution and found that some changes are to be done in config file. But nothing happened after changing it as mentioned.
Then i noticed the error correctly and it was pointing correct MDF file but the path was wrong. Eventhough it was correctly mentioned in Config file.
Solution :
So i went to Properties folder -> Settings.Settings and saw that the connection string was not refreshed in it. Then i manually changed it to point to proper location of MDF file and all went right.
Thanks
Naveen Prabhu
Posted in Solutions | Tagged: Solutions | Leave a Comment »
Posted by codingsense on June 25, 2009
Problem :
When we open any dot net exe we can find this error.
Solutions :
There are many possible solutions for the same error arising from different conditions. My problem was solved with the first solution, if still your problem exist check other possible conditions too.
Thanks,
Naveen Prabhu
Posted in Solutions | Tagged: Solutions | Leave a Comment »
Posted by codingsense on February 24, 2009
Problem :
When .Net exe opens the following message is thrown.
“.Net Framework Initialization error. Unable to find the version of the runtime to run this application”
Solutions:
1) Check if .Net is installed with laterst service pack available.
2) Copy the exe and the dll that are referenced in the exe, from a system in which your application is working fine, and replace in the system in which this problem is found.
3) Reinstall latest version of .net. While reInstalling turn off antivirus programs.
4) If any other version of .net is installed in the machine, remove the version and try.
for me each of these solutions worked at different places, try all.
Posted in Solutions | Tagged: Solutions | 2 Comments »
Posted by codingsense on February 6, 2009
Problem :
We may get a problem with .Net exe in 64 Bit OS, it runs properly in 32 Bit OS but will not open or throw some exception when opened in 64 bit OS.
Solution :
The target platform for the project has to be set to x86 and built.
The settings can be found at Right click on project in solution explorer -> Porperties -> build -> Platform Target -> Select x86
Build the exe and check, it would work fine.
Posted in Solutions | Tagged: Solutions | Leave a Comment »