Click here to Skip to main content
15,890,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: question of generate a link Pin
Eddy Vluggen18-Aug-12 22:58
professionalEddy Vluggen18-Aug-12 22:58 
AnswerRe: question of generate a link Pin
Rahul Rajat Singh20-Aug-12 17:59
professionalRahul Rajat Singh20-Aug-12 17:59 
Generalquestion of password protection Pin
Member 860012318-Aug-12 3:28
Member 860012318-Aug-12 3:28 
GeneralRe: question of password protection Pin
Hesham Amin18-Aug-12 15:47
Hesham Amin18-Aug-12 15:47 
AnswerRe: question of password protection Pin
Rahul Rajat Singh20-Aug-12 18:00
professionalRahul Rajat Singh20-Aug-12 18:00 
QuestionAsp.net C# Pin
jojoba201117-Aug-12 20:24
jojoba201117-Aug-12 20:24 
AnswerRe: Asp.net C# Pin
AmitGajjar19-Aug-12 19:52
professionalAmitGajjar19-Aug-12 19:52 
QuestionError: login failed for user, in entity framework 1.0 Pin
indian14317-Aug-12 11:52
indian14317-Aug-12 11:52 
Hi all,

In our ASP.Net application we are using Entity Framework 1.0, when I am trying to get data from entity framework, I am getting the following error (The underlying provider failed on Open and in inner exception login failed for user). And I am using SQL server 2008 R2 and Windows Authntication. In some forum, it is suggested to create User Id and Password for the AppPool and then add the same user id and password to the database also then change the connection string. That is not an option for me. My SQL Server is remote for my application from the development itself. I dont have local SQL Server, only client on my machine and Windows authentication is a must for me.

Can anybody please help me in resolving this issue at Entity Framework side or .Net side insteam of changing something in the Database, because its not owned by us.

Important: After I debugged it for a while I found that Database value is coming as empty string for the context's connection string object. Is it expected behavior entity frame work. Please can some body explain me. What would cause entity framework to get database name as empty string? Please help me in resolving this issue. and whats the importance of  <dataConfiguration defaultDatabase="LocalSqlServer" />, is the database value picked depending on this? Should I change its value if I just have the client on my machine and SQL Server Database instance is running on the remote server. But still I connect the SQL Server using Windows Authentication. Please somebody help me in resolving this.
And I am getting the following exception also:
System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: Login failed for user 'WADS\LNIDPC002580D$'.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
--- End of inner exception stack trace ---
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
at System.Data.EntityClient.EntityConnection.Open()
at System.Data.Objects.ObjectContext.EnsureConnection()
at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<t>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at DataAccessLayer.MessageObjectAdaper.GetMessages(Guid messageid) in D:\LNI Applications\Washington Stay at Work\SourceCode\StayatWork-VS2010\DataAccessLayer\MessageObjectAdaper.vb:line 46
Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Error: login failed for user, in entity framework 1.0 Pin
Hesham Amin18-Aug-12 15:51
Hesham Amin18-Aug-12 15:51 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14318-Aug-12 22:30
indian14318-Aug-12 22:30 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
Hesham Amin19-Aug-12 2:35
Hesham Amin19-Aug-12 2:35 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14319-Aug-12 4:59
indian14319-Aug-12 4:59 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
Hesham Amin19-Aug-12 5:42
Hesham Amin19-Aug-12 5:42 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14319-Aug-12 5:49
indian14319-Aug-12 5:49 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
Hesham Amin19-Aug-12 6:01
Hesham Amin19-Aug-12 6:01 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14319-Aug-12 6:31
indian14319-Aug-12 6:31 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
Hesham Amin20-Aug-12 0:37
Hesham Amin20-Aug-12 0:37 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14320-Aug-12 4:02
indian14320-Aug-12 4:02 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14320-Aug-12 10:46
indian14320-Aug-12 10:46 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
Hesham Amin20-Aug-12 19:31
Hesham Amin20-Aug-12 19:31 
GeneralRe: Error: login failed for user, in entity framework 1.0 Pin
indian14321-Aug-12 6:02
indian14321-Aug-12 6:02 
QuestionASP.Net AjaxToolkit MaskedEditExtender defaults to AM only when system time is between 12-1 PM Pin
pjshah7017-Aug-12 3:27
pjshah7017-Aug-12 3:27 
Questionrun a code from web user control Pin
Jassim Rahma16-Aug-12 8:51
Jassim Rahma16-Aug-12 8:51 
AnswerRe: run a code from web user control Pin
Rahul Rajat Singh16-Aug-12 18:07
professionalRahul Rajat Singh16-Aug-12 18:07 
AnswerRe: run a code from web user control Pin
bVagadishnu17-Aug-12 11:07
bVagadishnu17-Aug-12 11:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.