473,385 Members | 1,372 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,385 software developers and data experts.

please help with ASP.NET access MSDE

Hi ...
I have been reading throuhg the internet to solve a problem that happens to
me when i try to access a databse in SQL mode...
when i access the database through (visual web developer 2005) ie testing
it, then everything runs perfect! but then i simply connected the database
to the page by draging the table to the ASP.NET page and the web developer
creates the necessary code... it seems that the page access the Database
using windows authintication...
but when i run the same page through the IIS (http://locahost/default.aspx)
i get the message at the end of this page
I am guessing that the page tries to access the database through SQL
authintication...

I have many questions please:
1- when i install MSDE i can specify SA password, but what is the user
name???
2- is it that user name and the sa password that is used when accessing
database through SQL:
conAB = New SqlConnection( "Server=localhost;uid=?;pwd=?;database=dbname" )
3- what is this "mixed SQL mode " that i have to enable to allow connecting
to DB by sql and not only windows authintication???
I would appreciate it if i could get answers to those question.
and i thank you all for your time
Ammar
error message:

Login failed for user 'AMMAR\ASPNET'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user
'AMMAR\ASPNET'.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Login failed for user 'AMMAR\ASPNET'.]
System.Data.ProviderBase.DbConnectionPool.GetConne ction(Object
owningObject) +317

System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnectionBase
owningConnection) +90
System.Data.ProviderBase.DbConnectionClosed.Open(D bConnectionBase
outerConnection) +189
System.Data.ProviderBase.DbConnectionBase.Open() +62
System.Data.SqlClient.SqlConnection.Open() +168
System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
srcTable, IDbCommand command, CommandBehavior behavior) +130
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) +144
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
+86

System.Web.UI.WebControls.SqlDataSourceView.Execut eSelect(DataSourceSelectAr
guments arguments) +1167
System.Web.UI.DataSourceView.Select(DataSourceSele ctArguments arguments,
DataSourceViewSelectCallback callback) +18
System.Web.UI.WebControls.DataBoundControl.Perform Select() +112
System.Web.UI.WebControls.BaseDataBoundControl.Dat aBind() +68
System.Web.UI.WebControls.GridView.DataBind() +5
System.Web.UI.WebControls.BaseDataBoundControl.Ens ureDataBound() +1721719
System.Web.UI.WebControls.CompositeDataBoundContro l.CreateChildControls()
+64
System.Web.UI.Control.EnsureChildControls() +108
System.Web.UI.Control.PreRenderRecursiveInternal() +37
System.Web.UI.Control.PreRenderRecursiveInternal() +156
System.Web.UI.Control.PreRenderRecursiveInternal() +156
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5448

Nov 18 '05 #1
0 921

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

Similar topics

1
by: Craig HB | last post by:
I have a distributed inventory control database that I am going to migrate from Access to SQL Server. I am going to use SQL Server Replication to keep the data current. There will one SQL Server...
3
by: *no spam* | last post by:
I want to move my Access 2K database into MSDE. The Access Upsizing Wizard crashes (a known bug wi A2K), so I'm using the following suggested method: Access --> New --> Project (Existing...
0
by: Lou Arnold | last post by:
Why isn't a database created on the MSDE?? Network: Two Win2K Pro machines connected as peers. (No domains.) MS Access is on X, MSDE2000A is on H. MS Access is run under: Windows...
2
by: Jozef | last post by:
Hello, I was wondering if anyone here has experience deploying MSDE database with Access as the front end? My issue is this; I'd like to deploy an MSDE back end on a remote machine that I may...
6
by: baramee | last post by:
I develop web application by asp.net with ms access. In general , it work fine. But if hit rate of web is very much, it occure error 'Unspecified error'. it error on conn.open. My code will be...
12
by: Dan V. | last post by:
Since an ASP.NET/ADO.NET website is run on the server by a single "asp_net worker process", therefore doesn't that mean that even 50 simultaneous human users of the website would appear to the...
1
by: Eva | last post by:
Can anyone plz direct me on a useful article on upgrading my access databae to a msde database. I also have a question. is msde a dbms just like access? is it simple to use like access? I...
3
by: phil cunningham | last post by:
I am using Access to run a database within the company and also have a website that makes some of the information available to the general public And so far everything is working very well q....
13
by: Miro | last post by:
Ok I have been slowely - and ever so slowely teaching myself VB.net Currently I have created an MDB file by code, and added fields to the MDB file by code. I like this solution because, ( im...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.