HELP AUTHENTICATION CON ARUBA

venerdì 31 agosto 2007 - 14.35

MarcodotnetHell Profilo | Junior Member

Premetto che prima di scrivere questo Post ho già letto tutto quanto riguarda i vari consigli su come agire in questa situazione.
Il mio problema stà nel fatto che ho un dominio aruba con Microsoft SQL Server. Io vorrei utilizzare il mio database sql come database di autenticazione invece di utilizzare quello predefinito di ASP.NET.
Il problema e che non ci riesco.
Quello che ho già fatto sono le seguenti cose:
1) scricato i sorgenti del membership ho levato l'utente dbo e ho ricompilato;
2) poi ho esportato le viste e le store procedure e ho levato da loro l'utente dbo;
3)ho creato nel web.config la parte per gestire unmembership customizzato;

insomma tutto quanto è stato detto. Quando utilizzo l'applicativo in locale mi funziona tutto poi quando cambio la stringa di connessione (anche se è stra corretta) non mi funziona niente.

Qualcuno ha per caso un pezzetto di codice sorgente o di script che con una pagina di login effettui l'autenticazione?

Grazie mille per la vostra disponibilità.

amelix Profilo | Expert

Che errore ti da?


Andrea - http://www.MelisWeb.eu/

[OT] Vendo il mio portatile:
http://www.subito.it/vi/1391126.htm

MarcodotnetHell Profilo | Junior Member

Si è verificato un errore mentre si cercava di stabilire una connessione con il server. Quando ci si connette a SQL Server 2005, questo errore potrebbe essere provocato dal fatto che l'SQL Server non ammette connessioni remote sotto le impostazioni predefinite. (provider: Provider Named Pipes, error: 40 - Impossibile aprire una connessione a SQL Server)

amelix Profilo | Expert

Che stringa di connessione usi?
Una roba tipo:
Data Source=62.149.153.15;Initial Catalog=MSSql000000;User ID={USR};Password={PWD}


Andrea - http://www.MelisWeb.eu/

[OT] Vendo il mio portatile:
http://www.subito.it/vi/1391126.htm

MarcodotnetHell Profilo | Junior Member

si certo anche se adesso ho sostituito a data source solo la parola server e mi da un'altro errore caspita:

Could not find stored procedure 'aspnet_CheckSchemaVersion'.
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: Could not find stored procedure 'aspnet_CheckSchemaVersion'.

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): Could not find stored procedure 'aspnet_CheckSchemaVersion'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +862234
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739110
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1956
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +149
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +903
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +415
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135
Microsoft.Samples.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) in G:\Programmi\ASP.NET Provider Toolkit SQL Samples\SecUtil.cs:260
Microsoft.Samples.SqlMembershipProvider.CheckSchemaVersion(SqlConnection connection) in G:\Programmi\ASP.NET Provider Toolkit SQL Samples\SQLMembershipProvider.cs:218
Microsoft.Samples.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) in G:\Programmi\ASP.NET Provider Toolkit SQL Samples\SQLMembershipProvider.cs:414
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


Io ho importato le store procedure levando i riferimenti a dbo ma sembra non funzioni molto

amelix Profilo | Expert

Guarda.... Una guerra!!!!
cmq non tutti i riferimenti devono essere tolti...

Alcune chiamate sys* hanno bisogno del dbo. davanti.
Io ho combattuto (con "successo") x il setup di YetAnotherForum.
Anche lui ha il problema del dbo. da togliere...

Ti consiglio di fare le create a mano una ad una...
Andrea - http://www.MelisWeb.eu/

[OT] Vendo il mio portatile:
http://www.subito.it/vi/1391126.htm

MarcodotnetHell Profilo | Junior Member

immagino io sono 4 giorni che provo e ormai sono sfinito con questo dbo.
Intanto grazie della tua pazienza, anzi se riesci mandami lo script del tuo db così prendo solo le tabelle del login e le importo nel mio.
Ciao

amelix Profilo | Expert

Io ti posso mandare gli script... ma non sono x l'autenticazione...
Sono per YetAnotherForum....
Andrea - http://www.MelisWeb.eu/

[OT] Vendo il mio portatile:
http://www.subito.it/vi/1391126.htm
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5