Exceptions while creating pages
I have a user getting the following exceptions while trying to create pages. Any ideas?
I wonder if I'm missing something in my database, like a field isn't auto-populating. I had an issue where I was pointed to the wrong database for a stretch; I compared the database and tried to synchronize them, but maybe I missed something. I can provide DB schemas of any tables you want to look at.
----------------------------------------
Timestamp: 5/20/2011 1:50:51 PM
Message: HandlingInstanceID: 208a8d71-d1fd-4ee2-a0f1-0ff98974205a
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
05/20/2011 09:50:51
Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Invalid type specified Telerik.Sitefinity.Security.Data.SecurityDataProvider
Source : Telerik.Sitefinity
Help link :
ParamName :
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace : at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)
Additional Info:
MachineName : WebServer
TimeStamp : 5/20/2011 1:50:51 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-2-129503719108758368
ThreadIdentity : eric
WindowsIdentity : QA\MyUser
Requested URL : /sitefinity
Category: ErrorLog
Priority: 0
EventId: 9010
Severity: Warning
Title:Enterprise Library Exception Handling
Machine: WebServer
App Domain: /LM/W3SVC/2/ROOT-2-129503719108758368
ProcessId: 4940
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:4024
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 5/20/2011 1:54:26 PM
Message: HandlingInstanceID: 2855adfb-2cc5-419b-b98d-a56efd342bf5
An exception of type 'System.Web.HttpException' occurred and was caught.
------------------------------------------------------------------------
05/20/2011 09:54:26
Type : System.Web.HttpException, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : This is an invalid webresource request.
Source : System.Web
Help link :
WebEventCode : 0
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)
Stack Trace : at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Additional Info:
MachineName : WebServer
TimeStamp : 5/20/2011 1:54:26 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-2-129503719108758368
ThreadIdentity : eric
WindowsIdentity : QA\MyUser
Requested URL : /WebResource.axd?d=6BR0AgPHu5jBqxSblR0Y2LiUPDf0NS-L3bJBRhPbdhz1gUFYb1P42YofyldGG6cdxZIZWknKa9XR4fm3HLibvAAPjnGsvnDa1NkX0sv7tgCGz-h75I5sMRdJafg12TFP7kBEvdyvywoK9NOuyEQZ00f-uErCU_e3qK53R7c3kpgoVex48DO4_-R3ayImjB48ncGV02R78ed7r07hjsUZt4oPzQVZZnshRRCJxzhNcbc1&t=634413345742887027
Category: ErrorLog
Priority: 0
EventId: 90000
Severity: Error
Title:Enterprise Library Exception Handling
Machine: WebServer
App Domain: /LM/W3SVC/2/ROOT-2-129503719108758368
ProcessId: 4940
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:4836
Extended Properties: ASPIMPERSONATING -
----------------------------------------
----------------------------------------
Timestamp: 5/20/2011 1:54:54 PM
Message: HandlingInstanceID: a41f329b-803d-458e-a48f-f7902dad9b73
An exception of type 'Telerik.OpenAccess.OpenAccessException' occurred and was caught.
--------------------------------------------------------------------------------------
05/20/2011 09:54:54
Type : Telerik.OpenAccess.OpenAccessException, Telerik.OpenAccess, Version=2011.1.510.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
Message : You cannot save your changes, becase a page with such URL already exists. Change the page URL and try again
Source : Telerik.Sitefinity
Help link :
InnerExceptions : System.Exception[]
FailedObject :
BackendError :
Reason : Internal
CanRetry : False
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CommitTransaction(System.String)
Stack Trace : at Telerik.Sitefinity.Data.TransactionManager.CommitTransaction(String transactionName)
Additional Info:
MachineName : WebServer
TimeStamp : 5/20/2011 1:54:54 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-2-129503719108758368
ThreadIdentity : eric
WindowsIdentity : QA\MyUser
Requested URL : /Sitefinity/Services/Pages/PagesService.svc/00000000-0000-0000-0000-000000000000/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&providerName=&managerType=Telerik.Sitefinity.Modules.Pages.PageManager&provider=&workflowOperation=
Inner Exception
---------------
Type : Telerik.Sitefinity.Pages.Model.DuplicatePageUrlException, Telerik.Sitefinity.Model, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
Message : You cannot save your changes, becase a page with such URL already exists. Change the page URL and try again
Source : Telerik.Sitefinity.Model
Help link :
Page : Telerik.Sitefinity.Pages.Model.PageNode
Data : System.Collections.ListDictionaryInternal
TargetSite : Void PreStore()
Stack Trace : at Telerik.Sitefinity.Pages.Model.PageNode.PreStore()
at OpenAccessRuntime.DataObjects.PCStateMan.doJDOPreStore(LifecycleListenerManager[] listeners)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.callPreStore()
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.prepareForStore(Boolean commit)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.flush()
Category: ErrorLog
Priority: 0
EventId: 9010
Severity: Warning
Title:Enterprise Library Exception Handling
Machine: WebServer
App Domain: /LM/W3SVC/2/ROOT-2-129503719108758368
ProcessId: 4940
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:4852
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 5/20/2011 1:56:09 PM
Message: HandlingInstanceID: 614c8a0d-05f5-45de-9cc4-0b6a6956b2db
An exception of type 'Telerik.OpenAccess.OpenAccessException' occurred and was caught.
--------------------------------------------------------------------------------------
05/20/2011 09:56:09
Type : Telerik.OpenAccess.OpenAccessException, Telerik.OpenAccess, Version=2011.1.510.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
Message : You cannot save your changes, becase a page with such URL already exists. Change the page URL and try again
Source : Telerik.Sitefinity
Help link :
InnerExceptions : System.Exception[]
FailedObject :
BackendError :
Reason : Internal
CanRetry : False
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CommitTransaction(System.String)
Stack Trace : at Telerik.Sitefinity.Data.TransactionManager.CommitTransaction(String transactionName)
Additional Info:
MachineName : WebServer
TimeStamp : 5/20/2011 1:56:09 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-2-129503719108758368
ThreadIdentity : eric
WindowsIdentity : QA\MyUser
Requested URL : /Sitefinity/Services/Pages/PagesService.svc/00000000-0000-0000-0000-000000000000/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&providerName=&managerType=Telerik.Sitefinity.Modules.Pages.PageManager&provider=&workflowOperation=
Inner Exception
---------------
Type : Telerik.Sitefinity.Pages.Model.DuplicatePageUrlException, Telerik.Sitefinity.Model, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
Message : You cannot save your changes, becase a page with such URL already exists. Change the page URL and try again
Source : Telerik.Sitefinity.Model
Help link :
Page : Telerik.Sitefinity.Pages.Model.PageNode
Data : System.Collections.ListDictionaryInternal
TargetSite : Void PreStore()
Stack Trace : at Telerik.Sitefinity.Pages.Model.PageNode.PreStore()
at OpenAccessRuntime.DataObjects.PCStateMan.doJDOPreStore(LifecycleListenerManager[] listeners)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.callPreStore()
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.prepareForStore(Boolean commit)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.flush()
Category: ErrorLog
Priority: 0
EventId: 9010
Severity: Warning
Title:Enterprise Library Exception Handling
Machine: WebServer
App Domain: /LM/W3SVC/2/ROOT-2-129503719108758368
ProcessId: 4940
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:4852
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 5/20/2011 1:56:24 PM
Message: HandlingInstanceID: 415d96d7-222b-4127-acd7-4c82ba12176b
An exception of type 'Telerik.OpenAccess.OpenAccessException' occurred and was caught.
--------------------------------------------------------------------------------------
05/20/2011 09:56:23
Type : Telerik.OpenAccess.OpenAccessException, Telerik.OpenAccess, Version=2011.1.510.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
Message : You cannot save your changes, becase a page with such URL already exists. Change the page URL and try again
Source : Telerik.Sitefinity
Help link :
InnerExceptions : System.Exception[]
FailedObject :
BackendError :
Reason : Internal
CanRetry : False
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CommitTransaction(System.String)
Stack Trace : at Telerik.Sitefinity.Data.TransactionManager.CommitTransaction(String transactionName)
Additional Info:
MachineName : WebServer
TimeStamp : 5/20/2011 1:56:23 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-2-129503719108758368
ThreadIdentity : eric
WindowsIdentity : QA\MyUser
Requested URL : /Sitefinity/Services/Pages/PagesService.svc/00000000-0000-0000-0000-000000000000/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&providerName=&managerType=Telerik.Sitefinity.Modules.Pages.PageManager&provider=&workflowOperation=
Inner Exception
---------------
Type : Telerik.Sitefinity.Pages.Model.DuplicatePageUrlException, Telerik.Sitefinity.Model, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
Message : You cannot save your changes, becase a page with such URL already exists. Change the page URL and try again
Source : Telerik.Sitefinity.Model
Help link :
Page : Telerik.Sitefinity.Pages.Model.PageNode
Data : System.Collections.ListDictionaryInternal
TargetSite : Void PreStore()
Stack Trace : at Telerik.Sitefinity.Pages.Model.PageNode.PreStore()
at OpenAccessRuntime.DataObjects.PCStateMan.doJDOPreStore(LifecycleListenerManager[] listeners)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.callPreStore()
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.prepareForStore(Boolean commit)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.flush()
Category: ErrorLog
Priority: 0
EventId: 9010
Severity: Warning
Title:Enterprise Library Exception Handling
Machine: WebServer
App Domain: /LM/W3SVC/2/ROOT-2-129503719108758368
ProcessId: 4940
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:4852
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 5/20/2011 1:58:25 PM
Message: HandlingInstanceID: e162a7b6-e8ad-48f3-a307-37262ad8a17a
An exception of type 'Telerik.OpenAccess.Exceptions.DuplicateKeyException' occurred and was caught.
---------------------------------------------------------------------------------------------------
05/20/2011 09:58:25
Type : Telerik.OpenAccess.Exceptions.DuplicateKeyException, Telerik.OpenAccess, Version=2011.1.510.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
Message : Insert of '1491320069-2484' failed: Telerik.OpenAccess.RT.sql.SQLException: Violation of PRIMARY KEY constraint 'pk_sf_prmssons_inheritance_map'. Cannot insert duplicate key in object 'dbo.sf_permissions_inheritance_map'.
The statement has been terminated.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute()
at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes)
INSERT INTO [sf_permissions_inheritance_map] ([sf_prmssons_inheritance_map_id], [child_object_id], [child_object_type_name], [object_id], [voa_version]) VALUES (?, ?, ?, ?, ?)
(set event logging to all to see parameter values)
Source : Telerik.Sitefinity
Help link :
InnerExceptions : System.Exception[]
FailedObject :
BackendError : Telerik.OpenAccess.RT.sql.SQLException: Violation of PRIMARY KEY constraint 'pk_sf_prmssons_inheritance_map'. Cannot insert duplicate key in object 'dbo.sf_permissions_inheritance_map'.
The statement has been terminated.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute()
at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes)
Reason : DuplicateKey
CanRetry : False
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CommitTransaction(System.String)
Stack Trace : at Telerik.Sitefinity.Data.TransactionManager.CommitTransaction(String transactionName)
Additional Info:
MachineName : WebServer
TimeStamp : 5/20/2011 1:58:25 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-2-129503719108758368
ThreadIdentity : eric
WindowsIdentity : QA\MyUser
Requested URL : /Sitefinity/Services/Pages/PagesService.svc/00000000-0000-0000-0000-000000000000/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&providerName=&managerType=Telerik.Sitefinity.Modules.Pages.PageManager&provider=&workflowOperation=
Inner Exception
---------------
Type : Telerik.OpenAccess.RT.sql.SQLException, Telerik.OpenAccess.Runtime, Version=2011.1.510.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
Message : Violation of PRIMARY KEY constraint 'pk_sf_prmssons_inheritance_map'. Cannot insert duplicate key in object 'dbo.sf_permissions_inheritance_map'.
The statement has been terminated.
Source : Telerik.OpenAccess.Adonet2
Help link :
ErrorCode : 2627
Number : 2627
ObjectId :
Description : SQLState=;Violation of PRIMARY KEY constraint 'pk_sf_prmssons_inheritance_map'. Cannot insert duplicate key in object 'dbo.sf_permissions_inheritance_map'.
The statement has been terminated.
Data : System.Collections.ListDictionaryInternal
TargetSite : Boolean execute()
Stack Trace : at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute()
at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes)
Category: ErrorLog
Priority: 0
EventId: 9010
Severity: Warning
Title:Enterprise Library Exception Handling
Machine: WebServer
App Domain: /LM/W3SVC/2/ROOT-2-129503719108758368
ProcessId: 4940
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:4852
Extended Properties:
----------------------------------------
I tried creating a page with SQL Profiler on and saw it was trying to insert an id of 2637 when the last record in the database is 3524. This (sf_permissions_inheritance_map) and sf_media_thumbnails are the only two tables that use INTs for keys instead of GUIDs (voa_keygen uses a string, otherwise it's all GUIDs).
These integer primary keys aren't identity columns, so I don't know how it's figuring out what to put in that field. There are a bunch of gaps in that table.
I have broken inheritance on a bunch of my pages.
I suppose I could try to restart the website and profile through creating a page to see if I can find where the low id is coming from. But that seems tedious and I'm not confident it will help me much.
Ideas?
Hello Eric,
I think the answer to your question relies in the "voa_keygen" table. It is used to store the last generated id for such columns as the described one. And if I understood correctly the scenario in question you transferred some data from one database to another right? So in this table you should see the last id and change it to see if this is fixing the problem.
Greetings,OK, so I updated my voa_keygen table (thanks). I'm not getting those exceptions in the log anymore, but it still wasn't working.
I ran a trace and looked at the results of all the selects and the following returned an odd result
SELECT
b.id, c.sf_prmssons_inheritance_map_id, c.child_object_id, c.child_object_type_name, c.object_id, c.voa_version, b.seq
FROM
[sf_page_node a
JOIN
sf_pg_nd_sf_prmssns_nhrtnc_map
AS
b
ON
a.id = b.id
LEFT
JOIN
sf_permissions_inheritance_map
AS
c
ON
b.sf_prmssons_inheritance_map_id = c.sf_prmssons_inheritance_map_id
WHERE
a.id =
'F669D9A7-009D-4D83-DDAA-000000000003'
ORDER
BY
b.id, seq
1.
COL1 COL2 COL3 COL4 COL5 COL6 xj2
2.
F669D9A7-009D-4D83-DDAA-000000000003 25 F669D9A7-009D-4D83-DDAA-000000000004 1003093577 F669D9A7-009D-4D83-DDAA-000000000003 1 0
3.
F669D9A7-009D-4D83-DDAA-000000000003
NULL
NULL
NULL
NULL
NULL
1
Hi,
I am having one portion of the error that eric is having. Here is the error from my log file
----------------------------------------
Timestamp: 6/2/2011 3:49:46 PM
Message: HandlingInstanceID: 12affef2-d5a4-4bcb-9c7e-09662444a759
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
06/02/2011 10:49:46
Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Invalid type specified Telerik.Sitefinity.Security.Data.SecurityDataProvider
Source : Telerik.Sitefinity
Help link :
ParamName :
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace : at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)
Additional Info:
MachineName : BWCDCWEBSTG
TimeStamp : 6/2/2011 3:49:46 PM
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1339.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/5/ROOT-2-129515033276897278
ThreadIdentity : nmadhavan
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : /Sitefinity/Services/Configuration/ConfigSectionItems.svc/localization/00000000-0000-0000-0000-000000000000/
Category: ErrorLog
Priority: 0
EventId: 9010
Severity: Warning
Title:Enterprise Library Exception Handling
Machine: BWCDCWEBSTG
App Domain: /LM/W3SVC/5/ROOT-2-129515033276897278
ProcessId: 1852
Process Name: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:2684
Extended Properties:
----------------------------------------
Thanks
Madhavan
Hi Madhavan,
Do you have any code that runs on application start or do you use a custom mebership data providers? The error you get says that
Telerik.Sitefinity.Security.Data.SecurityDataProvider is not a valid type but this is the correct type.
All the best,
Ivan Dimitrov
the Telerik team
Hi Ivan,
I have a seperate db where the membership details are stored. Having said that the db of that is the same as the one of fitefinity. Basically the membership is running of a different SF db. Hope this will enable you to nail down the problem.
Thanks
Madhavan
Hi Madhavan,
The stack shows that the error occurs when the configuration files are loaded. Most probably you went to Administration >> Settings >> Advanced and the data provider settings could not be initialized properly because somewhere you have used a type which is not proper. For example you set Telerik.Sitefinity.Security.Data.SecurityDataProvider as a RoleProvider or MembershipProvider type. The error doesn't show which config file has been modified, but you can check App_Data/Sitefinity/Configurations and check all configs. We generate only the configuration files that are changed, so you can easily track your modifications.
Best wishes,
Ivan Dimitrov
the Telerik team