Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error adding a new site from templateError adding a new site from template
Previous
 
Next
New Post
6/20/2012 6:16 PM
 

We have about 50 or so "Parent Portal" been adding new ones here and there the past few months. Generally we make a template and use that template when creating the new site, a couple of times I've hit this same error, reboot the server (dedicated) and I can go in and add the site successfully...

Today that ain't working, tried 5 times now, what the hell? Here is the error in the log: States Reflection Permission required, but I've never had an issue with my server before with this DNN installation, maybe something changed on the server I didn't do, Windows update? HELP PLEASE!

What's happeningi is the settings page where you add the site just sits there, then finally just stops, no redirect to the new portal, nothing, then in the list of portals i see that portal added, no alias has been saved and pages are random of what was copied from the template (like 21 of 55 pages). it's like it gives up or something, Like I said works most of the time??

AssemblyVersion: 6.1.2
PortalID: -1

PortalName:

UserID: -1

UserName:

ActiveTabID: -1

ActiveTabName:

RawURL:

AbsoluteURL:

AbsoluteURLReferrer:

UserAgent:

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 9d11cc34-b1f5-4de1-a69f-227e474ea7d7

InnerException: Thread was being aborted.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: N/A - Reflection Permission required

StackTrace:

Message: System.Threading.ThreadAbortException: Thread was being aborted. at SNIReadSync(SNI_Conn* , SNI_Packet** , Int32 ) at SNINativeMethodWrapper.SNIReadSync(SafeHandle pConn, IntPtr& packet, Int32 timeout) at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket() at System.Data.SqlClient.TdsParserStateObject.ReadBuffer() at System.Data.SqlClient.TdsParserStateObject.ReadByte() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.GetSearchModules(Int32 PortalId) at DotNetNuke.Entities.Modules.ModuleController.GetSearchModules(Int32 portalID) at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID) at DotNetNuke.Services.Search.ModuleIndexer.GetSearchIndexItems(Int32 PortalID) at DotNetNuke.Services.Search.SearchEngine.GetContent(IndexingProvider Indexer) at DotNetNuke.Services.Search.SearchEngine.IndexContent() at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()


 
New Post
6/20/2012 7:21 PM
 

No changes to the server config (meaning it ain't the trust high vs medium deal), cleared my browser cache, restarted application go one to work, now tried that again, and now can't get it to add... Is there a "waiting" period before you can add a new site after adding another, something not closing on the database side?

 
New Post
6/20/2012 8:40 PM
 

thats an odd error, and i think the reflection permission is a bit of a red herring - the key part is the "Thread was being aborted. at SNIReadSync" exception - this is the COM+ wrapper that .net uses to talk to SQL Server. The only way I can think of this happening is that an extrememly long running sql operation fails (timeouts) and calls back to .net -normally this would show as a standard SqlException, I'm not sure what the difference is - i would speculate that the .net page times out and tries to get an update from sql, but the sql server is so busy it fails to return a result and that causes the odd error.

Some googling shows other sites have similar problems, but no pattern (e.g. asp.net sites, sharepoint sites etc.). I would suggest that you try updating the execution timeout in web.config ie.. search for

<httpRuntime shutdownTimeout="120" executionTimeout="900"

and change it to a higher value

BTW an alternative is to set debug to true in the web.config as this tells asp.net to not timeout.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/20/2012 10:02 PM
 
cathal connolly wrote:

thats an odd error, and i think the reflection permission is a bit of a red herring - the key part is the "Thread was being aborted. at SNIReadSync" exception - this is the COM+ wrapper that .net uses to talk to SQL Server. The only way I can think of this happening is that an extrememly long running sql operation fails (timeouts) and calls back to .net -normally this would show as a standard SqlException, I'm not sure what the difference is - i would speculate that the .net page times out and tries to get an update from sql, but the sql server is so busy it fails to return a result and that causes the odd error.

Some googling shows other sites have similar problems, but no pattern (e.g. asp.net sites, sharepoint sites etc.). I would suggest that you try updating the execution timeout in web.config ie.. search for

and change it to a higher value

BTW an alternative is to set debug to true in the web.config as this tells asp.net to not timeout.

 Maybe the server just needs more RAM etc, it's on a cloud, we can up the ram from 8GB to 16GB, processor etc..? I tried that timeout stuff, doesn't take too long to come back, or rather the spinner stops and I'm on the "Add Site" screen, then there will be like 6 pages copied from the template...

 
New Post
6/21/2012 1:41 PM
 
its entirely possible that its a resource related matter as creating a portal based on a template can be a costly action (i.e. if the template contains many pages/modules/content or if there is already a lot of portals) - you can take a look at what happens in the database via sql server profiler to see what is going on (and to validate that there is not an error such as a loop)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error adding a new site from templateError adding a new site from template


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out