473,466 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A serious bug??

ad
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?
May 19 '06 #1
7 1088
It sounds more like a problm with the deployment.

What is the error messate you get?

ad wrote:
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?

May 19 '06 #2
I think it's a permission issue.
Check with what user you access the database.

Regards,
Tasos

May 19 '06 #3
ad
There are no failure messages, only didn't udpate any record.
If I include the TableAdapter in the Web application, it update ok.
When the TableAdapter in in anothre ClassLibrary, it update no records.


"Göran Andersson" <gu***@guffa.com>
???????:Ok**************@TK2MSFTNGP02.phx.gbl...
It sounds more like a problm with the deployment.

What is the error messate you get?

ad wrote:
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?

May 19 '06 #4
ad
The ClassLibrary has it's own connection string in app.config.
For example, the connection name of the classlibrary is myDB.
I have inclue the myDB in the web.config of the WebApplication.

After deployment, the ClassLibrary uss the myDB in the web.config.
Is it this the problem?
"Tasos Vogiatzoglou" <tv*****@gmail.com>
???????:11**********************@g10g2000cwb.googl egroups.com...
I think it's a permission issue.
Check with what user you access the database.

Regards,
Tasos

May 19 '06 #5
Check the user you are connecting to the database.

Also check if you have impersonation enabled and check if the
impersonated user has right access to the database. ( If the connection
string has something like "Integrated Authenticaion=true" or SSPI
Authentication="True", then most probably you are trying to write to
the database using either the impersonated account or ASPNET).

Check the user permissions in the database

May 19 '06 #6
ad
The connection string in the web.config is like:
<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 connection : myDataBase is used for web project. and the
second : Health is used for ClassLibrary.
Is there something I mak mistake:

"Tasos Vogiatzoglou" <tv*****@gmail.com>
???????:11**********************@u72g2000cwu.googl egroups.com...
Check the user you are connecting to the database.

Also check if you have impersonation enabled and check if the
impersonated user has right access to the database. ( If the connection
string has something like "Integrated Authenticaion=true" or SSPI
Authentication="True", then most probably you are trying to write to
the database using either the impersonated account or ASPNET).

Check the user permissions in the database

May 19 '06 #7
You are connecting to your database with integrated authentication.
That means that if you have impersonation enabled (sth like <identity
impersonate="true" in your web.config) you connect to the database with
the user you are accessing the webapplication. For example if the user
in you pc is AD a user AD with read/write permissions must exist in the
database.

If there is no impersonation, then you are connecting to the database
with ASPNET user.

In both situations the most probable cause is that you have permissions
issues with the users connecting to your database. You should recheck
with your db management tool the permissions.

Regards,
Tasos

May 20 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: VlaR | last post by:
As I got no reply to my first post ("Serious bug in ngen.exe") within few business days but having MSDN Universal Subscription I posting this problem again (with just registered nospam alias). I...
142
by: Herr Lucifer | last post by:
As the founder of .NET framework, Microsoft claims that it invention will be the next best platform for programming in a near future. Now it is 2005, ..NET is 5 years old, and can talk and walk for...
1
by: iceColdFire | last post by:
Hi, I am into C++ compiler validation since past couple of years. Lately I have grown with a strange feeling...while on the course of my work, I start getting bored and very bored...I have...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
5
by: Colonel Kernel | last post by:
I've found what seems to be a very serious (although obscure) bug in VC++.NET 2003 when using Loki's class hierarchy-generation facilities. The compiler seems to generate an invalid v-table for my...
7
by: Ioannis Vranos | last post by:
Fellows there is probably a serious implementation bug of C++/CLI indexed property in VC++ 2005, it looks like it is implemented the opposite way than the C++/CLI draft says! At first the...
2
by: WJ | last post by:
This post is a follow up from the original post dated Oct 16, 2004 "I have this problem, pls help!" created by Paul FI. These bugs are rather serious and we would like to know how to get around. ...
69
by: Edward K Ream | last post by:
The pros and cons of making 'print' a function in Python 3.x are well discussed at: http://mail.python.org/pipermail/python-dev/2005-September/056154.html Alas, it appears that the effect of...
1
by: Guy Macon | last post by:
Serious Security Flaw in Google Chrome: http://www.readwriteweb.com/archives/security_flaw_in_google_chrome.php -- Guy Macon <http://www.GuyMacon.com/>
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.