CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: Date Entered: 5/17/2007 6:41:57 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 13 Views: 42 Favorited: 0 Favorite
14 Items, 1 Pages 1 |< << Go >> >|
"Chrisk1152" <>
NewsGroup User
Error Message5/17/2007 6:41:57 PM

0

I'm getting this error 

Configuration Error

 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The provider 'XmlSiteMapProvider' specified for the defaultProvider does not exist in the providers collection.

Source Error:

Line 20: 		<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
Line 21: 		<roleManager enabled="true"/>
Line 22: 		<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
Line 23:            <providers>
Line 24:         <add name="CustomizedMembershipProvider"

here is the code

<?xml version="1.0"?>
<configuration>
 <connectionStrings>
            <add name="Personal" connectionString="server=mssql09.1and1.com;
                 initial catalog=db205332131; uid=dboxxxxxxxxx; Pwd=xxxxxxxxv"/>
            <remove name="LocalSqlServer"/>
            <add name="LocalSqlServer" connectionString="server=mssql09.1and1.com;
                 initial catalog=db205332131; uid=dboxxxxxxxxx; Pwd=xxxxxxxxx"/>
  </connectionStrings>
 <system.web>
  <pages styleSheetTheme="Black"/>
  <customErrors mode="Off"/>
  <compilation debug="false"/>
  <authentication mode="Forms">
   <forms loginUrl="Default.aspx" protection="Validation" timeout="300" />
  </authentication>
  <authorization>
   <allow users="*"/>
  </authorization>
  <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
  <roleManager enabled="true"/>
  <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
           <providers>
        <add name="CustomizedMembershipProvider"
                        type="System.Web.Security.SqlMembershipProvider"
                        connectionStringName="LocalSqlServer"
                        enablePasswordRetrieval="false"
                        enablePasswordReset="true"
                        requiresQuestionAndAnswer="true"
                        applicationName="/main"
                        requiresUniqueEmail="true"
                        passwordFormat="Hashed"
                        maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7"
                        minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10"
                        passwordStrengthRegularExpression=""/>
        </providers>
        </siteMap>
 </system.web>
 <location path="Admin">
  <system.web>
   <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
</configuration>

 

Can you help?

"vhariable" <>
NewsGroup User
Re: Error Message5/17/2007 7:04:35 PM

0

You do not have a siteMap provider named "XmlSiteMapProvider" defined. There is an "AspNetXmlSiteMapProvider" defined by default in the computer's web.config file. Is that what you were trying to use?


Todd Casey, MCSD .NET
http://www.dagrind.com
"Chrisk1152" <>
NewsGroup User
Re: Error Message5/17/2007 7:11:08 PM

0

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Provider must implement the class 'System.Web.SiteMapProvider'.

Source Error:

Line 23:            <providers>
Line 24:         <add name="CustomizedMembershipProvider"
Line 25:                         type="System.Web.Security.SqlMembershipProvider"
Line 26:                         connectionStringName="LocalSqlServer"
Line 27:                         enablePasswordRetrieval="false"

Source File: E:\kunden\homepages\5\d205327401\web.config    Line: 25

Now I'm getting this error

"bullpit" <>
NewsGroup User
Re: Error Message5/17/2007 7:12:23 PM

0

  
"AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" 
siteMapFile="AspNetXmlSiteMapProvider.sitemap"/>
 
[bullpit^-^]
"Chrisk1152" <>
NewsGroup User
Re: Error Message5/17/2007 7:37:11 PM

0

<?xml version="1.0"?>
<configuration>
 <connectionStrings>
            <add name="Personal" connectionString="server=mssql09.1and1.com;
                 initial catalog=db205332131; uid=dboxxxxxxxxx; Pwd=xxxxxxxxxx"/>
            <remove name="LocalSqlServer"/>
            <add name="LocalSqlServer" connectionString="server=mssql09.1and1.com;
                 initial catalog=db205332131; uid=dboxxxxxxxxx; Pwd=xxxxxxxxxx"/>
  </connectionStrings>
 <system.web>
  <pages styleSheetTheme="Black"/>
  <customErrors mode="Off"/>
  <compilation debug="true"/>
  <authentication mode="Forms">
   <forms loginUrl="Default.aspx" protection="Validation" timeout="300" />
  </authentication>
  <authorization>
   <allow users="*"/>
  </authorization>
  <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
  <roleManager enabled="true"/>
  <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
           <providers>
        <add name="CustomizedMembershipProvider"
                        Smile type="System.Web.XmlSiteMapProvider"
                        Smile siteMapFile="AspNetXmlSiteMapProvider.sitemap"
                        connectionStringName="LocalSqlServer"
                        enablePasswordRetrieval="false"
                        enablePasswordReset="true"
                        requiresQuestionAndAnswer="true"
                        applicationName="/Main"
                        requiresUniqueEmail="true"
                        passwordFormat="Hashed"
                        maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7"
                        minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10"
                        passwordStrengthRegularExpression=""/>
        </providers>
        </siteMap>
 </system.web>
 <location path="Admin">
  <system.web>
   <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
</configuration>

 

Is that how i add it? Smiley next to the edit.

"bullpit" <>
NewsGroup User
Re: Error Message5/17/2007 8:00:47 PM

0

Add it as another provider between the <providers></providers> tags. Leave the membership provider as it is. Add another name of the provider above or below the membership provider. You can add more than one provider to your application. You just have add it their seperate <add name...> tags. Also, your sitefile may be different.

<providers>
<add name=Provider1.../>
<add name=Provider2.../>
</providers>

 
[bullpit^-^]
"Chrisk1152" <>
NewsGroup User
Re: Error Message5/17/2007 8:27:50 PM

0

 Ok this is the error message that I get now.

Server Error in '/' Application.

Could not find stored procedure 'GetNonEmptyAlbums'.

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 'GetNonEmptyAlbums'.

Source Error:

Line 207:				connection.Open();
Line 208:				List<Album> list = new List<Album>();
Line 209:				using (SqlDataReader reader = command.ExecuteReader()) {
Line 210:					while (reader.Read()) {
Line 211:						Album temp = new Album((int)reader["AlbumID"], 0, "", false);

Source File: e:\kunden\homepages\5\d205327401\App_Code\PhotoManager.cs    Line: 209

Stack Trace:

[SqlException (0x80131904): Could not find stored procedure 'GetNonEmptyAlbums'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857466
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735078
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
   System.Data.SqlClient.SqlDataReader.get_MetaData() +62
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
   System.Data.SqlClient.SqlCommand.ExecuteReader() +84
   PhotoManager.GetRandomAlbumID() in e:\kunden\homepages\5\d205327401\App_Code\PhotoManager.cs:209
   PhotoManager.GetPhotos() in e:\kunden\homepages\5\d205327401\App_Code\PhotoManager.cs:100

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +296
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2040
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.FormView.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.FormView.EnsureDataBound() +163
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +41
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 

"bullpit" <>
NewsGroup User
Re: Error Message5/17/2007 8:41:56 PM

0

"Chrisk1152" <>
NewsGroup User
Re: Error Message5/22/2007 2:42:59 PM

0

Server Error in '/' Application.

The 'System.Web.Security.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 'System.Web.Security.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 5:  	Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 6:  
Line 7:  		Dim usersall As MembershipUserCollection = Membership.GetAllUsers
Line 8:  		Dim userstoday As New MembershipUserCollection
Line 9:  

Source File: E:\kunden\homepages\5\d205327401\UsersOnline.ascx.vb    Line: 7

Stack Trace:

[ProviderException: The 'System.Web.Security.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.]
   System.Web.Util.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) +758219
   System.Web.Security.SqlMembershipProvider.CheckSchemaVersion(SqlConnection connection) +85
   System.Web.Security.SqlMembershipProvider.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) +1658
   System.Web.Security.Membership.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) +65
   System.Web.Security.Membership.GetAllUsers() +26
   UsersOnline_ascx.Page_Load(Object sender, EventArgs e) in E:\kunden\homepages\5\d205327401\UsersOnline.ascx.vb:7
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 

What's with this error?

"bullpit" <>
NewsGroup User
Re: Error Message5/22/2007 3:17:46 PM

0

Execute the exe aspnet_regsql.exe and see if it works. This exe is located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 if you are using XP and in WINNT if you using 2000.


[bullpit^-^]
"Chrisk1152" <>
NewsGroup User
Re: Error Message5/22/2007 7:17:08 PM

0

OK I'm not getting an error anymore Now I'm not having all the page displayed.

Check

it
"Chrisk1152" <>
NewsGroup User
Re: Error Message5/22/2007 7:17:08 PM

0

OK I'm not getting an error anymore Now I'm not having all the page displayed.

Check

"Chrisk1152" <>
NewsGroup User
Re: Error Message5/22/2007 7:17:09 PM

0

OK I'm not getting an error anymore Now I'm not having all the page displayed.

Check it out here. 

 http://www.shadowstalkersguild.net/default.aspx

 

Thanks Chris

"Chrisk1152" <>
NewsGroup User
Re: Error Message5/22/2007 7:17:22 PM

0

 

14 Items, 1 Pages 1 |< << Go >> >|




   
  Privacy | Contact Us
All Times Are GMT