Problema con SqlMembershipProvider

martedì 29 agosto 2006 - 15.09

Saturno73 Profilo | Newbie

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

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

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
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