Most time the error indicates the app pool identity account in IIS may not have permission.
Archive for the ‘Tools’ Category
401: “You do not have permission to view this directory or page.”
Posted by ken zheng on November 23, 2011
Posted in Tools | Tagged: IIS | Leave a Comment »
Telerik Control in SharePoint
Posted by ken zheng on January 12, 2011
I found an interesting issue when using telerik:RadAjaxManager in SharePoint Site. From the tutorial, you use
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager>
You can see the AjaxContrilID is the same as UpdatedControl ID. It works fine on asp .net but when I moved the code to SharePoint as User Control, I found after post back some controls like Validation not working properly. Once you changed the AjaxContrilID to a different name, it works like charm now. Hope it helps someone had same issues.
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
Posted in Sharepoint, Tools | Tagged: SharePoin, telerik | Leave a Comment »
Must Have Tools For SharePoint 2010 Development
Posted by ken zheng on December 21, 2010
Posted in Sharepoint, Tools | Tagged: Sharepoint 2010, Tools | Leave a Comment »
How to Use SPDisposeCheck
Posted by ken zheng on July 6, 2010
SPDisposeCheck is a tool to help you to check your assemblies that use the SharePoint API so that you can build better code. It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice. This tool may not show all memory leaks in your code. Further investigation is advised if you continue to experience issues.
You can download from CodePlex here.
here is the example show you how to dispose the patterns.
How to use it
1. Install SPDisposeCheck.msi on your development server.
2. Open a command window.
3. Type following command:
“c:\Program Files\Microsoft\SharePoint Dispose Check\SPDisposeCheck.exe” “.dll”
Posted in Sharepoint, Tools | Tagged: Sharepoint, SPDisposeCheck | 1 Comment »
Scott Hanselman’s 2009 Ultimate Developer and Power Users Tool List for Windows
Posted by ken zheng on October 7, 2009
It is a very useful check list to install any utility tools
Posted in Handy Tips, Tools | Leave a Comment »
Registry editing has been disabled by your administrator
Posted by ken zheng on November 26, 2008
If you get this message when trying to run regedit. Download the vb script and run it.
http://praveenkumarg.blogspot.com/2008/10/registry-editing-has-been-disabled-by.html
Posted in Tools | Tagged: Regedit | 1 Comment »
How to reclaim up to 2Gb from your disk space
Posted by ken zheng on October 11, 2008
Via Twitter @ Scott Hanselman:
>VSP1CLN.exe
This operation will make Windows Vista Service Pack 1 permanent on this computer.
Upon completion you will not be able to remove Windows Vista Service Pack 1 from this system.
Would you like to continue? (Y/N): y
Performing Windows Vista Service Pack 1 Disk Clean-up…
Windows Vista Service Pack 1 Disk Clean-up completed.
Posted in Tools | Leave a Comment »
Regular Expression Tool
Posted by ken zheng on September 10, 2008
Check RegexBuddy tool, it is excellent tool to help you create a regular expression.
A good tutorial here , and http://msdn.microsoft.com/en-us/library/30wbz966(VS.71).aspx
Posted in Tools | Tagged: Regular Expression | Leave a Comment »
Process Monitor v1.35
Posted by ken zheng on July 29, 2008
if it’s a simple permissions failure (which it is) – just find out which account is trying to do what.
Download and run procmon (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx). Filter its trace to only show file events in the d:\inetpub\wwwroot\ folder and then watch for the failure. If something is trying to access d:\inetpub\wwwroot\web.config and getting denied. Procmon will tell you a) which process tried, b) which account it tried as and c) what it tried to do.
Posted in Tools | Leave a Comment »
Configure a service to start with the WinDbg debugger attached
Posted by ken zheng on July 28, 2008
Configure the “Image File Execution” options. To do this, use one of the following methods:
•
Method 1: Use the Global Flags Editor (gflags.exe)
-
a. Start Windows Explorer.
b. Locate the gflags.exe file on your computer.
Note The gflags.exe file is typically located in the following directory: C:\Program Files\Debugging Tools for Windows.
c. Run the gflags.exe file to start the Global Flags Editor.
d. In the Image File Name text box, type the image name of the process that hosts the service that you want to debug. For example, if you want to debug a service that is hosted by a process that has MyService.exe as the image name, type MyService.exe.
e. Under Destination, click to select the Image File Options option.
f. Under Image Debugger Options, click to select the Debugger check box.
g. In the Debugger text box, type the full path of the debugger that you want to use. For example, if you want to use the WinDbg debugger to debug a service, you can type a full path that is similar to the following: C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe
h. Click Apply, and then click OK to quit the Global Flags Editor.
Posted in Tools | Tagged: windbg | 1 Comment »