AfricaDotNet
www.AfricaDotNet.com Continues the .NET Conversation in Africa

error "Object reference not set to an instance of an object" when running a vs2003 app

rated by 0 users
Not Answered This post has 0 verified answers | 2 Replies | 3 Followers

Top 25 Contributor
1 Posts
kevinabasi posted on 03-13-2009 2:54 AM

Hi guyz, I experiencing a wierd error as shown above. I have an application developed with VS2003(with frame work 1.1), however, on this same computer I have also installed VS2005(with framework 2.0). The funny thing is whenever I try to run the VS2003 application it breaks with the above error.

From my research, I'm suspecting that there could be either a conflict between the two frameworks(i.e 1.1 & 2.0) or there's a datacomponent is either over-written when VS2005 is installed.

Initially, I used to experience this problem when I deploy two apps developed from two different framework but now it has reached to a level that I can not even run the VS2003 on the same computer with VS2005.

Please can anyone show how to go round this problem for I have even tried formatting and re-installation.

All Replies

Top 10 Contributor
Male
22 Posts

hi, i have never encountered this but according to my research you can actually instruct your application to use a certain version of the framework by adding

<?xml version ="1.0"?>

<configuration>

            <startup>

                       <supportedRuntime version="v1.1.4322" />

           </startup>

</configuration>

to your appication config.

Top 10 Contributor
40 Posts

You might want to configure IIS to use ASP.NET Version 1.1. Right click the virtual directory in IIS and go to the ASP.NET Tab. You can change the version from there

Page 1 of 1 (3 items) | RSS
(c) AfricaDotNet
Powered by Community Server (Non-Commercial Edition), by Telligent Systems