.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Publishing portal : Getting error when publishing or approving pages .

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
When I am trying to publish or approve pages from form list . I am getting error and site stops working in that session for browser "Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL server. Please install ASP.NET Session State SQL Server version 2.0 or above. "

View Complete Post

More Related Resource Links

"Type ASP.x is not defined" error for dynamic user control when publishing updateable


I have a user control (ContainerCtrl) which programmatically instantiates another user control (SimpleCtrl) in OnLoad. It builds and runs fine, but when I publish it I get the error "error BC30002: Type 'ASP.SimpleCtrl' is not defined." (If I publish without the "updateable" option there's no error, but I need the site to be updateable.)

I assume this has to do with the particulars of how the assembly(ies) are built for the different compiler options. My question is, how can I get it to work properly for "updateable" publishing?

VS 2008 / .NET 3.5 sp1

The code follows (web.config is the default from Visual Studio).

Many thanks, Dave


<%@ Control Language="VB" ClassName="SimpleCtrl" CodeFile="SimpleCtrl.ascx.vb" Inherits="_SimpleCtrl" %>

    Simple control


Partial Class _SimpleCtrl
    Inherits UserControl

    'Nothing to see here.

End Class


<%@ Control Language="VB" CodeFile="ContainerCtrl.ascx.vb" Inherits="_ContainerCtrl"

moss 2007 for intranet ,publishing portal with collaboration portal subsite or other way.

Hi All, We are planning to use moss 2007 for our intranet. Mainly we want to use it for collaboration purpose (i think collaboration portal is the appropriate template as root site). but in future if the company want publishing portal can i have it under collaboration portal or should i choose now itself the root site as publishing portal  and then create collaboration portal as sub site to meet our needs. can some one shed light on how to proceed and pros/ cons . Cheers, Friend. 

The URL is not valid error while publishing InfoPath form to MOSS 2007 server

Hi All,   When I try to publish the form onto a SharePoint Team site it throws the error: The following URL is not valid : http://tcs037288:6543/sites/projectmanagement   I have checked the comaptibility, trust and everything looks fine. Also, I tried to upload this template from Central Admin but there it is failing with browser-compatibility errors.       Regards,

alternative to publishing pages that are editable in sharepoint designer?

when i create a publishing page, i can only edit the page in the browser.  it's not possible to edit publishing pages in sharepoint designer.  i want to be able to edit my pages in sharepoint designer.  so, i'm using web part pages.   now, i want to change the way the title of the page is generated for my pages.  the template i'm using has this:   <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"> <SharePoint:ListItemProperty Property="BaseName" maxlength="40" runat="server"/> </asp:Content>   i want to change that.  i can change it in each web part page individually in advanced mode.  i can also change the template so that new pages are generated with my customizations.  but i haven't found any way to automatically apply my customizations to all of my existing web part pages. the page layout feature of publishing pages would allow me to do this.  but then, i wouldn't be able to edit my pages in SD.  is there any way to be able to edit pages in SD, and still be able to apply customizations to all of my existing pages in one shot?

unable to create site collection using publishing - collaboration portal

i am facing problem creating site collection using publishing - collaboration portal template. i am getting the below error: Event log message was: 'The site template was not provisioned successfully. Delete this site collection in Central Administration, and then create a new site collection.'. Exception was: 'Microsoft.SharePoint.WebPartPages.WebPartPageUserException: This page has encountered a critical error. Contact your system administrator if this problem persists. at Microsoft.SharePoint.ApplicationRuntime.SafeControls.IsSafeControl(Type type, String& unsafeErrorMessage)    at Microsoft.SharePoint.WebPartPages.TypeCache.get_Item(Type type)    at Microsoft.SharePoint.WebPartPages.WebPart.WriteXmlGlobal(Boolean disableSafeControlsCheck)    at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(PersonalizationScope scope)    at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.get_Links()    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartToStore(WebPart webPart, Int32 viewId, String viewGuid)    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset, Boolean throwIfLocked)    at Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.AddWebPartInternal(WebPart webPar

How to set create-only permissions to publishing pages library?

I have publishing site where users can add their own pages to some libraries. I have problem with permissions when user creates new page. Here's how I set permissions: all users are added to members group (by default they can view pages) members group has view permissions also for master pages library For site where users can add pages I set the following permissions on pages library users can add view pages users can add pages When user adds new page then he/she gets automatically edit permissions for this page. So users can edit only their own pages. I found out that add permission is not enough - when user creates page then he/she gets access denied error. The minun that doesn't cause problems is approver permission to pages library (of course, now users can do everything on pages library they ever want to do). Is there any way to avoid making users as approvers?  They only need view and add permissions for page library and view and edit permissions for pages they added. They cannot do anything more. Approving and denying of pages is administrators job. With best regards, Gunnar Peipman   Also visit my ASP.NET and SharePoint blog!

Error Publishing Workflow - : Activation could not be completed because the InfoPath Forms Services

Recently our when trying to publish a new workflow we are getting the following error: Activation could not be completed because the InfoPath Forms Services support feature is not present. Another symptom is any existing custom workflows are not running. There are several older posts from SharePoint 2007 that indicate to disable and re-enable the SharePoint Server Enterprise Site features. I have tried that and I still get the error.  Looking through the ULS I see the following when I try and publish a workflow: 09/16/2010 15:04:29.48 w3wp.exe (0x2070) 0x0718 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 c700de1a-5756-4f45-915e-3b229e56f049 09/16/2010 15:04:29.48 w3wp.exe (0x2070) 0x0718 InfoPath Forms Services Conversion and Deployment ey0w Verbose VerifyListPresence: FTL not found on site:http://uchintranet due to expected FileNotFound exception:The system cannot find the file specified. (Exception from HRESULT: 0x80070002) c700de1a-5756-4f45-915e-3b229e56f049 09/16/2010 15:04:29.48 w3wp.exe (0x2070) 0x0718 InfoPath Forms Services Runtime 82mv Exception Activate NonAdminSolution failed with unhandled exception Microsoft.Office.InfoPath.Server.Util.InfoPathLocalizedException: Activation could not be completed because the InfoPath Forms Services support feature is not present.     at Mic

Session State throws error in ASP.NET Site Pages for SharePoint 2010 portal using Visual Studio 2010


I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code behind in ASP.NET but it throws the following error.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I set the page directive as enableSessionState=&quo

sharepoint publishing pages permissions not copying while using variations



I have multilingual publishing site build on sharepoint 2010.We have break the permissions of the publishing pages  on the source language and assuming the same permissions will apply on the target site publishing pages also. But target site publishing pages still inheriting the permission from the site. Just want to assure, is this the default behavior of the sharepoint or something is wrong in environment setup. 


Sourabh K

Publishing Portal Missing Team Site Template



I created a new site collection and set the root site as a publishing portal.  I then went into "manage site features" under "Site Actions" and activated the "Team Collaboration Lists" feature.  However I cannot find the "Team Site" template when I try to create a new site.  Is there a feature I'm missing? 



Project publishing as a compiled package (DLL+aspx). Can I revert to aspx and editable pages?


First time 4.0, the project is a complied DLL - is there any way to revert to just normal aspx and editable cs?



HTML Editor not working in publishing pages - SharePoint


Hello All,

I am developing a SharePoint publishing portal wherein I make use of HTML Editor(third party control) in my page layout for editing the contents.

When I try to edit the page using the publishing console, the HTML Editor which I have added in my page doesn't appear at all. I monitored the design at run time using firebug and it showed no content. Where could I be wrong?




Error publishing Content Types

Hi, I'm getting the following error in the content type publishing log, and of course my content types are not getting synchronized:  The term store could not be accessed.

I don't know where to go from here. When I access the term store through manage service applications I can access it fine.

Detailed error is as follows:


<!-- FieldName="Title" FieldInternalName="Title" FieldType="SPFieldText" -->Proxy Managed Metadata Service error

Taxonomy Service Store Id

<!-- FieldName="Taxonomy Service Store Id" FieldInternalName="StoreId" FieldType="SPFieldGuid" -->{00000000-0000-0000-0000-000000000000}

Taxonomy Service Name

<!-- FieldName="Taxonomy Service

Personalizable Properties Cause Error with Publishing Enabled


Hello, my name is Christian and I am a senior developer for a Microsoft Gold Partner.

I am encoutering an error with a couple of our custom Web Parts which use User Scope Personalizable properties to save drop down menu values.  The Web Parts also use Shared Scope Personalizable properties to save database configuration information directly within the Web Part itself.  This system appears to be failing when the Web Parts are used in Pages where Publishing is enabled.  Please review below a snippet of the code used in the Web Part itself:

    /// <summary>Gets or sets the connection string to the database.</summary>

    [Personalizable( PersonalizationScope.Shared, false )]


Store Publishing Pages in a library besides "Pages"


Hi everybody,

I'm trying to see if there's a way to store publishing pages in other libraries and keep their functionality.  For example, I want to make a library called "Things" and move a publishing page from "Pages" into "Things".  This is in order to have the URL's of pages in the site be something like example.org/info/faq.aspx instead of example.org/pages/info/faq.aspx.

I have already tried doing this, enabling the Page and Article Page content types, but I get some weird problems:  The edit button isn't always available, when I try to create a new item in the library it doesn't take me to the page creation page (even though I have pages as the default content type), and moving pages from one library to another breaks the top navigation link.

How could you customize the URL's of your pages without using a redirect or any other hokey solution?



Getting Unexpected Error while Publishing my Reusable Workflow


*** UPDATE ***

After waiting for anyone to respond, and needing to figure this out, went into Central Admin and reversed steps (1) & (2) below to bring my system back to the state where the workflow would compile.  That didn't work ... I am still getting the error.  So now I am lost ... what could be causing this problem?  Anyone ??


I created a reusable workflow over a week ago and it has been working perfectly. Today everytime that I try to publish the workflow I get the following error during the "Validating the workflow" step:

"Errors were found while compiling the workflow... Unexpected Error on the server associating the workflow"

The only thing that has changed between when it worked and when it doesn't is that I configured the Server to enable ability to use the "Show workflow visualization on the status page" setting.  To do this I learned that I had to provision a Secure Store Service, create a Visio App ID and associate it.  So I followed these two sets of instructions:

  1. http://tinyurl.com/39l4jl4
  2. http://tinyurl.com/24w33lg

When I first got this error I did some Googling and found some p

I can not create Article page in publishing site with a error message related to Microsoft SharePoin


I installed MOSS 2010 successfully with all requirements and options. After that It created a Publishing site. But, when I create an article page for news, the error page show that:


File Not found Trouble Shoot issues with Microsoft SharePoint Foundation (*).

Correlation ID: 5cce256-b30b-477d-9820-c46238f224a

Date and Time: ...


*:it's a link to open an error windows like this Besides, if i create a site with other templates (not Publishing template), I can not also start Publishing feature

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend