Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

SharePoint 2010: Weird problem with CQWP with a custom itemstyle.xsl -file.

Posted on 2011-10-31
3
Medium Priority
?
1,460 Views
Last Modified: 2012-05-12
Hello. I created a custom CQWP which basically does nothing but deploys customized xsl-file. Everything works fine when my cqwp is viewed by admin, but when page is viewed by standard user I get an error saying: Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation [...]

 Error while executing web part: System.Xml.Xsl.XslLoadException: XSLT compile error. An error occurred
at (1,456). ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.    
 at System.Net.HttpWebRequest.GetResponse()    
 at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)    
 at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)    
 at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)    
 at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri uri, XmlResolver xmlResolver)    
 at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include)    
 at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)     -
-- End of inner exception stack trace ---    
 at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)    
 at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver)    
 at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)    
 at System.Xml.Xsl.XslCompiledTransform.CompileXsltToQil(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)    
 at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)    
 at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)    
 at Microsoft.SharePoint.WebPartPages.DataFormWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)    
 at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()    
 at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)

Open in new window


0
Comment
Question by:tolppa
  • 2
3 Comments
 
LVL 11

Expert Comment

by:svetaye
ID: 37055324
Hello,
Please recheck that you have published the ItemStyle.xsl file to everyone.
Try to perform check-out/check-in again and publish it as aprimary version.
I hope it helps.
0
 
LVL 1

Author Comment

by:tolppa
ID: 37136610
Actually I realized that I did not deploy (vs) my custom itemstyle correct folder but created a new folder for my customized itemstyle. Perhaps ordinary users don't have enougth privileges to use that folder? Is it possible to give them authority to use that folder?
0
 
LVL 11

Accepted Solution

by:
svetaye earned 2000 total points
ID: 37136629
The content query web part works only with files from the Style Library/ XSL Style Sheets on the site collection level. You can change the name of the file to some custom name and place it to this directory.Then you need to redirect you web part to this file instead of the default item style file.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question