i am using asp.net,C#,VS 2005,and sql server 2005
i have created a setup file for my web project...
i have also installed IIS in my PC..
i have installed my project ...
my web.config contains the following connection string:
<configuration>
<appSettings/>
<connectionStrings>
<add name="conStr" connectionString="Server=localhost;Database=MYDB;Trusted_Connection=Yes;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" defaultLanguage="c#">
but when i type http://localhost/WebSetup1/Firstpage.aspx
it will display a page..
but when i click on page that contains connection with the database it is not shown or executed..
it will give error message like object reference not set to an instance of an object when i do click on insert button...
In short : database connection is not established..
what is the problem..
any solution please..
regards
karan