Enterpreneur and Technology advocate, Founder of Hadafsoft , M.Sc. of Computer Science, Engineer, & Solutions Architect. Follow me on twitter for quick updates: @mostafaelzoghbi
Tuesday, December 29, 2009
SharePoint Saturday - EMEA Event
Good News !!! First SharePoint Saturday @ EMEA will be held on 23 Jan 2010, If you are a sharepoint fan/developer/architect or Administrator, I encourage you to attend SharePoint Saturday online event, here is the link for the registration:
http://20100123-spsemea.eventbrite.com/
Speakers List:
http://www.sharepointsaturday.org/emea/Pages/speakers.aspx
I'm going to be a speaker on this event, meet you there.
My Session Info:
Session Topic : SharePoint 2010 Development Tips & Tricks
This session will cover the new development model for SharePoint 2010 and the new architecture design for the sharepoint foundation and the client object model.
The session will cover also other tips and tricks when developing sharepoint solutions and the best practices to following when developing sharepoint custom components and more....
Meet you there. Thanks.
Friday, December 11, 2009
How to build your DB on MS SQL Azure
I would like to share with you some tips for how to move your on-premise DB to MS SQL Azure on the cloud.
First, To be able to connect to SQL Azure Prepare your environment with the following:
1) Install MS SQL 2008 R2 on your machine - Nov CTP, having any other version of SQL 2008 will not give you the full functionality like working with object browser in SQL Server 2008 R2.
Tips :
a) Before installing SQL 2008 R2, please check your exisiting environment by using SQL Server upgrade advisor (it is a part of SQL 2008 R2).
b) Using your credientials in SQL Azure, you will be able to connect using SQL 2008 R2 with no issues and you will be able to navigate through your objects in the DB.
1) How to move your on premise Database to SQL Azure on the cloud:
1) Script your DB from your server.
2) There is some changes you have to do it on the script before executing it on the SQL Azure DB.
Tip: 1) Remove any reference to the file group such as : ON [PRIMARY] on your script.
Then when you remove the reference, you will be able to execute the script using SQL Management Studio and when you refresh the server you will be able to see your new created objects.
Hope this helps.
Regards,
Mostafa arafa @ Azure Cloud......
Tuesday, December 08, 2009
Cannot open a closed file error in asp.net ajax / SharePoint Site
I was developing a webpart in sharepoint ( consider it as a asp.net usercontrol for ASP.Net Developers) and in the webpart i was uploading a document using AsyncFileUpload control in AJAX Toolkit.
And it was working fine, but for some files i was getting this error : "Cannot open a closed file" and i was thinking that the problem from the file or it is a code behind issue.
I figure out the problem was because of the file size threshold in the web.config, the default web.config is:
<httpruntime maxrequestlength="51200" />
I added this attribute:
<httpruntime maxrequestlength="51200" requestLengthDiskThreshold="4096" />
The resolution for the problem is: Set the length disk threshold to 4M ( or any other number in KB as per your application business rule) because by default the value is 80K.
Hope this helps.
Happy SharePointing.... or .Netting :)
Regards,
Mostafa arafa
SharePoint Error : Retrieving the COM class factory for component with CLSID {BDEADEE2-C265-11D0-BCED-00A0C90AB50F} failed
If you are trying to open your sharepoint 2007 site one day and you got this error message with yellow asp.net page:
"Retrieving the COM class factory for component with CLSID {BDEADEE2-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa."
The fix for this problem is to do iisreset for your IIS webserver and this will resolve the error.
Hope this helps.
Regards,
Mostafa arafa
Monday, December 07, 2009
Installing SharePoint 2010 on Windows 7 Tip
http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx
My Tip is: even if you follow the steps, and run the SharePoint Configuration wizard, the wizard might be failed , what you have to do is just to re-run it and it is going to work. the problem for that when you run in low of memory and the exception is saying failed provisioning central administration website.
Thanks.
Regards,
Mostafa arafa
Wednesday, December 02, 2009
Installing SharePoint 2010
I'd like to share with all of you how to install SharePoint 2010 on your current platform and to remove any dilemma or milestones you might face or heard from others.
First Question : How can i install SharePoint 2010 on my 32 bit machine ?
Now, you can use either VM Ware Workstation (requires License) or Virtual Box (Free).
Till Today, MS Virtual PC doesn't support to build your 64 bit machine on a your host 32 bit machine.
Now, you don't have any problem to build a VM using either of these software.
I used Virtual Box, and this is my first experience with it, easy and you can use your experience with VPC with it.
[Updated 6/12/09]: VMWare Server is also free, you can try it and its performance is better than Virtual Box.
Once you build and start your VM, here is the steps you have to do:
1- Mount your Windows 2008 R2 64 bit to your VM software.
2- After installing Windows, Install all the updates before start installing the SharePoint 2010.
3- I Prefer to install Office 2010 before installing SharePoint 2010 since you are going to use it with SharePoint.
4- Run Your SharePoint installer and click on install your software prerequisities, this step will go with no errors as mentioned on other posts.
5- The installer will prompt you to run SharePoint Products and configuration wizard, At the end, you will get a failure message : "Failed to create sample data".
FYI: SharePoint is working without installing the hotfix, To download the hotfix:
http://blogs.msdn.com/sharepoint/archive/2009/11/19/installation-notice-for-the-sharepoint-server-public-beta-on-microsoft-windows-server-2008-r2-and-microsoft-windows-7.aspx
After installing the hotfix, restart the machine and run the SharePoint configuration wizard again to fix un-provisioned services-WCF.
** Some Other Error cases - Differ from one installation to another:
a) If you got this error :"failed to register sharepoint services", open stsadm tool and type this command:
stsadm -o spsearch -action stop
Then re-run the configuration wizard.
b) If you get this error message :"failed to register sharepoint services- search service" - step 5 in the configuration wizard.
Open the command prompt and type : regedit and navigate to the following key and delete it:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web ServerExtensions\14.0\WSS\Services\Microsoft.SharePoint. Search.Administration.SPSearchService
6- Done, Start exploring your sharepoint 2010 instance.
Hope this helps.
Mostafa Arafa
Twitter : @mostafaelzoghbi
Tuesday, December 01, 2009
The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
"The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again." This error message in sharepoint 2007 you will get it because of different actions you may perform on the site level:
-If you are trying to check out a document in Document library.
-If you are trying to add some columns in a custom list in sharepoint.
-If you are trying to call update() method in the object mode.
-And other actions....
The reason behind this error is when you enable anonymous access to a site with other authentication method such as basic authentication.
The solution or workaround for this problem is to open the central admin, then :
- Select application management.
- Under SharePoint Web Application Management, select Web Application general settings.
- Select your web application first.
- Under web page security validation turn it off.
- Reset your IIS.
Hope this helps.
Regards,
Mostafa arafa
Wednesday, November 25, 2009
My Interview in Microsoft Feed Website
Read it, I think it will inspire you to do more in your career and to the community.
http://microsoftfeed.com/2009/meet-mostafa-elzoghbi-visual-c-mvp-from-egypt/
Regards,
Mostafa arafa
Thursday, November 19, 2009
SharePoint 2010 BETA is available now to download
SharePoint 2010 BETA is now available to download for Public, download link :
http://www.microsoft.com/2010/en/
SharePoint 2010 resources:
Devs: http://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx
IT Professionals: http://technet.microsoft.com/en-us/sharepoint/ee518660.aspx
Read more :
http://blogs.msdn.com/sharepoint/archive/2009/11/18/sharepoint-2010-public-beta-is-now-available-for-download.aspx
Regards,
Mostafa arafa
Tuesday, November 10, 2009
Bulk delete in a SharePoint custom list
I went through an issue to bulk delete a custom list items in a sharepoint site, I found a good tool to delete all items / selected items in a custom list in sharepoint.
You can download from codeplex:
http://customlistitemsdel.codeplex.com/
Hope this helps.
Regards,
Mostafa arafa
Thursday, October 29, 2009
createwsp.bat exited with code 4 error
If you got this error while building a sharepoint solution file, this happens when the CabLib.dll which is used to build WSP SharePoint Solution files in VS.Net is a 32 bit running on a 64 bit machine.
The issue behind this is that your server is a x64 bit server, and you have to change this CabLib.dll with a 64 bit version.
You can download the updated dll from codplex:
http://www.codeplex.com/wspbuilder/Release/ProjectReleases.aspx?ReleaseId=16820
Hope this helps.
Regards,
Mostafa arafa
Tuesday, October 27, 2009
Performance Point Server 2007 SP3 is available
If you are building KPIs and performance point reports using Performance Point server 2007 with SharePoint 2007. A new Service pack is available to download with all important aggregated hotfixes.
Download link and important hotfixes information:
http://support.microsoft.com/kb/975249/en-us
Hope this helps.
Regards,
Mostafa arafa
Tuesday, October 20, 2009
Error when trying to open XAML options in VS 2008
After installing Silverlight 3.0 tools with VS 2008 SP1 i was not able to open XAML options in VS 2008 IDE.
I was submitted a ticket in MS Connect website, and the fix is:
1) Close all VS 2008 instances.
2) Open VS 2008 Command prompt
3) Type : devenv /resetskippkgs
This is the fix for the problem by resetting all IDE packages.
Ticket url:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=496402
Hope it helps.
Regards,
Mostafa arafa
Session management in WCF service - client & server
I got the following email from one of my blog readers, here is his email:
"
Hi.. Marafacs,
I have a problem about WCF chat based on client-server. How to make a deal between server and client? So server can send message, show active client list, kick user.
Thanks for response.
"
To do this, you have first to configure your WCF to accept only client calls with sessions, and this is can be achieved by configuring the WCF with Service Throttling and configuring MaxConcurrentCalls,MaxConcurrentInstances and MaxConcurrentSessions.
Read this section to know how to configure this - page 331:
http://books.google.com/books?id=-AUyj6S7etwC&pg=PA331&dq=how+to+get+active+sessions+in+WCF&ei=tsTdStrhKITUNc_B9IEP#v=onepage&q=&f=false
To know, how the client can generate sessions and unique identifiers to the server, check below KB article, this is related to instance context sharing:
http://msdn.microsoft.com/en-us/library/aa354514.aspx
Hope this helps.
Regards,
Mostafa arafa
Thursday, October 15, 2009
MS Training website.... for solution providers
Interesting site By Microsoft, it provides training for solution providers, what you have to do is to write your topic, then you will find your material.
I was looking for silverlight 3, here is the link:
http://www.msdev.com/Directory/SeriesDescription.aspx?CourseId=122
This is the site url, keep it in your records...
http://www.msdev.com/
Hope it helps.
Regards,
Mostafa arafa
Tuesday, October 06, 2009
TechEd Middle East - March 2010
Big chance for all professionals in the middle east, TechEd Middle east in Dubai at 1 March 2010, TechEd is one of the most premier events for Microsoft in technology and networking.
"Microsoft’s premier technical education and networking conference is coming to the Middle East.
Connect one-on-one with Microsoft insiders and IT peers, get your toughest questions answered and hear expert advice - right from the source, right in your region."
http://www.TechEd.ae/
-- RSVP on Facebook:
http://www.facebook.com/event.php?eid=162414912532&ref=nf
See you there....
Regards,
Mostafa arafa
Wednesday, September 30, 2009
'AntiXssLibrary' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)
If you got the error message from MS CRM 4.0 which is running on a VM on your test or production Hyper-V manager server, After i checked the the error message on the server, the error message which was :
"'AntiXssLibrary' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)"
Just trun off your VM, Then expand desk space allocated for the VM will fix the issue.
Hope this tip helps.
Regards,
Mostafa arafa
Monday, September 28, 2009
Access denied when try to sign your project in VS 2008
If you are facing a problem that you can't sign your project using VS 2008, this is not because there is a problem in VS 2008 but this is because the User Access control (UAC) feature in Vista. The User Access Control enabled in your system, you have to disable it to enable signing to your assembly in VS 2008.
OR
If you can't publish your project using ClickOnce deployment in VS 2008 and your are getting an error message : "publish aborted, can't create a default certificate"
The cause for above 2 errors messages are because of the UAC is enabled.
To do/fix this:
1) Open Run windows in Vista: Accessories -> Run.
2) Type MSCONFIG command.
3) select tools tab, select Disable UAC and click on Luanch button.
4) Reboot your system (Important).
Once you reboot your system, open your project and you will be able to sign your assembly.
Hope it helps.
Regards,
Mostafa arafa
Wednesday, September 23, 2009
My first SQL azure Application on the Cloud !!!
Few months ago, i worked with Azure Services, and since i'm interested to develop applications over the cloud which extensively use SQL Server as a backend, i used BLOBS to store my data... actually it wasn't that easy to use, but the product was still in beta in that time.
Recently, I have some time to develop and start using SQL Azure services, A big start by allowing us to create the Database over the website, then all other operations ( CRUD ) for the Database design and object model can be done using ADO.Net classes.
C# Code for connecting and creating a table over the cloud:
SqlConnectionStringBuilder connString2Builder;
connString2Builder = new SqlConnectionStringBuilder();
connString2Builder.DataSource = "MyServer.ctp.database.windows.net"; // check your profile to know server name.
connString2Builder.InitialCatalog = "YourDB"; // you can create your own their.
connString2Builder.Encrypt = true;
connString2Builder.TrustServerCertificate = true;
connString2Builder.UserID = "myUserName";
connString2Builder.Password = "myPassword";
// Connect to the sample database and perform various operations
using (SqlConnection conn = new SqlConnection(connString2Builder.ToString()))
{
using (SqlCommand command = conn.CreateCommand())
{
conn.Open();
// Create a table
command.CommandText = "CREATE TABLE MostafaTable(Col1 int primary key, Col2 varchar(20))";
command.ExecuteNonQuery();
// Insert sample records
command.CommandText = "INSERT INTO MostafaTable(col1, col2) values (1, 'string 1'), (2, 'string 2'), (3, 'string 3')";
int rowsAdded = command.ExecuteNonQuery();
// Query the table and print the results
command.CommandText = "SELECT * FROM MostafaTable";
using (SqlDataReader reader = command.ExecuteReader())
{
// Loop over the results
while (reader.Read())
{
Console.WriteLine("Col1: {0}, Col2: {1}",
reader["Col1"].ToString().Trim(),
reader["Col2"].ToString().Trim());
}
}
}
}
-- To read more about SQL Azure services:
http://msdn.microsoft.com/en-us/library/ee336279.aspx
-- SQL Azure Forums:
http://social.msdn.microsoft.com/forums/en-US/ssdsgetstarted/threads/
Hope it helps.
Regards,
Mostafa arafa
Friday, September 18, 2009
SortedSet <T> new collection type in .Net 4.0 beta 1
This post based on my readings in .Net 4.0 beta 1, one of the new enhancements in .Net 4.0 is SortedSet<T> collection type, which implements red-black sorting algorithm with complexity O(log n) for the entire list.
Red-Black tree is an efficient sorting algorithm and using this collection will help alot from performance of sorting large sets in the run time.
C# code:
var mySet=new SortedSet <int>() {3,2,7,23,12,879,345,122,98};
foreach(int x in mySet)
{
Console.WriteLine(x);
}
// output: sorted list.
To read more about .Net 4.0 enhancements, kindly check below links:
http://blogs.msdn.com/bclteam/archive/2009/05/22/what-s-new-in-the-bcl-in-net-4-beta-1-justin-van-patten.aspx
http://msdn.microsoft.com/en-us/netframework/dd819232.aspx
Hope this helps.
Regards,
Mostafa arafa
Saturday, September 12, 2009
CRM 4.0 Integration with your business applications/products
MS Dynamics - CRM 4.0 is one of the recognized products for mid-size, large customers for customers' relationship management products in the market.
If you have a CRM 4.0 in your company, you might want to integrate CRM Data with other business applications. The way to do this is to use MS Biztalk server which comes now with a CRM 4.0 Adapter.
This means that you can make use of CRM schema and Data using Biztalk 2006/2009 in your business applications or other products using this new released CRM adapter in Biztalk.
To download and start integrating with CRM 4.0, this is the download link and some useful documents to wotk with Biztalk CRM Adapter.
http://www.microsoft.com/downloads/details.aspx?FamilyID=ABD3BB9E-A59A-4EB6-8DE8-FB25B77926D7&displaylang=en
Hope this helps.
Regards,
Mostafa arafa
Sunday, September 06, 2009
Code for the power of Windows 7
Do you want to develop for the power of windows 7 ? Do you want to earn money for the submission you will do ? Competition is full of challenge and prizes.... deadline for registration is end of 10th october, Register now :
https://www.code7contest.com/
Start today with Windows 7 development.
Regards,
Mostafa arafa
Friday, September 04, 2009
"an item with the same key has already been added" on CRM 4.0
If you are experiencing this error on your CRM 4.0 instance, this means that your CRM 4.0 needs a hotfix to fix this problem.
The hotfix KB article:
http://support.microsoft.com/default.aspx/kb/949256
The error # : 951849
Hope it helps.
Regards,
Mostafa arafa
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
Wednesday, May 06, 2009
First Look for Asp.Net MVC 1.0 Project structure
Mostafa arafa
Friday, May 01, 2009
SharePoint Service Pack 2 is available
Mostafa arafa
Friday, April 24, 2009
WCF REST Starter kit is available
Mostafa arafa
Monday, April 20, 2009
Asp.Net 4.0 AJAX Deep dive with jQuery webcast
- jQuery and the VS 2010
- Using ASP.NET AJAX 4.0 Client Templates
- Using the DataView control
- Conditional attributes
When: 22/Apr/2009 20:00-21:30 (GMT+03:00) Kuwait, Riyadh.
Where: Live Meeting
Mostafa arafa
Saturday, April 18, 2009
SharePoint Best practices
Excellent resource for SharePoint Guidance contains the best practices for Architecture designs,development,test,deploy,internet and intranet applications.
http://msdn.microsoft.com/en-us/library/dd203468.aspx
Regards,
Mostafa arafa
Friday, April 17, 2009
Important Announcement: SharePoint 2007 SP2
Mostafa arafa
Tuesday, April 14, 2009
Silverlight development in sharepoint 2007
Excellent resource for developing Silverlight 2.0 in sharepoint 2007, the book covers a lot of important aspects for sharepoint development using silverlight 2.0.
http://www.amazon.com/Professional-Microsoft-SharePoint-Development-Silverlight/dp/0470434007
Regards,
Mostafa arafa
Thursday, April 02, 2009
SharePoint Designer 2007 is Free
Now Microsoft has released SharePoint 2007 for Free from MS site.
As you know, sharepoint designer was a licensed product before this announcement from Microsoft.
Download url :
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42
Regards,
Mostafa arafa
Tuesday, March 24, 2009
Extension Methods in C#
Mostafa arafa
Tuesday, March 17, 2009
ASP.Net web development server stop working in VS 2008
127.0.0.1 local host
Mostafa arafa
Saturday, March 14, 2009
Difference between clear and remove in web.config
I had a discussion with one of my friends about the difference between clear and remove keys in web.config, and I would like to share it with you.
Remove in web.config is to remove a specific key from the web.config, for example:
Note: <> have been replaced by {} because it is not allowed to be posted in http request.
{appSettings}
{add key="MyName" value="Mostafa1"/}
{add key="MyName" value="Mostafa2"/}
{add key="MyName1" value="Mostafa3"/}
{remove key="MyName1"/}
{/appSettings}
Remove is removing the key MyName1.
Clear is used to remove all key mentioned above it, for example:
{appSettings}
{add key="MyName" value="Mostafa1"/}
{add key="MyName" value="Mostafa2"/}
{add key="MyName1" value="Mostafa3"/}
{clear/}
{/appSettings}
I don’t recommend to use clear key in the web.config because it will cause a disaster in your application.
Hope this tip helps.
Thursday, March 12, 2009
Free ASP.Net MVC tutorial
New ebook for ASP.Net MVC is now available for free to download and start practicing ASP.Net MVC framework:
"There has been a lot of excitement in the community about the new ASP.NET MVC framework that is about to ship (literally any day now – announcement coming soon). As with anything new, people are also asking for more tutorials/samples/documentation that cover how to get started and build applications with it." -- ScottGu
download link :
http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf
Read more from Scott Gu's Blog:
http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx?CommentPosted=true#commentmessage
Happy .Netting.
Regards,
Mostafa arafa
Sunday, March 08, 2009
Export office system files to PDF
Office System 2007 save as PDF add-in now is available without 3rd party tools/add-ins.
Download link:
http://www.microsoft.com/downloads/details.aspx?familyid=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en
This add-in work with all office 2007 applications such as: Word,Excel,PowerPoint,Access,Visio,InfoPath and OneNote.
Regards,
Mostafa arafa
Wednesday, March 04, 2009
24 Hour Virtual Event - TechEd 2009 Developers !!!
Do you have a problem of different time zones for online trainings and workshops ? If Yes, here is a good news from microsoft :
Defy all challenges of different time zones, Now you can attend Virtual Tech Ed Event for Developers on 1st April 2009 after your registration. No matter which time zone you belongs to.
Event contains 5 tracks:
1) Windows Development.
2) Windows Mobile Development.
3) Office & Sharepoint development.
4) Developer tools , Languages and tools.
5) Web Development & User Experience.
Read more on below link:
https://www.msfttechdays.com/public/home.aspx
Happy .Netting !!!
Regards,
Mostafa arafa
Tuesday, February 24, 2009
Content Deployment Best practices in SharePoint
Excellent post for content deployment in sharepoint best practices by Stefan Gobner - Escalation Engineer for SharePoint.
Article link:
http://blogs.technet.com/stefan_gossner/pages/content-deployment-best-practices.aspx
Hope this helps.
Regards,
Mostafa arafa
Saturday, February 21, 2009
Integrate SharePoint Data to non Microsoft Portal Products
Great News !!! Recently MS SharePoint product team has released Web Services Remote Portlets (WSRP) toolkit, This toolkit provides developers to expose easily sharepoint data to non microsoft portal products such as : AquaLogic Portal, IBM WebSphere Portal, SAP NetWeaver Enterprise Portal...etc.
Now if you have any portal in your organization and you want to expose sharepoint data in two different ways and MS also released the source code for both of them under MS Public License.
**Download Link :
http://code.msdn.microsoft.com/WSRPToolkit/Release/ProjectReleases.aspx?ReleaseId=1943
**Announcement - Sharepoint Product Team:
http://blogs.msdn.com/sharepoint/archive/2008/12/05/announcing-the-wsrp-toolkit-for-sharepoint.aspx
**Videos:
http://www.youtube.com/watch?v=STP5ArdFlMEhttp://www.youtube.com/watch?v=xwetm92V89Q
Hope this helps.
Regards,
Mostafa arafa
Saturday, February 14, 2009
Export GridView to pdf
I got a question from one of the DotNet Boom Community on how to export GridView to pdf,read more on below post forum:
http://www.dotnetboom.net/portal/Support/Forums/tabid/63/forumid/5/threadid/97/scope/posts/Default.aspx
Regards,
Mostafa arafa
Wednesday, January 28, 2009
ASP.Net MVC RC1 is available now
Long time waiting for this new baby,ASP.Net MVC (Model View Controller) RC1 is available now to download,and the final release will be there soon,this is a big SHIFT for all web developers.
New Architecture design for our web application will be implemented using this new pattern,i suggest if you didn't know enough information about Model View Controller Pattern,see below link :
http://www.c-sharpcorner.com/UploadFile/napanchal/MVCDesign12052005035152AM/MVCDesign.aspx
once you understand the purpose and the use of it for your enterprise project,here you can see the new features for RC1:
http://weblogs.asp.net/scottgu/archive/2009/01/27/asp-net-mvc-1-0-release-candidate-now-available.aspx
Happy times with .Net
Regards,
Mostafa arafa
Thursday, January 22, 2009
Update Lists in SharePoint using web services
I got the following email from a developer,it says as follows:
"
Hello Moustafa. I don't want to bother you, but I've been searching for examples of MOSS 2007 Web Services development, and I have not found anything. I have this situation. There is a document library with some items on it. I need to edit some properties of a document (on that doc libr) from an Office application, using the MOSS web services. I need to change the Title and the Category of that document, but I don't know how to do that. Could you help me please, with an example that could guide to me how to do that? ( If you have some interesting links or something about MOSS 2007 development (using web services or api) I'm going to thank you so much ). Regards ...
------------------------------------------------ Ing. José Mauricio Molina Pérez
"
He wants to update Document Library which is a list using sharepoint web services, and he has a windows application which will invoke this web serivce to update document information,Here you go :
http://msdn.microsoft.com/en-us/library/ms440289.aspx
If you want a useful site for sharepoint developers :
http://www.microsoft.com/click/SharePointDeveloper/
Hope this helps.
Regards,
Mostafa arafa
Friday, January 16, 2009
New Edition of Patterns and Best Practices Application Architecture Guide
New Edition V2.0 has been released from patterns and best practices application architecture Team,This Guide is very important for Architect & senior Designer and Developer who are building and design Complex Enterprsie Projects and Application using .Net Technology.
The book is showing the following:
1) Different patterns for design your applications (Web,Mobile,RIA).
2) Layering and Tiers in .Net.
3) SharePoint LOB Applications.
4) How to build Services using different technologies in .Net.
5) Deployment scenarios in .net.
Download link:
http://www.codeplex.com/AppArchGuide/
I recomment every one to read it to follow the best practices and avoid common pitfalls in your design.
Regards,
Mostafa arafa
Wednesday, January 14, 2009
3 Tier Architecture Using VS.Net 2008
I had delivered a session on How to build "3 Tier Architecture Applications Using .Net" and i have uploaded my presentation and my demo project on the following link:
1) Presentation:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/3LayerArchitectureUsingdotNet011209.pptx
2) Demo Solution contains 3 Layer Asp.Net website and 3 Tier Asp.net Web Application:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/EAADemos.zip
Hope this helps.
Regards,
Mostafa arafa
Friday, January 09, 2009
Cookies in Asp.net - An Important Tip
In this post i want to show how to create a cookie in asp.net page which contains a counter ,This counter will be increased every time you visit the page.
The tip which i want to highlight here-(I got this question from one of my firends),That when you try to update the cookie value in asp.net you have to update the expiry date of the httpcookie object,otherwise the asp.net will store the default value which is : 1/1/0001,which let your code to create a cookie every time instead of update the counter value in the cookie file.
The code to do this on page_load event in C# :
if (Request.Cookies["counter"] != null)
{
HttpCookie coo=Request.Cookies["counter"];
int x = int.Parse(coo.Value);
x += 1;
coo.Value = x.ToString();
coo.Expires = DateTime.Now.AddDays(7);// if you omit this line,the cookie will be created each time.
Response.Cookies.Add(coo);
Response.Write(coo.Value);
}
else
{
HttpCookie coo = new HttpCookie("counter", "0");
coo.Expires = DateTime.Now.AddDays(7);
Response.Cookies.Add(coo);
Response.Write(coo.Value);
}
The code for this post is uploaded here:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/CookiePageTest.aspx.cs
Hope this helps.
Regards,
Mostafa arafa