473,287 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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 1083
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/>
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.