Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 2.0 / 3.5 / 4.0
Problema con SqlMembershipProvider
martedì 29 agosto 2006 - 15.09
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
Saturno73
Profilo
| Newbie
17
messaggi | Data Invio:
mar 29 ago 2006 - 15:09
Il mio Host non permette di gestire il database come utente dbo ma solo come MSSqlXXXXXX che è il nome del database fornito dal mio Host.
Per questo motivo è impossibile usare l'SqlMembershipProvider.
Sto tentando di risolvere il problema ricompilando i sorgenti del provider originali e sostituendo a "dbo" il nome del database datomi dall'Host.
Ci sto provando in tutti i modi ma non riesco a risolvere.
Ho creato sul db le tabelle e le procedure sostituendo al posto di dbo il nome MSSqlXXXXXX datomi dall'Host.
Ho poi inserito in APP_CODE i files .cs contenuti in "ASP.NET Provider Toolkit SQL Samples"
Ed ho sostituito anche qui MSSqlXXXXXX al posto di dbo.
poi ho sostituito nel web.config al posto di
type="System.Web.Security.SqlMembershipProvider"
ho messo
type="Microsoft.samples.SqlMembershipProvider"
Non ho risolto niente...
Qualcuno è riuscito già a risolvere il problema????
Grazie a tutti!!!!!
Saturno73
Profilo
| Newbie
17
messaggi | Data Invio:
mar 29 ago 2006 - 17:23
Cioè cosa dovrei fare?
adesso l'errore che mi da è:
__________________________________________________
The 'Microsoft.Samples.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.
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.Configuration.Provider.ProviderException: The 'Microsoft.Samples.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.
Source Error:
Line 231:
Line 232: if (schemaVersionCheck == -1) {
Line 233: throw new ProviderException(SR.GetString(SR.Provider_Schema_Version_Not_Match, provider.ToString(), version));
Line 234: }
Line 235: else if (schemaVersionCheck == 0) {
Source File: d:\inetpub\webs\XXXXXXXX\App_Code\ASPNET\SecUtil.cs Line: 233
_________________________________________________
gae58
Profilo
| Senior Member
467
messaggi | Data Invio:
ven 21 set 2007 - 11:34
ciao mi trovo un passo dietro di te e cioè devo compilare i sorgenti dei provider e non so come si fa.
Mi potresti aiutare?
grazie
Gaetano
Torna su
Stanze Forum
Elenco Threads
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 !