tag:blogger.com,1999:blog-1864226919794718892024-03-13T14:05:04.339-07:00Things Paaya didn't knowPaayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-186422691979471889.post-55206780722886026752012-04-17T14:09:00.000-07:002012-04-17T14:28:03.082-07:00SSRS - Link to Open Outlook and compose email<h2>
<span style="color: #0c343d;">SSRS - Link to Open Outlook and compose email</span></h2>
<div>
SQL Reporting Services is a very powerful tool to build Reports. </div>
<div>
<br /></div>
<div>
In one of my projects, my client wanted to have a link in the report so that when user click on the link it open outlook and compose an email with a pre-define emails and subject so that user can compose the email and don't worry about recipients or subject line. This is how it can be implemented:</div>
<div>
<br /></div>
<div>
<ul>
<li>Add a Text box control to your report</li>
<li>right click on text box and go to properties</li>
<li>Go to "Action" tab within properties</li>
<li>Click on "Go to URL" option</li>
<li>click on Fx" Button to the right side of URL drop down (see picture below)</li>
</ul>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-5SX1lmiEHcQ/T43ZkNWMTTI/AAAAAAAAAkE/PrrxbtwQB94/s1600/SSRS1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="366" src="http://1.bp.blogspot.com/-5SX1lmiEHcQ/T43ZkNWMTTI/AAAAAAAAAkE/PrrxbtwQB94/s400/SSRS1.PNG" width="400" /></a></div>
<ul>
<li>put this line there</li>
</ul>
<div style="text-align: center;">
<b><span style="color: #660000; font-family: Georgia, 'Times New Roman', serif;"> ="MailTo:" & "[EmailAddress]" & "?subject" & "[Subject Line]"</span></b></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
([EmailAddress] and [Subject Line] should be replace by email and subject that you like the email composed with </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com1tag:blogger.com,1999:blog-186422691979471889.post-86618518093155562082011-09-07T10:41:00.000-07:002011-09-07T10:41:02.604-07:00How to disable a button (e.g. Submit button) on client sideIf you want to disable a button as soon as user click on it <u><b>(so they don't click multiple times</b></u>) , you have to do it on client side. Below is how you can do this.<br />
<br />
<br />
<ol><li>Add the button first</li>
</ol><br />
<br />
<br />
<div style="background-color: #eeeeee;"><blockquote><asp:button causesvalidation="false" id="SubmitButton" onclick="SubmitButton_Click" onclientclick="DisableSubmitButton()" runat="server" text="Submit" usesubmitbehavior="false"></blockquote></div><br />
<br />
<ol><li>Add this JavaScript function to the page and you set to go.</li>
</ol><br />
<blockquote><br />
function DisableSubmitButton(url) {<br />
var button = document.getElementById('&lt;%= SubmitButton.ClientID %&gt;');<br />
button.disabled = true<br />
button.value = 'Submitting...';<br />
__doPostBack('SubmitRadButton', '')<br />
}</blockquote>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-74118285508625248652011-09-07T10:37:00.000-07:002011-09-07T10:38:16.258-07:00How to post code snippet on bloggerI had hard time to put my code snippet on blogger and that is because I don't do that much of blogging but I am starting to enjoy it. Thanks to <span class="Apple-style-span" style="color: #134f5c;"><a href="http://www.blogpandit.com/2009/05/add-code-snippet-to-blogger-mystery.html">BlogPandit</a> </span>to give the instructions for this. I am just repeating them.<br />
<br />
When you want to add part of your code (specially asp.net code) you need to do couple of steps to get the code ready for blogger editor. Here they are:<br />
<br />
<br />
<ol><li>Get your code <b>parsed </b>using the following link<span class="Apple-style-span" style="color: #134f5c;"> <a href="http://www.blogcrowds.com/resources/parse_html.php">Blogcrowds</a> </span></li>
<li>Get the parsed code and put it inside of <span class="Apple-style-span" style="color: #990000;">blockquote</span> tags </li>
<li>Your are good to go</li>
</ol><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-gCK22CXUWZM/TmerDdb3jqI/AAAAAAAAAek/V17CEE9SEi4/s1600/blogpost-3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-gCK22CXUWZM/TmerDdb3jqI/AAAAAAAAAek/V17CEE9SEi4/s1600/blogpost-3.jpg" /></a></div><div><span class="Apple-style-span" style="color: #38761d;"><br />
</span></div><br />
<blockquote><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: 12px; line-height: 20px;"><br />
</span></span></blockquote>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-75470348527931278452011-04-12T09:31:00.000-07:002011-04-12T09:33:02.762-07:00Print Multipe documents in Word in silent mode<strong><span style="font-size: large;">Problem:</span></strong><br />
printing multiple word documents (e.g. 2000 word document) within a folder takes a long time as MS-Word try to open each document, print it. One my clients have this issue which took about 7 hours to print 2000 word documents.<br />
<br />
<strong><span style="font-size: large;">Solution </span></strong><br />
After a research (thanks to google for bringing the right result in searches most of the time) I find this Forum that someone wrote the script (to be used in MS-Word or Excel) to solve the problem<br />
<br />
<a href="http://forums.techguy.org/business-applications/485943-printing-multiple-files-folder.html">http://forums.techguy.org/business-applications/485943-printing-multiple-files-folder.html</a><br />
<br />
Thanks to user "Rolling_Again" that wrote the code and share it. I put the code below as the original didn't work for me. I got error in Application.Filesearch so I find a way to do the same functionality without it. Below is the code,<br />
<br />
To run it All you need to do is :<br />
<ul><li>open MS-Word or Excel </li>
<li>Open "Macro" section (under "View" in office 2007)</li>
<li>Copy the code on vb script screen that opened and save it </li>
<li>Run "Print All" module, It will open folder selector to let you chose which folder and then it will print all documents with extension "*.doc" within that folder </li>
</ul><blockquote><div style="background-color: #eeeeee;">'API Declares<br />
<br />
Private Declare Function SendMessage Lib "USER32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<br />
Private Declare Function SHBrowseForFolder Lib "shell32.dll" Alias "SHBrowseForFolderA" (lpbi As BrowseInfo) As Long<br />
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long<br />
Private Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal hMem As Long)<br />
<br />
'API Constants<br />
Private Const MAX_PATH = 260<br />
Private Const BIF_RETURNONLYFSDIRS = 1<br />
Private Const BIF_STATUSTEXT = 4<br />
Private Const WM_USER = &H400<br />
Private Const BFFM_INITIALIZED = 1<br />
Private Const BFFM_SELCHANGED = 2<br />
Private Const BFFM_SETSTATUSTEXTA = (WM_USER + 100)<br />
Private Const BFFM_SETSELECTIONA = (WM_USER + 102)<br />
<br />
<br />
<br />
'BrowseInfo Type<br />
Private Type BrowseInfo<br />
hwndOwner As Long<br />
pIDLRoot As Long<br />
pszDisplayName As String<br />
lpszTitle As String<br />
ulFlags As Long<br />
lpfn As Long<br />
lParam As Long<br />
iImage As Long<br />
End Type<br />
<br />
<br />
'Private Variables<br />
<br />
Private m_sDefaultFolder As String<br />
Public Sub BrowseFolder()<br />
frmBrowse.Show<br />
frmBrowse.txtDirectory.Text = ""<br />
End Sub<br />
<br />
<br />
Public Function BrowseForFolder(DefaultFolder As String, Optional Parent As Long = 0, Optional Caption As String = "") As String<br />
Dim bi As BrowseInfo<br />
Dim sResult As String, nResult As Long<br />
bi.hwndOwner = Parent<br />
bi.pIDLRoot = 0<br />
bi.pszDisplayName = String$(MAX_PATH, Chr$(0))<br />
If Len(Caption) > 0 Then<br />
bi.lpszTitle = Caption<br />
End If<br />
<br />
bi.ulFlags = BIF_RETURNONLYFSDIRS<br />
bi.lpfn = GetAddress(AddressOf BrowseCallbackProc)<br />
bi.lParam = 0<br />
bi.iImage = 0<br />
m_sDefaultFolder = DefaultFolder<br />
nResult = SHBrowseForFolder(bi)<br />
<br />
If nResult &lt;> 0 Then<br />
sResult = String(MAX_PATH, 0)<br />
<br />
If SHGetPathFromIDList(nResult, sResult) Then<br />
BrowseForFolder = Left$(sResult, InStr(sResult, Chr$(0)) - 1)<br />
End If<br />
<br />
CoTaskMemFree nResult<br />
End If<br />
<br />
End Function<br />
<br />
<br />
Private Function BrowseCallbackProc(ByVal hwnd As Long, ByVal uMsg As Long, ByVal lParam As Long, ByVal lpData As Long) As Long<br />
Select Case uMsg<br />
Case BFFM_INITIALIZED<br />
If Len(m_sDefaultFolder) > 0 Then<br />
SendMessage hwnd, BFFM_SETSELECTIONA, True, ByVal m_sDefaultFolder<br />
End If<br />
End Select<br />
End Function<br />
<br />
Private Function GetAddress(nAddress As Long) As Long<br />
GetAddress = nAddress<br />
End Function<br />
<br />
Public Sub PrintAll()<br />
<br />
Dim txtDirectory As String<br />
txtDirectory = BrowseForFolder(txtDirectory, , "&Select a directory:")<br />
ChDir txtDirectory<br />
sFile = Dir("*.doc")<br />
Do While sFile &lt;> ""<br />
Application.PrintOut , , , , , , , , , , , , CStr(txtDirectory & "\" & sFile)<br />
sFile = Dir<br />
Loop<br />
End Sub<br />
<br />
Sub AccessDeliveryPopUpMenu()<br />
'<br />
' AccessDeliveryPopUpMenu Macro<br />
'<br />
'<br />
End Sub</div></blockquote>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-32142015516093604642010-06-13T08:32:00.000-07:002010-09-21T18:15:21.711-07:00Problem With UpdatePanel and FormViewI got to this problem the other day which I thought is good to share it.<br />
<br />
<span class="Apple-style-span" style="color: #20124d;"><span class="Apple-style-span" style="font-size: x-large;">Situation </span></span><br />
<span class="Apple-style-span" style="color: #20124d;">In one of my ASP.NET application, I have a "Form View" which is bind to a database. For some reason, I needed to use Update Panel (Ajax) to implement click event without server post back. So I used it and it works fine but the problem was when I submit my Form View to save information, the controls that are inside of "Update Panel" would not updated on SQL database even though the update method called. </span><br />
<span class="Apple-style-span" style="color: #20124d;"><br />
</span><br />
<span class="Apple-style-span" style="color: #351c75;"><span class="Apple-style-span" style="font-size: x-large;">Solution </span></span><br />
<span class="Apple-style-span" style="color: #351c75;">After a little bit of research, <a href="http://forums.asp.net/t/1055525.aspx">I found out that is bug with Update Panel and Form View</a> but there is a work around. to fix it. All you need to do is to use "<b>Updating</b>" event of Form View and set the value of controls that are inside of "Update Panel" by using e.InputParameter[0] (Take a look at sample below. notice that we cast e.InputParameter[0] as the object of entity/class that bound to form view and that solve the issue. here is some sample code :</span><br />
<span class="Apple-style-span" style="color: #351c75;"><br />
</span><br />
<span class="Apple-style-span" style="color: #351c75;"></span><br />
<span class="Apple-style-span" style="color: #351c75;"><br />
<span class="Apple-style-span" style="font-size: x-small;"> protected void odsMatterDetail_Updating(object sender, ObjectDataSourceMethodEventArgs e)</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> {</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> </span><br />
<span class="Apple-style-span" style="font-size: x-small;"> //update items that are inside Update panel AJax. because of Update Panel items not bound back to form</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> YesNoControl YesNoControlHST = (YesNoControl)MatterDetailFormview.FindControl("YesNoControlHST");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> YesNoControl YesNoControlIsCanadian = (YesNoControl)MatterDetailFormview.FindControl("YesNoControlIsCanadian");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> YesNoControl YesNoControlIsCndLitigation = (YesNoControl)MatterDetailFormview.FindControl("YesNoControlIsCndLitigation");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> YesNoControl YesNoControlHasLitigationCommence = (YesNoControl)MatterDetailFormview.FindControl("YesNoControlHasLitigationCommence");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> YesNoControl YesNoControlHasRealPropertyInCnd = (YesNoControl)MatterDetailFormview.FindControl("YesNoControlHasRealPropertyInCnd");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> LookupListBoxControl LookupListBoxOfficeProvince = (LookupListBoxControl)MatterDetailFormview.FindControl("LookupListBoxOfficeProvince");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> LookupListBoxControl LookupListBoxLitigationProvince = </span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (LookupListBoxControl)MatterDetailFormview.FindControl("LookupListBoxLitigationProvince");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> LookupListBoxControl LookupListBoxRealPropProvince = </span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (LookupListBoxControl)MatterDetailFormview.FindControl("LookupListBoxRealPropProvince");</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).IsGSTApplied = YesNoControlHST.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).IsCanadianClient = YesNoControlIsCanadian.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).ClientOfficeProvinceCode = LookupListBoxOfficeProvince.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> </span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).IsCanadianLitigationMatter = YesNoControlIsCndLitigation.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).HasLitigationCommenced = YesNoControlHasLitigationCommence.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).LitigationProvinceCode = LookupListBoxLitigationProvince.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).HasRealPropertyInCanada = YesNoControlHasRealPropertyInCnd.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).RealPropertyProvinceCode = LookupListBoxRealPropProvince.Value;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> (e.InputParameters[0] as MatterDetail).ModifBy = Security.CurrentUserID;</span><br />
<span class="Apple-style-span" style="font-size: x-small;"> }</span><br />
<div><span class="Apple-style-span" style="font-size: x-small;"><br />
</span></div><div><br />
</div></span><br />
<span class="Apple-style-span" style="color: #351c75;"><div>Happy Coding </div><div>:-0)</div></span>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-66991731371594498262010-04-20T13:32:00.000-07:002010-09-21T18:14:41.549-07:00Issue with VSEWSS 1.3 when having interface in multiple assembliesI got this post completely from <span class="Apple-style-span" style="font-family: verdana, arial, helvetica; font-size: 16px; font-weight: bold;"><a class="headermaintitle" href="http://blogs.msdn.com/johnwpowell/default.aspx" id="ctl00___ctl00___ctl00_ctl00_bcr_bth___BlogTitle" style="color: #0033cc;">John W Powell</a> </span><span class="Apple-style-span" style="font-family: verdana, arial, helvetica;"><span class="Apple-style-span" style="font-size: small;">blog. I spent a lot of time to fix the issue I had with VSEWSS 1.3 and the solution was in his post. Thanks to John,</span></span><br />
<span class="Apple-style-span" style="font-family: verdana, arial, helvetica;"><span class="Apple-style-span" style="font-size: small;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: verdana, arial, helvetica;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-size: 11px;"></span></span></span><br />
<h4 class="BlogPostHeader" style="font-size: 11px; font-weight: 900; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Visual Studio Extensions for Windows SharePoint Services (VSEWSS) Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information</h4><div class="BlogPostContent" style="font-size: 11px;">One error you may see when packaging solutions with VSEWSS is: <em>Microsoft.SharePoint.Tools.Utilities.VSeWSSServiceException VSeWSS Service Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. </em>Like most error messages from VSEWSS, there is not enough information provided to resolve the issue, so I hope to save you some time by providing a workaround that will permanently fix this problem.<br />
When VSEWSS packages your solution, it uses reflection to enumerate the packaged assemblies. It works fine until it encounters an assembly that implements an interface that is defined in another assembly as is often the case in the Microsoft.Practices.* assemblies. I am unsure of exactly why, but the extensions are unable to resolve the dependent assemblies. To work around the issue, you can copy the dependent assemblies to the GAC, but I don’t think this is the optimal solution and doing so will cause pain during development and debugging. Another option is to copy the dependent assemblies to the VSEWSS service bin directory post build. After trying this for awhile, and maintaining the script, I decided it would be much simpler to just copy all assemblies in my solution to the VSEWSS service bin directory on post build. Here is the script:<br />
<pre class="csharpcode" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 1em; margin-left: 0px; margin-top: 1em; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; white-space: pre-wrap; word-wrap: break-word;">@<span class="kwrd">rem</span>======================================================================
@<span class="rem">rem</span>
@<span class="rem">rem This script copies assemblies to the VSEWSS bin directory</span>
@<span class="rem">rem to eliminate the packaging type load exception that occurs</span>
@<span class="rem">rem when an interface is defined in a separate assembly.</span>
@<span class="rem">rem </span>
@<span class="rem">rem usage call $(ProjectDir)Scripts/CopyAssembliesToVSEWSSBin.bat $(TargetDir)</span>
@<span class="rem">rem</span>
@<span class="kwrd">rem</span>======================================================================
@echo off
@echo ========== Locating VSEWSS bin directory ==========
@<span class="kwrd">set</span> vsewssbin=%programfiles%\Microsoft SharePoint Developer Tools 9.0\svc\bin
<span class="kwrd">if</span> <span class="kwrd">not</span> exist <span class="str">"%vsewssbin%"</span> <span class="kwrd">set</span> vsewssbin=%ProgramW6432%\Microsoft SharePoint Developer Tools 9.0\svc\bin
@echo VSEWSS bin: %vsewssbin%
@echo ========== Copying assemblies <span class="kwrd">to</span> VSEWSS bin directory ==========
@xcopy <span class="str">"%1*.dll"</span> <span class="str">"%vsewssbin%"</span> /R /Y
</pre>To use the script, create a bat file in your project and call it from a post build event. It does take 64-bit installations into account, and it will also work on your Team Build server.<br />
<br />
here is the link to original post<br />
<br />
<a href="http://blogs.msdn.com/johnwpowell/archive/2009/08/16/visual-studio-extensions-for-windows-sharepoint-services-vsewss-error-unable-to-load-one-or-more-of-the-requested-types-retrieve-the-loaderexceptions-property-for-more-information.aspx">Issue with VSEWSS 1.3 when having interface in multiple assemblies</a><br />
<br />
Happy Coding :)<br />
<br />
</div>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-18140720306649662022010-01-13T13:33:00.000-08:002010-09-21T18:14:41.549-07:00The resource cannot be found.<div>Today I spent almost 4 hours to figure out why when I change my master page on my sharepoint site, I will get this error:</div><div><br /></div><div>--------------------------------------------------------------</div><div><span> <h1><span class="Apple-style-span" style="color:#CC0000;"><span class="Apple-style-span" style="font-size: medium;">Server Error in '/' Application. </span></span><hr width="100%" color="silver" size="1"> </h1> <h2><i><span class="Apple-style-span" style="color:#990000;"><span class="Apple-style-span" style="font-size: medium;">The resource cannot be found.</span></span></i><span class="Apple-style-span" style="font-size: medium;"> </span></h2></span><span style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ;"><span class="Apple-style-span" style="font-size: small;">Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. <br /><br />Requested URL: /en/Pages/Home.aspx<br /><br /></span> <hr width="100%" color="silver" size="1"> <span class="Apple-style-span" style="font-size: small;">Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 </span></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><br /></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;">--------------------------------------------------------------------------------------</span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><br /></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;">At first I thought the web part or resource files for languages are not deployed., Try to remove them and still couldn't find any clue. As I mentioned in one of my blogs, I t<a href="http://hjabbar.blogspot.com/2010/01/how-to-turn-user-friendly-error-message.html">urned off the friendly error messages</a> hoping I got more detail about error but all I got was the above error :( </span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><br /></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;">Thanks to <span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Arial, Verdana, sans-serif; color: rgb(51, 51, 51); font-weight: bold; letter-spacing: 1px; line-height: 16px; text-transform: uppercase; "><span class="Apple-style-span" style="font-size: small;"><a href="http://www.blogger.com/profile/15609021917135631768">MARC CHARMOIS</a> <span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif; font-size: 16px; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; ">for his article which finally gave me clue how to find missing resource. All you need to do is to go to "view source" of the page and look for "FileNotFoundException" and you will see what is missing :) </span></span></span></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><br /></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Arial, Verdana, sans-serif; color: rgb(51, 51, 51); font-weight: bold; letter-spacing: 1px; line-height: 16px; text-transform: uppercase; "><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif; font-size: 16px; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; ">you can see Marc's full article here <span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 18px; color: rgb(204, 102, 0); line-height: 25px; "><a href="http://mosshowto.blogspot.com/2008/10/ressource-cannot-be-found-error.html">"Resolve Error : The resource cannot be found"</a></span></span></span></span></span></div><div><span class="Apple-style-span" style="font-size:180%;color:#CC6600;"><span class="Apple-style-span" style="font-size: 18px; line-height: 25px;"><br /></span></span></div><div><span class="Apple-style-span" style="font-size:180%;color:#CC6600;"><span class="Apple-style-span" style="font-size: 18px; line-height: 25px;">Happy Coding :-)</span></span></div><div><span class="Apple-style-span" style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><br /></span></div>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-89198400987059007472010-01-12T12:06:00.000-08:002010-09-21T18:14:41.550-07:00How to Turn User Friendly Error Message off in Sharepoint 2007 / MOSS<a href="http://2.bp.blogspot.com/_t8LuWuCagN8/S0zZJbtaPqI/AAAAAAAAAWA/ugnFdtvU-YY/s1600-h/Error.bmp"><img id="BLOGGER_PHOTO_ID_5425950407154876066" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 175px" alt="" src="http://2.bp.blogspot.com/_t8LuWuCagN8/S0zZJbtaPqI/AAAAAAAAAWA/ugnFdtvU-YY/s320/Error.bmp" border="0" /></a><br /><br /><br /><br />By Default S<span class="blsp-spelling-error" id="SPELLING_ERROR_0">harePoint</span> will not show the detail error message and rather just give a user friendly error message. (see picture )<br /><br />As a developer though, you need to know the detail error log to be able to track it down. To turn off "User friendly Error Message" in <span class="blsp-spelling-error" id="SPELLING_ERROR_1">SharePoint </span>2007 (MOSS) follow these steps:<br /><br /><br /><ol><li>Open the web.<span class="blsp-spelling-error" id="SPELLING_ERROR_2">config</span> file for your site ( you can find it under <span class="blsp-spelling-error" id="SPELLING_ERROR_3">inetpub</span> folder e.g. C:\<span class="blsp-spelling-error" id="SPELLING_ERROR_4">Inetpub</span>\<span class="blsp-spelling-error" id="SPELLING_ERROR_5">wwwroot</span>\<span class="blsp-spelling-error" id="SPELLING_ERROR_6">wss</span>\<span class="blsp-spelling-error" id="SPELLING_ERROR_7">VirtualDirectories</span> )</li><br /><li>In the web.<span class="blsp-spelling-error" id="SPELLING_ERROR_8">config</span> file, search for the tag "<span class="blsp-spelling-error" id="SPELLING_ERROR_9">CallStack</span>=", locate the tag and change it from <span class="blsp-spelling-error" id="SPELLING_ERROR_10">CallStack</span>="false" to <span class="blsp-spelling-error" id="SPELLING_ERROR_11">CallStack</span>="true".</li><br /><li>In the web.<span class="blsp-spelling-error" id="SPELLING_ERROR_12">config</span> file, search for the tag <customerrors mode="On">and change "On" to "Off". </li><br /><li>Save the changes and close web.<span class="blsp-spelling-error" id="SPELLING_ERROR_13">config</span>.</li><br /><li>next time you test your page, you will see the actual error (see below)</li></ol><p></p><a href="http://1.bp.blogspot.com/_t8LuWuCagN8/S0zcMfnhtrI/AAAAAAAAAWI/jqlXwTW6qGI/s1600-h/Error.bmp"><img id="BLOGGER_PHOTO_ID_5425953758278432434" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 86px" alt="" src="http://1.bp.blogspot.com/_t8LuWuCagN8/S0zcMfnhtrI/AAAAAAAAAWI/jqlXwTW6qGI/s320/Error.bmp" border="0" /></a><br /><br /><br /><br /><br />Happy coding :)Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-55470649955115802672010-01-12T09:02:00.001-08:002010-09-21T18:14:41.550-07:00How to Create a SharePoint Server 2007 Custom Master Page and Page Layouts for a Web Content Management SiteIf you are doing SharePoint development, you are familiar with Site Branding and look and feel. I found the following article from Microsoft MSDN website which is a walk through branding and creating custom master page and custom layout (which are fundamental component of site branding in SharePoint/Moss environment). here is the link <div><br /></div><div><a href="http://msdn.microsoft.com/en-us/library/bb727372.aspx#MOSS2007CustomMasterPageWCM_OverviewofWCMMasterPagesandPageLayouts"> </a><span class="Apple-style-span" style=" white-space: pre; font-family:Arial;font-size:13px;"><a href="http://msdn.microsoft.com/en-us/library/bb727372.aspx#MOSS2007CustomMasterPageWCM_OverviewofWCMMasterPagesandPageLayouts">How to Create a SharePoint Server 2007 Custom Master Page and Page Layouts for a Web Content Management Site</a></span></div><div><span class="Apple-style-span" style="font-family:Arial;font-size:100%;"><span class="Apple-style-span" style=" white-space: pre;font-size:13px;"><br /></span></span></div><div><span class="Apple-style-span" style="font-family:Arial;"><span class="Apple-style-span" style=" white-space: pre;font-size:small;">I also find the following link useful. Thanks to <a href="http://www.cleverworkarounds.com/">Paul Culmsee</a> </span></span></div><div><span class="Apple-style-span" style="font-family:Arial;"><span class="Apple-style-span" style="white-space: pre; "><span class="Apple-style-span" style=" white-space: normal; color: rgb(129, 21, 64); font-family:Georgia, serif;"><span class="Apple-style-span" style="font-size:medium;"><a href="http://www.cleverworkarounds.com/2007/10/27/sharepoint-branding-part-5-%E2%80%93-feature-improvements-and-bugs/">SharePoint Branding</a></span></span></span></span></div><div><span class="Apple-style-span" style="color:#811540;"><span class="Apple-style-span" style="font-size:medium;"><br /></span></span></div>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com0tag:blogger.com,1999:blog-186422691979471889.post-37983361314699266762010-01-12T08:55:00.000-08:002010-01-12T09:00:11.249-08:00Start ...<div>Hello World !!!</div><div><br /></div>I create this blog to share my knowledge of software development with other people out there. There are a lot of times I stock on something and after a lot of search in web and try and error I find a solution, but because I don't log it anywhere it will be forgotten after a few months. So I decided to create this blog to log my findings and solutions to problems I encountered and share it with others and hope it can be helpful for someone in future. <div><br /></div><div><span class="blsp-spelling-error" id="SPELLING_ERROR_0">Paaya</span></div>Paayaahttp://www.blogger.com/profile/16833124380292108435noreply@blogger.com1