tag:blogger.com,1999:blog-62969342034871368902023-11-15T06:08:34.828-08:00SharePoint SharePoint and SharePoint ...Ashishhttp://www.blogger.com/profile/06588095084672842724noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6296934203487136890.post-33230890413845542082011-03-26T09:19:00.000-07:002011-03-26T09:19:04.152-07:00Earth Hour 2011 Official video<iframe width="480" height="295" src="http://www.youtube.com/embed/4Mxjbip6y04?fs=1" frameborder="0" allowFullScreen=""></iframe>Ashishhttp://www.blogger.com/profile/06588095084672842724noreply@blogger.com0tag:blogger.com,1999:blog-6296934203487136890.post-38984382994324036332010-02-24T06:30:00.001-08:002010-02-24T06:30:55.345-08:00Access Denied when callign SPService.Update()Problem: <br />
Access Denied when callign SPService.Update().<br />
This error was not seen in MOSS 2007, however now when deployed to SharePoint 2010 we are seeing this error when the code reaches SPService.Update() i.e. base.update();<br />
<br />
Details: <br />
There is a Web service AppWebService deployed to SharePoint 2010 & it consumes OneOfMyServices: SPService, IBackupRestore to store/persist a XML file.<br />
<br />
Lines of code<br />
<br />
<br />
SPSecurity.RunWithElevatedPrivileges(delegate() <br />
<br />
{<br />
<br />
<br />
<br />
<br />
base.Update(); //Errors out here with Access Denied <br />
<br />
});<br />
<br />
Exception details<br />
<br />
<br />
<br />
Source <br />
"Microsoft.SharePoint"<br />
<br />
Stack Trace: at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()<br />
at MY.APPServices.Services.OneOfMyServices.<InnerUpdate>b__1()<br />
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()<br />
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)<br />
<br />
{Void BaseUpdate()}<br />
System.Reflection.MethodAttributes.Private | System.Reflection.MethodAttributes.FamANDAssem | System.Reflection.MethodAttributes.HideBySig<br />
<br />
Declarign Type = {Name = "SPPersistedObject" FullName = "Microsoft.SharePoint.Administration.SPPersistedObject"}<br />
<br />
OS - Windows 7 ultimate <br />
SharePoint 2010 beta <br />
<br />
if any one has seen this or was able to resolve kindly reply with possible directions, resolution ....Ashishhttp://www.blogger.com/profile/06588095084672842724noreply@blogger.com0tag:blogger.com,1999:blog-6296934203487136890.post-84600108300990214362010-02-07T23:39:00.000-08:002013-04-09T07:01:38.342-07:00Left Navigation & Webpart Pages<a href="http://www.emanonlabs.in/Images/EmanonIconLarge.png" imageanchor="1" ><img border="0" src="http://www.emanonlabs.in/Images/EmanonIconLarge.png" /></a>Sharepoint 2010 webpart pages dont show the left navigation by default<br />
<br />
<a href="http://jetlounge.net/blogs/teched/archive/2009/01/12/quick-launch-bar-navigation-missing-from-web-part-pages-in-sharepoint.aspx">http://jetlounge.net/blogs/teched/archive/2009/01/12/quick-launch-bar-navigation-missing-from-web-part-pages-in-sharepoint.aspx</a><br />
<br />
<a href="http://www.beyondweblogs.com/post/Quick-Launch-Navigation-missing-from-SharePoint-Web-part-page.aspx">http://www.beyondweblogs.com/post/Quick-Launch-Navigation-missing-from-SharePoint-Web-part-page.aspx</a><br />
Solution provided in these link didn't work however some research & persistence did it all - we found the solution- <br />
1. There is this tag which needs to be deleted or commented (this one hides the left nav)<br />
<blockquote><SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion="4" runat="server"><br />
<contenttemplate><br />
<style type="text/css"><br />
body #s4-leftpanel {<br />
display:none;<br />
}<br />
.s4-ca {<br />
margin-left:0px;<br />
}<br />
</style><br />
</ContentTemplate><br />
</SharePoint:UIVersionedContent></blockquote><br />
2. Delete only this tag as this is what overrides the default nav coming from the master page.<br />
<blockquote><asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content><br />
</blockquote>3. Leave this tag as it is, if this is deleted(as said in other posts) it leaves a blank row on top the left nav which is not what you would want.<br />
<blockquote><asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content></blockquote><br />
Happy SharePointing!Ashishhttp://www.blogger.com/profile/06588095084672842724noreply@blogger.com3