SharePoint 2013 Dispose checker

I've used SPDisposeCheck for SP2007/2010 and find it very useful for finding undisposed sp objects, but from this blog post, it's mentioned that it's no longer working for 2013.
Is there any alternatives available?

Hi,
According to your post, my understanding is that you want to check disposal rules in SharePoint 2013.
As the SPDisposeCheck do not support the SharePoint 2013 assemblies, we can use the
SharePoint Code Check (SPCop) as a workaround.
SPCop cannot only analyze assemblies like other tools as FxCop or SPDisposeCheck. It can also analyze all the XML code in SharePoint packages like Features, ContentTypes, ListTemplates and all the other files
like controls (.ascx), pages (.aspx) and master pages (.master), stylsheets (.css), JavaScript (.js) etc. SPCop can be used directly in Visual Studio 2010/2012/2013 to analyse SharePoint projects.
You can download the tool here:
https://visualstudiogallery.msdn.microsoft.com/c991a9ed-7a7b-465f-9be3-923443fd6e7b
For more reference:
http://blogs.msdn.com/b/torstenmandelkow/archive/2013/10/08/free-sharepoint-code-analysis-tool-available.aspx
https://social.technet.microsoft.com/Forums/en-US/2a3811c6-72d7-4948-ae34-dd7cf5bca099/sharepoint-dispose-checker-tool-and-sharepoint-2013?forum=sharepointdevelopment
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014 using BISM file connection

    I am getting following error while refreshing connection on excel sheet in power pivot gallery,
    my scenario,
    using BISM file connection to create and  refresh power pivot excel sheet in power pivot gallery
    throws error and we have sql server 2014 CU6 updated installed plus sharepoint 2013. i checked following msolap110.dll is available in our environment but assembly
    Microsoft.AnalysisServices.ChannelTransport is not available. 
    i found error in event viewer,
    "Activation context generation failed for "C:\Program Files\Microsoft Analysis
    Services\AS OLEDB\110\msolap110.dll". Dependent Assembly
    Microsoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    what should i do to fix it?
    Thanks for help.
    Deepak Patel

    Rebecca,
    yes, this is issue i am getting.
    Activation
    context generation failed for "C:\Program
    Files\Microsoft Analysis Services\AS OLEDB\110\msolap110.dll".
    Dependent AssemblyMicrosoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    let me know if you can find fix for it.
    THanks,

  • What needs to be done to rebuild a current Sharepoint 2010 Server farm to work as a Sharepoint 2013 Server farm?

    Hello Community
        Currently I have a Sharepoint 2010 Server farm.
        One server contains the database and DNS server
    because it is the the domain controller.
        The other server Contains the Sharepoint 2010 Server software
    and is the the application server where applications such as Metadata,
    UPs, etc, reside (including web applications with sites built with the UI).
        Now I am going to change to Sharepoint 2013 Server because currently
    there is no newer version of Sharepoint available.
        I am ready to rebuild the current Sharepoint 2010 farm configuration into
    a Sharepoint 2013 Server farm from scratch.
        The question  is what do needs to be added and\or changed to make the current
    Sharepoint 2010 Server farm configuration work as a Sharepoint 2013 Server farm?
        Thank you
        Shabeaut

    There is no direct in-place uprade method for SharePoint 2010 to 2013. You need to create a new SharePoint 2013 farm from scratch and attach service and content databases to upgrade them. Check out Upgrade
    to SharePoint 2013 for more information about the process.
    If you have another server, you would install SharePoint 2013 on this. If you don't, you'll need to remove SharePoint 2010 from your existing server and then install SharePoint 2013. Check out Hardware
    and software requirements for SharePoint 2013 before starting to make sure your server meets the minimum requirements for SharePoint 2013:
    Web server or application server in a three-tier farm
    Pilot, user acceptance test, or production deployment of SharePoint Server 2013 or SharePoint Foundation 2013.
    12 GB memory
    64-bit, 4 processor cores
    80 GB for system drive
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Items greyed out after upgrading and migrating to Sharepoint 2013 - Open and Check Out + Manage Document Option

    Hi there,
    Following a migration to SharePoint 2013, the follow options have been disabled (Open and Check out + Manage) (see below). These are critically important functions and make it very hard to make SharePoint a useable interface. Any guidance on how to resolve
    these issues is greatly appreciated. This is not a branded website, and there has been no changes made to the standard interface.
    Kind regards
    Jarrad Koppen

    I'm not sure what the easiest way is either.  First, I would try to create a new site collection with a new library and see if you get the same behavior.  If not, then its something in the upgrade process.  If it does that also would point
    to something being wrong in the way that javascript is being executed.
    If it is happening everywhere I suspect you'll have to start tracing javascript using something like IE developer's toolbar to see why the status on those buttons isn't changing when you select a document.  I'm not sure what else to suggest.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Opening/Saving documents from SharePoint 2013 in Firefox/Chrome bypasses Check Out and Check In

    My clients have an Office365 installation with SharePoint 2013.
    When I navigate to the site in IE and click on a checked-in document, it opens in Microsoft Word with a message
    Server document  To modify this document you must check it out
    with a Check Out button alongside.
    However, if I navigate with Firefox or Chrome and click on the same link, it just downloads the document to the browser's default download location.  If I then open the document in Word, there is no
    Server document warning and it is entirely writeable and it's also lost its link to the document library.
    Is the work-around for this that one cannot use Firefox or Chrome with SharePoint, or is there some setting in these browsers that will bypass the download and load the document directly into Word?
    Thanks
    Edward

    Does anyone have a better fix for this?  We are attempting to launch support for a second browser - Chrome - but because of the issue with Office 2010 on the clients, the protocol handler from Chrome fails to connect the requested document directly
    to the MS Office app, but rather downloads the file.  IE Tab is not an option because it then defeats the purpose of having Chrome altogether since it simply uses IE8's engine.  IE8's performance with large lists on SharePoint 2013 as well as the
    HTML5-based functionality is simply dreadful which is the primary driver for an alternative browser.
    We are aware installing Office 2013 on a machine fixes it, but that is not an option due to the current licensing.
    Hope for Chrome 31?  Firefox seems to work fine in our testing, but the organization wants to go Chrome instead of FF.

  • How to check user profile service working in sharepoint 2013?

    HI All,
    How to check user profile service working or not in sharepoint 2013? Thanks.

    Hi,
    Select which OU's you want to synchronize, then check if all users in those OU's have a user profile in the user profile service application.
    Nico Martens - MCTS, MCITP
    SharePoint 2010 Infrastructure Consultant / Trainer

  • SharePoint 2013 check permissions unable to find permission level for AD user

    In our environment for SharePoint AD groups are associated with individual AD members and AD group is given access to SharePoint group with a permission level. When I want to check for a user who are part on the AD group using check permission to find their
    SharePoint permission level it returns "none", but when I check what permission level the AD group has check permission returns correct permission level.
    I am not sure if this is the right behavior for SharePoint 2013 not to display individual AD user permission using check permission, business users have to request IT every time they have to find a user permission level.

    Hi,
    As far as I know, the user permissions which set in AD Groups is not updated immediately to SharePoint Site. The AD group informations are converted into claims and packed into security token issued by the STS (Security Token Service).
    For troubleshooting your issue,you can configure the Token Cache to a smaller value and check the permission level of the user who is granted permissions through AD group:
    https://sergeluca.wordpress.com/2013/07/06/sharepoint-2013-use-ag-groups-yes-butdont-forget-the-security-token-caching-logontokencacheexpirationwindow-and-windowstokenlifetime/
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • I've used Project Web App on Sharepoint 2013. After clear job queue about force check-in then I've got this error. This made me can't access some pages in PWA anymore e.g. Project center, Resoure center, PWA setting, etc.

    I've used Project Web App on Sharepoint 2013. After clear job queue about force check-in then I've got this error. This made me can't access some pages in PWA anymore e.g. Project center, Resoure center, PWA setting, etc.  Who have ever found this problem,
    pls. help.
    The pop up error msg. is "Sorry, you don't have access to this page"

    Hi,
    According to your description, after you cleared job queue about force check-in then you can't access some pages in PWA.
    Maybe you need to check in the pages which has been checked out.
    If you have administrative rights, it is possible to override the check-out via the View All Site Content page:
    Site Actions->View All Site Content->Pages->Hover the item you want to check in, and from the context-menu (arrow-down next to the filename), choose "Discard Check Out"
    Besides, to troubleshooting the error “Sorry, you don't have access to this page”, refer to the following articles:
    http://sharepoint.rackspace.com/sharepoint-2013-troubleshooting-an-access-issue-with-a-custom-master-page
    http://technet.microsoft.com/en-us/library/ff758656(v=office.15).aspx
    In addition, as this issue is related to project server, I suggest you create a new thread on project server, more experts will assist you:
    https://social.technet.microsoft.com/Forums/projectserver/en-US/home?category=project
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How to check size of a sharepoint site of SharePoint 2013 cloud environment?

    Hi
    I have a subsite in sharePoint 2013 cloud envirornment. I wanted to check the size of that subsite. I can able to check the size of a site by opening that site in sharepoint designer. But size of a subsite is not there.
    Please help me out.
    Thanks in advance
    Yash

    You can use storage metrics page.
    Open site settings on the root site -> Storage metrics 
    [custom.development]

  • Check user belongs to a particular sharepoint group in sharepoint 2013 designer workflow

    Hello, How to validate a user belongs to a particular sharepoint group in sharepoint designer 2013 workflow.

    You can make a REST call from workflow to determine if a user belongs to a group.
    REST API reference and samples
    Calling the SharePoint 2013 Rest
    API from a SharePoint Designer Workflow
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Double checking in sharepoint 2013 calendar

    I have created calendar list for a meeting room in SharePoint 2013.I tried for enabling the group work feature.But that is not available in sp 2013.is there any solution using JavaScript or jquery or workflow or any of out of box feature for this.I don't
    want the c# code.
    Plz help if any solution

    Hi,
    According to your post, my understanding is that you wanted to use group work feature in SharePoint 2013.
    Did you mean you wanted to use the feature resource reservation?
    You need to go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\1033\XML.
    Open WEBTEMP.XML file, find an element with 'Group Work Site' title attribute and change its Hidden attribute from TRUE to FALSE.
    Now it is possible to display the missing site templates including 'Group Work Site'. Then you just need to create a site based on this template and you will get the calendar of resources.
    More information:
    http://www.codeproject.com/Articles/588685/ReservationplusofplusresourcesplusinplusSharePoint
    http://social.technet.microsoft.com/Forums/en-US/5a118b26-9be7-42b6-b04b-5f1da9e11f77/sharepoint-2013-for-room-reservation-system?forum=sharepointdevelopment
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • SharePoint 2013 audit log unexpected error

    In one of my SharePoint 2013 site collection, when i try to save a audit log,  i get unexpected error. It worked fine before last week and no any special setting has been applied before the issue appeared. The issue doesn't appear in other site collection.
    i have tried to reproduce the issue with farm admin account and site collection admin, no success for all these accounts. However, i can see access denied error in the ULS log although i think the permission is not the problem. You may check the ULS log below. 
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xC33B005
    2jtj Assert
    ShipAssert location: (0)  condition:   StackTrace:  at onetnative.dll: (sig=7b7c0170-6822-4da2-8b1b-70510b777a4a|2|onetnative.pdb, offset=12700) at onetnative.dll: (offset=125F1)
    ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 SharePoint Foundation
    Unified Logging Service c91s
    Monitorable Watson bucket parameters: Microsoft SharePoint Foundation 4, ULSShipAssert12, 2jtj, 15.0.4481.0
    ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xEB2D00B
    2jtk High
    Metro library failure (0x80070005): ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xEB2D00B
    2jtq High
    Metro library failure (0x80070005): ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xEB2D005
    2jx8 High
    Metro library failure (0x80070005): ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xEB2D005
    5s03 High
    Metro library failure (0x80070005): ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xEB2D005
    5s02 High
    Metro library failure (0x80070005): ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.41 w3wp.exe (0x77C0)
    0x2918 0xEB2D005
    2jw0 High
    Metro library failure (0x80070005): ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.43 w3wp.exe (0x77C0)
    0x2918 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 06/19/2014 10:48:07.68, Original Level: Verbose] SQL connection time: 0.064296296654057
    ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.43 w3wp.exe (0x77C0)
    0x2918 SharePoint Foundation
    General 8nca
    Medium Application error when access /_layouts/15/CustomizeReport.aspx, Error=拒绝访问。 (异常来自 HRESULT:0x80030005 (STG_E_ACCESSDENIED))   在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
    errorCode, IntPtr errorInfo)     在 Microsoft.Office.Server.OpenXml.Internal.ByteStream.Write(Byte[] rgb, Int32 offset, Int32 cb)     在 System.IO.BufferedStream.FlushWrite()     在 System.IO.StreamWriter.Dispose(Boolean disposing)
        在 System.IO.StreamWriter.Close()     在 System.Xml.XmlTextWriter.Close()     在 Microsoft.Office.RecordsManagement.Reporting.AuditReportGenerator.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportData.Dispose()
        在 Microsoft.Office.RecordsManagement.Reporting.ReportBase.AggregateReports(Hashtable query, SPFolder folder, ReportNameGenerator reportNameGenerator)     在 Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object
    sender, EventArgs e)     在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.44 w3wp.exe (0x77C0)
    0x2918 SharePoint Foundation
    Runtime tkau
    Unexpected System.Runtime.InteropServices.COMException: 拒绝访问。 (异常来自 HRESULT:0x80030005 (STG_E_ACCESSDENIED))    在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr
    errorInfo)     在 Microsoft.Office.Server.OpenXml.Internal.ByteStream.Write(Byte[] rgb, Int32 offset, Int32 cb)     在 System.IO.BufferedStream.FlushWrite()     在 System.IO.StreamWriter.Dispose(Boolean disposing)     在
    System.IO.StreamWriter.Close()     在 System.Xml.XmlTextWriter.Close()     在 Microsoft.Office.RecordsManagement.Reporting.AuditReportGenerator.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportData.Dispose()  
      在 Microsoft.Office.RecordsManagement.Reporting.ReportBase.AggregateReports(Hashtable query, SPFolder folder, ReportNameGenerator reportNameGenerator)     在 Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object
    sender, EventArgs e)     在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ea429c9c-4288-00dd-4f6f-d2bb079f3d44
    06/19/2014 10:48:09.44 w3wp.exe (0x77C0)
    0x2918 SharePoint Foundation
    General ajlz0
    High Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): 引发类型为“System.Web.HttpUnhandledException”的异常。 ---> System.Runtime.InteropServices.COMException (0x80030005): 拒绝访问。 (异常来自 HRESULT:0x80030005
    (STG_E_ACCESSDENIED))     在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)     在 Microsoft.Office.Server.OpenXml.Internal.ByteStream.Write(Byte[] rgb, Int32 offset, Int32 cb)  
      在 System.IO.BufferedStream.FlushWrite()     在 System.IO.StreamWriter.Dispose(Boolean disposing)     在 System.IO.StreamWriter.Close()     在 System.Xml.XmlTextWriter.Close()     在 Microsoft.Office.RecordsManagement.Reporting.AuditReportGenerator.Dispose()
        在 Microsoft.Office.RecordsManagement.Reporting.ReportData.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportBase.AggregateReports(Hashtable query, SPFolder folder, ReportNameGenerator reportNameGenerator)    
    在 Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object sender, EventArgs e)     在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     在 System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     在 System.Web.UI.Page.HandleError(Exception e)     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
        在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     在 System.Web.UI.Page.ProcessRequest()     在 System.Web.UI.Page.ProcessRequest(HttpContext context)  
      在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    ea429c9c-4288-00dd-4f6f-d2bb079f3d44

    i have added the account to the local admin group of SQL Server and SharePoint Server. the issue remains. it is the system admin of the SQL server. 
    Logging Correlation Data
    Medium
    Name=Request (POST:https://xxx/_layouts/15/CustomizeReport.aspx?ReportId=df9e0f20-f356-4115-9286-ac6eecbc03ce&Category=Auditing)
    Authentication Authorization
    Medium
    Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|tlw\farmadmin, ClaimsCount=28
    Logging Correlation Data
    Medium
    Site=/
    Information Rights Management
    Medium
    Information Rights Management (IRM): Requesting user is System account.
    Files
    High
    UserAgent not available, file operations may not be optimized.    在 Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean
    disposeIlb)     在 Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult)     在 Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocumentRowset(Guid
    databaseId, SqlSession session, SPFileStreamManager spfstm, Object[] metadataRow, SPRowset contentRowset, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)     在 Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32
    rowOrd, Object ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)     在 Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet,
    String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean&
    pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String&
    pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies,
    Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)     在 Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte
    bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument,
    Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object&
    pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object&
    pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)     在 Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String
    bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
    pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object&
    pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel,
    UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)     在 Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri
    pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, String& siteRoot, Guid& siteId, Int64& bytes,
    Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders,
    String& redirectUrl, Boolean& ObjectIsList, Guid& listId)     在 Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String
    path, Boolean impersonate, Boolean& isAppWeb, Boolean& fGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String&
    siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64&
    bytes)     在 Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound)     在 Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String
    virtualPath)     在 System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)     在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
    virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)     在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath
    virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)     在 System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath,
    Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)     在 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)    
    在 System.Web.UI.Page.ApplyMasterPage()     在 System.Web.UI.Page.PerformPreInit()     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     在 System.Web.UI.Page.ProcessRequest()     在 System.Web.UI.Page.ProcessRequest(HttpContext context)    
    在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception
    error)     在 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)     在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)    
    在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer,
    IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)     在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
    pHandler, RequestNotificationStatus& notificationStatus)     在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
    在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    Files
    Medium
    Spent 0 ms to bind 29783 byte file stream
    Monitoring
    High
    Leaving Monitored Scope (GetFileAndMetaInfo). 执行时间=17.6751425083646
    Monitoring
    High
    Leaving Monitored Scope (GetWebPartPageContent). 执行时间=17.8435806939653
    OpenXml
    Medium
    OfficePackageLibrary::OpenPackage(app=3, path=C:\Users\FarmAdmin\AppData\Local\Temp\tmpBFE2.tmp, fcm=3)
    Database
    High
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    Database
    High
    [Forced due to logging gap, cached @ 06/20/2014 14:36:33.08, Original Level: Verbose] SQL connection time: 0.0727483919888626
    Database
    High
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    Database
    High
    [Forced due to logging gap, cached @ 06/20/2014 14:36:35.00, Original Level: Verbose] SQL connection time: 0.07969118458531
    Database
    High
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    0xC33B005
    Assert
    ShipAssert location: (0)  condition:   StackTrace:  at onetnative.dll: (sig=7b7c0170-6822-4da2-8b1b-70510b777a4a|2|onetnative.pdb, offset=12700) at onetnative.dll: (offset=125F1)
    Unified Logging Service
    Monitorable
    Watson bucket parameters: Microsoft SharePoint Foundation 4, ULSShipAssert12, 2jtj, 15.0.4481.0
    0xEB2D00B
    High
    Metro library failure (0x80070005):
    0xEB2D00B
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xC33B005
    Assert
    ShipAssert location: (0)  condition:   StackTrace:  at onetnative.dll: (sig=7b7c0170-6822-4da2-8b1b-70510b777a4a|2|onetnative.pdb, offset=12700) at onetnative.dll: (offset=125F1)
    Unified Logging Service
    Monitorable
    Watson bucket parameters: Microsoft SharePoint Foundation 4, ULSShipAssert12, 2jtj, 15.0.4481.0
    0xEB2D00B
    High
    Metro library failure (0x80070005):
    0xEB2D00B
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    0xEB2D005
    High
    Metro library failure (0x80070005):
    Database
    High
    [Forced due to logging gap, cached @ 06/20/2014 14:36:36.86, Original Level: Verbose] SQL connection time: 0.0706353681551612
    General
    Medium
    Application error when access /_layouts/15/CustomizeReport.aspx, Error=拒绝访问。 (异常来自 HRESULT:0x80030005 (STG_E_ACCESSDENIED))   在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode,
    IntPtr errorInfo)     在 Microsoft.Office.Server.OpenXml.Internal.ByteStream.Write(Byte[] rgb, Int32 offset, Int32 cb)     在 System.IO.BufferedStream.FlushWrite()     在 System.IO.StreamWriter.Dispose(Boolean
    disposing)     在 System.IO.StreamWriter.Close()     在 System.Xml.XmlTextWriter.Close()     在 Microsoft.Office.RecordsManagement.Reporting.AuditReportGenerator.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportData.Dispose()    
    在 Microsoft.Office.RecordsManagement.Reporting.ReportBase.AggregateReports(Hashtable query, SPFolder folder, ReportNameGenerator reportNameGenerator)     在 Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object
    sender, EventArgs e)     在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Runtime
    Unexpected
    System.Runtime.InteropServices.COMException: 拒绝访问。 (异常来自 HRESULT:0x80030005 (STG_E_ACCESSDENIED))    在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)    
    在 Microsoft.Office.Server.OpenXml.Internal.ByteStream.Write(Byte[] rgb, Int32 offset, Int32 cb)     在 System.IO.BufferedStream.FlushWrite()     在 System.IO.StreamWriter.Dispose(Boolean disposing)    
    在 System.IO.StreamWriter.Close()     在 System.Xml.XmlTextWriter.Close()     在 Microsoft.Office.RecordsManagement.Reporting.AuditReportGenerator.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportData.Dispose()    
    在 Microsoft.Office.RecordsManagement.Reporting.ReportBase.AggregateReports(Hashtable query, SPFolder folder, ReportNameGenerator reportNameGenerator)     在 Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object
    sender, EventArgs e)     在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    General
    High
    Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): 引发类型为“System.Web.HttpUnhandledException”的异常。 ---> System.Runtime.InteropServices.COMException (0x80030005): 拒绝访问。 (异常来自 HRESULT:0x80030005
    (STG_E_ACCESSDENIED))     在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)     在 Microsoft.Office.Server.OpenXml.Internal.ByteStream.Write(Byte[] rgb, Int32 offset,
    Int32 cb)     在 System.IO.BufferedStream.FlushWrite()     在 System.IO.StreamWriter.Dispose(Boolean disposing)     在 System.IO.StreamWriter.Close()     在 System.Xml.XmlTextWriter.Close()    
    在 Microsoft.Office.RecordsManagement.Reporting.AuditReportGenerator.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportData.Dispose()     在 Microsoft.Office.RecordsManagement.Reporting.ReportBase.AggregateReports(Hashtable
    query, SPFolder folder, ReportNameGenerator reportNameGenerator)     在 Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object sender, EventArgs e)     在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String
    eventArgument)     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     在 System.Web.UI.Page.HandleError(Exception e)     在 System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     在 System.Web.UI.Page.ProcessRequest()    
    在 System.Web.UI.Page.ProcessRequest(HttpContext context)     在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     在 System.Web.HttpApplication.ExecuteStep(IExecutionStep
    step, Boolean& completedSynchronously)

  • Sharepoint 2013 performance is very slow not able develop the custom solution.

    hi this is goutham i am facing performance issues and version issue when i develop  webparts and visual studio workflow on SharePoint 2013, even if i change the code also some times the output showing previous code output and i am not able to debug
    the solution.
    My system having very high configuration i7 processor and 16 GB Ram.
    can you please give any solution for my problem.

    Hi Goutham,
    You have not given enough information about your issue and environment, so it is bit tough to suggest you a solution.
    here are few things you can try out -
    1. See how much free memory you have in your server
    2. If your SQL server installation in on the same server, then allocate some % of memory to it, that is set an upper limit of memory usage to SQL Server
    http://technet.microsoft.com/en-us/library/ms178067.aspx
    http://support.microsoft.com/kb/321363/en-us
    3. Use developer dashboard to see why your code has performance issue
    http://blah.winsmarts.com/2012-7-SharePoint_2013_Developer_dashboard.aspx
    4. Use Fiddler to check the application call to your server
    http://www.telerik.com/fiddler
    5. Check whether there is memory leak and dispose objects whenever required
    6. If you have your environment setup for development, then stop services that you are not using, this would free up some resources
    7. use ULS log viewer to analyze SharePoint logs
    You might be seeing the same code(assumption of your code after deployment), that may be because you may have not published your app to SP server or your code was not saved by VS.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Cannot access SharePoint 2013 publishing site

    HI,
    I set up a SharePoint 2013 and everything seemed to work fine (setup was basically done using the codeplex autoinstaller script).
    But now I detected, that I have an issue with the publishing feature. Regardless of whether I activate this feature on an existing site collection or whether I create a new site collection with the Publishing Portal template, I cannot access the site. Even
    not with the site collection administrator account.
    I tried to assign the Central-Admin app-pool to the website (found this hint several times), but it doesn't solve the issue.
    In the ULS logs, I found the following:
    SPRequest.GetAclForScope: UserPrincipalName=i:0).w|s-1-5-21-3951779234-2814364508-2306989609-1113, AppPrincipalName= ,bstrWebUrl=http://krom.devnet.local/sites/pub ,guidScopeId=dff5401d-7fa6-4868-bcfe-ece146d7e275 ,fRequirePermissionCheck=True
    System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
    at Microsoft.SharePoint.SPReusableAcl..ctor(SPRequest request, String webUrl, Guid scopeId, Boolean requirePermissionCheck)    
    at Microsoft.SharePoint.Publishing.AclCache.GetAclForScope(Guid scopeId, Boolean disposeOfSite)    
    at Microsoft.SharePoint.Publishing.WebControls.ConsoleXmlUtilities.ConfigurationXml(String configProvider, Boolean isBuiltInConfigFile)    
    at Microsoft.SharePoint.Publishing.WebControls.ConsoleXmlUtilities.GetConsoleNodeCollection(String configXml, ConsoleNode prePopulatedRootNode)    
    at Microsoft.SharePoint.Publishing.WebControls.ConsoleXmlUtilities.GetConsoleNodeCollectionFromXmlFile(String configName, Boolean isBuiltInConfigFile)    
    at Mi...
    ...crosoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.LoadTreeFromConfigXml()    
    at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e)    
    at Microsoft.SharePoint.Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e)    
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfte...
    ...rAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest()    
    at System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)    
    at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)    
    at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)    
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)    
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNo...
    ...tificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr native...
    ...RequestContext, IntPtr moduleData, Int32 flags)  
    Access Denied. Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:  
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetAclForScope(String bstrWebUrl, Guid guidScopeId, Boolean fRequirePermissionCheck, Object& pvarAcl, UInt64& lAnonymousMask)    
    at Microsoft.SharePoint.Library.SPRequest.GetAclForScope(String bstrWebUrl, Guid guidScopeId, Boolean fRequirePermissionCheck, Object& pvarAcl, UInt64& lAnonymousMask).
    Exception in file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\Layouts\EditingMenu\SiteAction.xml: Thread was being aborted.
    Any ideas, what causes this issue and how to solve it?
    Thanks!!

    No, I created the sub site from central admin and after creation succeeded was never able to access it - so no custom apps there. This only happens, if I create the site collection with publishing portal template - team site template for example works fine.
    I took a look into the IIS log and found the following:
    2012-11-19 14:24:33 fe80::55a3:a2df:7e9d:eb59%12 GET /_layouts/15/user.aspx obj={C701B918-B686-42B4-B1C5-B68FA4B2419F},doclib&list={C701B918-B686-42B4-B1C5-B68FA4B2419F} 80 0#.w|devnet\administrator fe80::55a3:a2df:7e9d:eb59%12 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.2;+WOW64;+Trident/6.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729)
    - 302 0 0 104
    2012-11-19 14:24:33 fe80::55a3:a2df:7e9d:eb59%12 GET /_layouts/15/AccessDenied.aspx Source=http%3A%2F%2Fkrom%2Edevnet%2Elocal%2Fsites%2Fpub%2F%5Flayouts%2F15%2Fuser%2Easpx%3Fobj%3D%7BC701B918%2DB686%2D42B4%2DB1C5%2DB68FA4B2419F%7D%2Cdoclib%26list%3D%7BC701B918%2DB686%2D42B4%2DB1C5%2DB68FA4B2419F%7D&Type=list&name=%7B1AC4E1A1%2D0C23%2D4203%2D96A2%2D419EC36CFDAD%7D
    80 0#.w|devnet\administrator fe80::55a3:a2df:7e9d:eb59%12 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.2;+WOW64;+Trident/6.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) - 200 0 0 30
    The list that is mentioned in the source-URL (ID starts with C701B918) is the Pages list - I checked this in SharePoint Designer. So it seems that I have no access to the Pages library and that would explain why I can't access the page..
    But why do I not have permission? And: how can I fix this? I tried the following powershell script but still no access to the pages library.
    PS C:\Users\administrator> $web = get-spweb
    http://krom.devnet.local/sites/pub
    PS C:\Users\administrator> $account = $web.ensureuser("devnet\administrator")
    PS C:\Users\administrator> $role = $web.RoleDefinitions["Contribute"]
    PS C:\Users\administrator> $list = $web.lists["Pages"]
    PS C:\Users\administrator> $list.breakroleinheritance($true)
    PS C:\Users\administrator> $assignment = new-object microsoft.sharepoint.sproleassignment($account)
    PS C:\Users\administrator> $assignment.roledefinitionbindings.add($role)
    PS C:\Users\administrator> $list.roleassignments.add($assignment)
    PS C:\Users\administrator> $list.update()
    PS C:\Users\administrator> $web.dispose()
    I also cannot change permission with SharePoint Designer because it just tries to open the related SharePoint page in browser and exactly is what I'm not allowed to do :-(

  • Error while crawling LOB contents SharePoint 2013

    Error while crawling LOB contents SharePoint 2013
    I have Configured the BDC Service application using SQL external content. The connection was successful and I am able to see the external content in the List "BDC Demo" . But when I search in the BDC Demo site it gives nothing.
    So I checked in the crawl logs and identified that it shows " 1 " under error. to further drill down the issue , I went to click on "1" and see the error message : Error while crawling LOB contents SharePoint 2013 .
    I have created an external DB named BCSDemo_DB for which I have granted my search Service account read& write permission.
    I have added the same account under administrators for both secure store and BCS service applications. 
    I have done index reset , done a full crawl but the error still occurs.
    Can someone please advise if I am missing something.
    Regards

    Hi Aravinda,
    According to your description, my understanding is that you got an error when you crawled SQL database table in SharePoint 2013.
    This error is caused by the fact that the default content access account does not have any rights to access the metadata store in the Business Data Connectivity Service Application.
    Or it is caused by the default content access account has no rights on the SQL database.
    For fixing it, you need to grant the default content access account permission on metadata store in the Business Data Connectivity Service Application and the SQL database. You can refer to the link below:
    http://www.sharepointinspiration.com/Lists/Posts/Post.aspx?ID=5
    After that, do a full crawl for the content source.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Using my own CSS in ITS mobile

    Hi, I have created an ITS and generated some screens for LM00 etc. with the Generation Style "MOBILE". My parameters in my ITS are: ~DISCONNECTONCLOSE    1 ~ITSMOBILE    1 ~ITSMOBILECSSINCLUDE    ZZE ~LANGUAGE    E ~THEME    99 ~TRANSACTION    LM00 A

  • [SOLVED] xf86-video-ati 1:7.0.0.-1: segmentation fault

    Hello, just did a system upgrade (just xorg and xf86-video-ati were outdated) and with the newest radeon driver I can't start x. Manually recompiling the newest driver did not help, downgrading to 1:6.14.6-2 did. Here is my xorg.log - any suggestions

  • User Settings are not saved

    Hello, I am setting the values in User settings. It is sucessfully changedand saved, but the changes are not appearing while creating the shopping cart. In pposa_bbp also the value is maintained as default. We are in SRM 5.0 classi scenario. Please l

  • Subsequent XML Parse Failures

    Hi, Code is executing in a loop and is parsing files in a list. Upon encountering an XML error during parsing it seems that all subsequent parsing of any XML file results in a "LPX-00202: could not open file <file>" error. Even though the subsequent

  • Email multiple selected recipients / Radio Group?

    Hi all. I've recently come to basic grips with PHP and Forms. I would like to create something similar to a radio group, in which the user can select multiple email recipients and then click Send to relay a message to all, and only, the selected. Ima