Note

I like to help others because I am Muslim.

Tuesday, June 30, 2009

ADOMD.NET 9.0

I was trying to install the planning server of Preformance Points Server 2007 and it was asking me to install ADOMD.NET 9.0 SP2 as a prerequisit. I googled a lot for it and finlly I found it.

Friday, June 19, 2009

2 tips on fly about Google Chrome

Tip #1: using incognito mode to login to web application with two users in the same time.
you can login to the same web site (Forms Authentication) with more than one user by doing the following:
1- open chrome.
2- browse to the site.
3- login in normally with userA.
4- press ctrl+shift+N to open incognito mode.
5-browse to the site again.
6-login again with User B.
Tip #2: Reload Page Source (Simply press F5)
When you view the source of any page on Google Chrome you can hit F5 to reload the Page Source. its helpful for developers while tracing and debuging.
by the way you can browse to the page source direct by writing "View-Source:[URL]" in the address bar.

Saturday, May 30, 2009

Report Viewer Control is not appearing when running the web form

Issue:
One day I needed to use a Report Viewer to persent a SSRS (SQL Server Reporting Service) Report hosting at the SQL Server. I did every thing and when I ran the web from the whole report viewer was not appearing in the page?!
Solution:
in case you are trying to view a remote (stored in SQL Server) Report you have to change the value of  report viewer "Processing Mode" property to "Remote".
and thats it..
happy magic coding...

Sunday, May 24, 2009

SharePoint Site Property Manager Tool (open Source project)

Share Point Site Property Manager is  a simple windows applications helpes you to manage site properties since that there is no direct interface to do that in MOSS.
Currently there is a beta release and I will try to update the application soon.

Monday, May 18, 2009

My Application is not loading the new Assembly (dll)

if you are trying to update (deploy) your application assemblies (bin directory) in production and you faced one of the follwoing issues:
  1.  Method Not Found Exception.
  2.  Application is loading the old assembly after updating it.
  3. Property Not Found Exception.
  4. Method Paremeters mismatch.
BUT the application is working perfect on your local machine. 
Solution:
Check the GAC (Global Assembly Cache) in c:\windows\assembly there you might find that there is an old version of the assembly you are trying to update in your bin folder. 
you can do one of the follwoing solutions:
  • Right Click and uninstall the assembly from GAC and keep the bin assembly.
  • OR update the GAC assembly by dragging the assembly from bin to the gac folder and release it there.
That it ...
Happy magic coding .... 

Saturday, November 22, 2008

Disabling Button On Click

Sometimes you need to avoid multiple submission by clicking the a button multiple times to avoid that add the following javascript code to your page or script file:
function Button_Clicked(btn) {
   if (typeof(Page_ClientValidate) == 'function') {
       if (Page_ClientValidate() == false) { return false; }
       }
   btn.value = 'Please Waite...';
   btn.disabled = true;
   __doPostBack(btn.name, "");
   WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(btn.name, "", true, "", "", false, false))

}
Add the code function name to onclientclick property.

Tuesday, April 22, 2008

Error: "The type [Assembly] exists in both directories" & App_Code folder

if you get some error like this:

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0433: The type '[Assembly]' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sct_voting\008ce074\503ba4e5\assembly\dl3\b0922f94\4a4d3fb2_07a5c801\'[Assembly]' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sct_voting\008ce074\503ba4e5\App_Code.o9o-qy-r.dll'

This error shows some times when you are using ASP.NET Web Project and you are placing you code files inside "App_Code" folder.

To solve this issue change the name of the "App_Code" folder to something else.

I think that it is a bug in ASP.NET Web Project building an assembly for the project and another assembly for the "App_Code" folder.