Enterpreneur and Technology advocate, Founder of Hadafsoft , M.Sc. of Computer Science, Engineer, & Solutions Architect. Follow me on twitter for quick updates: @mostafaelzoghbi
Tuesday, August 25, 2009
Add external sites to Sharepoint Search
One of the most imoportant features in sharepoint 2007 is the enterprise search. Enabling search for extenral sites are extermely needed in any organization specially if the organization has other sites hosted on other platforms other than sharepoint sites.
To implement this, First make sure that crawling services configuration are set properly on your sharepoint "SharedServices" assigned to your site that you are working on.
From Central Administration:
- Select SharedServices.
- Select crawl rules.
- click on new crawl rule.
- set the url of your site, select include all items in this path.
Then click ok, wait till the next crawl service will run or run it manually, then you will get search results.
Hope this helps.
Regards,
Mostafa arafa
Friday, August 21, 2009
Exception when implement function overloading in WCF
If you tried to develop a simple WCF function, and you tried to write in your WCF 2 overloading functions in WCF, you will not be able to deploy your serivce and the clients will get an exceptions.
The solution: give Aliases to the overloaded functions in the WCF service.
Code :
public interface IMyWCFSvc
{
[OperationContract(Name="GetCustomerById")]
string GetCustomerInfo( int CustId);
[OperationContract(Name="GetCustomerByEmail")]
string GetCustomerInfo( string CustomerEmail);
}
The proxy when you reference to your serivce, will create 2 methods with the Alias names and not with the actual overloaded name in C# code.
Hope this helps.
Regards,
Mostafa arafa
Wednesday, August 05, 2009
Service unavailable after changing the identity for a sharepoint site
If you try to change the identity for the applicaiton pool that the sharepoint site is running under, You can do this from the iis manager open identity tab and change the account for the application pool.
After you change this, you will get "Service Unavailable" error message when you try to open your sharepoint site, to fix this:
1) Make sure that you type the password for the service account which the application pool will run under correctly.
2) Make sure that the Service account is part of the following groups: IIS_WPG and STS_WPG .
3) Reset your IIS.......MOST IMPORTANT STEP.
then, you can navigate to your website.
Hope this tip helps.
KB Article:
http://support.microsoft.com/kb/823552
Regards,
Mostafa arafa
Monday, August 03, 2009
Asp.Net MVC 2 has been shipped ....Developer comments
Mostafa arafa
Friday, July 31, 2009
Error when trying to connect to or download PerformancePoint designer
I was getting an error message when i'm trying to connect to Performance point server, and the error message wasn't descriptive at all, this is the error message :
" ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://ServerName/DesignerInstall/ resulted in exception. Following failure messages were detected: + Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected.
"
If you don't have performance point server on your machine and you are not able to download it below shows how can you do this.
To do this, get the download from your server, this is the path:
C:\Program Files\Microsoft Office PerformancePoint Server\3.0\Monitoring\DesignerInstall
Take 3.0 folder, and install the designer on your desktop.
After installation, you will have another problem, you can't connect to your server because you didn't install it from the browser, to fix this do the following:

Replace localhost:4000 with your server name and click ok.
Then you can click on Refresh to get all the contenct on your designer.
Hope it helps.
Regards,
Mostafa arafa
Thursday, July 30, 2009
Learn how to build interactive WCM portal in sharepoint
Excellent video by Technology Director of Razorfish, he shows how can you build interactive content management portal in sharepoint using jQuery,Ajax,Silverlight and flash ?
The video also shows how to enable RIA features/Web 2.0 in your sharepoint enterprise portal using flash and silverlight and social networking.
The video is full of best practices and initiative ideas.....
Enjoy watching this video:
http://videos.visitmix.com/MIX09/C19F
-- Mostafa Elzoghbi
Thursday, July 23, 2009
Send Email activity is not working problem
I went through a problem in Sending Email using Email activity in SharePoint, it doesn't work when you try to send email to specific email format using sharepoint designer 2007.
To read more about the problem and the workaround that i developed, check below url :
https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=474381&SiteID=470&wa=wsignin1.0
Hope this helps.
Regards,
Mostafa arafa
Monday, July 20, 2009
How to control which Silverlight version does your application run on ?
I have been asked from one of my colleagues that he developed a Silverlight 2.0 and he doesn't want to upgrade his application to Silverlight 3.0.
- minRuntimeVersion: used to control the version of the Silverlight that your application will run on at minimum.
For example: if you built your application on version 2.0, the client will not be prompted to install version 3.0 when visiting your website if he has version 2.0 and this attribute is set to use version 3.0.
autoUpgrade: when it is true, the application will be upgraded to the newest Silverlight version automatically. If it is false, noting will happen.
Some use cases for different situation:
- - Before shipping your application make sure that make autoUpgrade to false, unless you developed some features which requires the client to upgrade his Silverlight version to the newest one.
- - Set the value of minRuntimeVersion to the version you test your application on, and make sure this is the minimum version you want to make your application is running with no issues.
Mostafa arafa
Tuesday, July 14, 2009
Get to know SharePoint 2010
Interested to know more about next version of sharpeoint, here is the site that gives you good information about the new features of Sharepoint 2010 features...check it out.
http://sharepoint.microsoft.com/2010/Sneak_Peek/
Hope this helps.
Regards,
Mostafa arafa
Wednesday, July 01, 2009
MVP 2009 Award - 4th Year
Today i have been awarded as a C# MVP for the forth time, I got an email from Microsoft saying:
"
Dear Moustafa El-Zoughby,
Congratulations! We are pleased to present you with the 2009 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in Visual C# technical communities during the past year."
Thanks a lot all for your continous support.
Wait me for new challenges this year and so on.
Regards,
Mostafa arafa
Monday, June 29, 2009
Get started with jQuery library from its own creators !!!
As you know, MS announced that jQuery is a built-in library in VS 2008 SP1 for ASP.NET Developers.
I recommend for all developers, to see the series of jQuery Library videos from its own creator : John Resig and his team, this series of videos help you to understand the jQuery library features,jQuery UI and other important notes for advanced developers.
I enjoyed watching these series, and i suggest all of you to understand and start using jQuery library in your .NET Projects and solutions.
After you finish this series, i like to share with you these posts for integrating ASP.NET with jQuery library:
1) ASP.NET with jQuery: Scott hanselman:
http://www.hanselman.com/blog/jQuerytoshipwithASPNETMVCandVisualStudio.aspx
2) ASP.NET with jQuery:
http://dotnetslackers.com/articles/ajax/Using-jQuery-with-ASP-NET.aspx
Hope this helps.
Regards,
Mostafa arafa
Sunday, June 28, 2009
C# Visual Developer Center website
I'd like to share with you this website: C# Developer Center, This is a good site it contains all C# language enhancements, C# MVP Blogs, C# highlights, C# Community blogs and more.
This website you can subscribe for RSS and check it frequently.
** link:
http://msdn.microsoft.com/en-us/vcsharp/default.aspx
Regards,
Mostafa arafa
Sunday, June 21, 2009
How to develop out-of-browser applications ?
A question needs an answer for most of web developers these days : Can we develop a web application and this application can run out of the browser ? The answer is YES, You can do that.
But How ? Use Silvelight 3.0 Beta.
One of the interesting features in Silverlight 3.0 is that you can detch your application from the web browser and this browser can work as a desktop application.
Silverlight 3.0 Beta have other interesting features such as: checking network availability,storing data offline and much more.
If you have no experience with silverlight 2.0 or earlier, this is the site you want to get started with :
http://silverlight.net/getstarted/silverlight3/default.aspx
This site is a good reference for all Silverlight 3.0 Features and samples.
Hope this helps.
Regards,
Mostafa arafa
Tuesday, June 16, 2009
Sharepoint designer custom workflow activities
Good project in CodePlex for samples of custom activities which can be used in Sharepoint designer when creating your workflow.
Email, InfoPath, Security & user info custom activites are available to use.
Link to the project:
http://www.codeplex.com/SPDActivities
Regards,
Mostafa arafa
Thursday, June 11, 2009
Microsoft Translator - Bing
New microsoft translator powered by Bing, you can use it now :
http://www.microsofttranslator.com/Default.aspx
You can use tbot messenger contact or ESL (English as a second language) tools.
Regards,
Mostafa arafa
Tuesday, May 26, 2009
How to return IEnumerable from XML web services
This post gives you an idea how to return IEnumerable object in your XML web services, the tip for this post is how to convert this IEnumerable object to something that can be serialized in your xml web serivces.
If you are using LINQ in your xml web serivces, below is an example for the signature of your xml web service:
[WebMethod]
public IEnumerable
{
return logic.ListUser();
}
If you run this xml web service, you will get this error :
"Cannot serialize interface System.Collections.Generic.IEnumerable"
To solve this problem, simply convert the IEnumerable Object to Array using ToArray() extension method.
[WebMethod]
public TwitterUser[] ListUser()
{
return logic.ListUser().ToArray();
}
This will fix this problem and return the result as XML in your xml web service.
Hope this helps.
Regards,
Mostafa arafa
Sunday, May 24, 2009
Cloud Computing Presentation - Azure
Today, I have given a session about "Cloud Computing Platform" using Azure Services platform provided by Microsoft, it was an interesting session since it was targeted to Computer science students - Master's Students. the session was so interesting and the audience was so proactive regarding their questions and their thoughts about the future of Cloud computing.
In this session, I covered the main concepts behind Cloud computing environment, and the new trends for the Software evolution with cloud computing environments.
-- Since i was using Azure platform as an example of cloud computing environment, i have covered the main services in Azure services platform:
1) Windows Azure services.
2) SQL services Services.
3) .Net services.
I gave couple of demos for windows Azure serivces and Azure sql services.
You can get my presentation from below link:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/Azure%20Services%20Platform%20Overview.pptx?ccr=8594
Hope this helps.
Regards,
Mostafa arafa
Friday, May 22, 2009
Visual Studio 2010 Beta 1 is available for public
Mostafa arafa
Friday, May 15, 2009
How to open office files in FBA SharePoint Sites
Mostafa arafa
Friday, May 08, 2009
Simple Counter Web Application using Asp.Net MVC 1.0
Mostafa arafa