An serious bug.

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I am use VS2005 to develop Web application.
I put some DataTableAdapters in a ClassLibrary. When the Web Application
need to deal with data, it call the methods in the ClassLibrary.
It run ok in the VS2005 IDE. But when I deployment my Wep applicaotn to Web
server, my WebApplicaiton fail to update using the mentod in the
classlibrary, but it is ok to get data.

Is it a bug? or how can I do?
 
Yes, it is most likely one of your bugs.

I'm not sure how you can possibly expect anyone to be able to help you here
since what you are describing is virtually every web application - most of
which work fine. It is obviously something specific to what you are doing,
but you did not provide any code or any information other then vague
details.
 
Thanks,
The connections string in my web.config is:
<connectionStrings>
<add name="myDataBase" connectionString="Data Source=.\SQLEXPRESS;Initial
Catalog=Health;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="Health" connectionString="Data Source=.\SQLEXPRESS;Initial
Catalog=Health;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>

The first one : myDataBase is used by web application and the second one is
copy form the Classlibrary.
If the TableAdapter is in Web application, it run ok.
But if the TablAdpater is in ClassLibrary it can retrive data, but can't
update data(no any error message)

But both work ok if with VS2005 IDE.
 
Back
Top