Posts Tagged ‘Microsoft’

Exam 70-542

So i have just got my SharePoint developer certificate , it was 32 question that i had to answer in 2 hours but it was very easy actually if you do the right preparations you will pass 4 sure ; – )

so what i did was basically trying to go through the book called professional SharePoint development and then found some test questions samples which i went through them .. very useful in deed , and then i tried understanding each question that i didn’t know how to answer and then i found that golden topic

that described almost every thing that came in the exam in details and very good explanations
so make sure you visit that link and understand each single work in it..
the exam is easy so don’t feel confused just do the work and you will pass

good luck people
Cheers : )

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

Remove Shutdown Button

Some times when working with virtual machines … it is a good idea to disable the shut down to make sure you don’t hit it by accident

so this is how it works

Start Group Policy Editor (Start > Run > “gpedit.msc”)
In the left panel, go to User Configuration > Administrative Templates > Start Menu & Taskbar
In the right panel, enable Remove and Prevent Access to the Shut Down Command

Off course you can still, if you want to, shutdown via the Run command (shutdown.exe -s -t 0) or more dramatically make a forced shutdown (shutdown -f -t 00) – don´t do this unless you really really have to…cheers

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

VS2010 Agile

A very nice break through showing all the new features inside Visual studio 2010 helping with the Agile methods and daily scrums … really amazing how it facilitates alot of staff ;- )

 

Enjoy

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

InfoPath to SharePoint with Relative Data Connection

I was trying to automate the deployment process of the InfoPath form to a SharePoint list and also make the dataconnetion relative to the server and the site collection it is deployed to and i have found a very good links to do that

InfoPath List

InfoPath DataConnection

InfoPath Feature

Xml From InfoPath

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

Word Document From Word Template

I was trying to generate a word document with C# based on word template … without using external out of the box tool…

but the only code i found was using the office dlls and opening a hidden instance of the word windows application…

i didn’t want to do that on the server side .. also i was planning to generate a pdf file after that so i decided to go for the aspose tools instead but here is a good links for future refrences

Word From Xml

Word Automation

Word From SharePoint

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

WSPBuilder Best Practice

- Create a Deployment Project under you solution structure called deployment
- Place all the xml ,xslt ,css and aspx in the right structure under the 12 folder in the deployment project
- Create Projects for code behinds , business or data layers to generate only dlls
- Add this post build events to copy the generated dlls to the GAC folder under your deployment project
cd $(ProjectDir)
Copy "$(TargetPath)" "..\Deployment\GAC"

- Add this post build events to the deployment project to generate the WSP Package and place it under the Deployment project directory
cd $(ProjectDir)
"C:\Program Files\WSPTools\WSPBuilderExtensions\WSPBuilder.exe" -WSPName $(ProjectName).wsp
This parameter “-WSPName $(ProjectName).wsp”
generate a WSP Package with the name of the Deployment Project by default it the name of the project directory.
For more parameters help please run the command
"C:\Program Files\WSPTools\WSPBuilderExtensions\WSPBuilder.exe" –Help

- From the solution properties Set the Deployment project to depend on all other projects
so by this you make sure that whenever you are building the package it will contain the latest dlls because other projects will be building by default and copying the dlls to the GAC Folder
- when first time building the project it will automatically create a text file called “solutionid.txt” under the deployment project directory , that file will contain the id of the generated wsp package, it is very recommended to include that txt file into your project and check it in into TFS , so you make sure that all the team members will have the same WSP package id .

Disadvantages
- WSP Builder Includes any file included in the “File” structure of the deployment project and not the “project” structure, so any files that is hidden or not included in the deployment project structure, however placed in the physical structure of the files will still be included ,
So before each build you have to clean up your file structure from any unwanted hidden files.

- The commands lines copying the dlls to the GAC folder will also copy the external referenced dlls that is having the property “Copy Local” to true , and that will end you up deploying dlls that you don’t want to deploy or even deploying dlls that is already included by other packages which is totally not recommended.
So please make sure that any dll reference has the property “Copy local” is set to false.

- sometimes to use the WSPBuilder it is needed to create empty Folders Like "GAC" and empty folders are not physically created in the TFS , and that causes some problems when Using MSBuild tasks to Do a release on the Build Server

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

Get Active Directory Users

//GetUsers 

DirectorySearcher searcher = new DirectorySearcher(de);

 

searcher.Filter = "(objectClass=user)";  

searcher.SearchScope = SearchScope.Subtree; 

 

SearchResultCollection results = searcher.FindAll(); 

UserCollection users = new UserCollection(); 

users.Users = new User[results.Count]; 

 

int index = 0; 

 

    foreach (SearchResult result in results) 

    { 

        DirectoryEntry directoryEntry = result.GetDirectoryEntry(); 

        users.Users[index] = new User();  

        users.Users[index].Email = (directoryEntry.Properties["Mail"].Count >= 1) ? directoryEntry.Properties["Mail"][0].ToString() : ""; 

        string DomainName = ""; 

        string distinguishedName = (directoryEntry.Properties["distinguishedName"].Count >= 1) ? directoryEntry.Properties["distinguishedName"][0].ToString() : ""; 

        string[] TempStr = distinguishedName.Split(','); 

 

        foreach (string Str in TempStr) 

        { 

            if (Str.Contains("DC=")) 

            { 

                DomainName = Str.Replace("DC=", ""); 

                break; 

            } 

        } 

        string UserName = (directoryEntry.Properties["sAMAccountName"].Count >= 1) ? directoryEntry.Properties["sAMAccountName"][0].ToString() : ""; 

        users.Users[index].UserName = (DomainName != "") ? DomainName + "\\" + UserName : UserName;  

        users.Users[index].FirstName = (directoryEntry.Properties["givenName"].Count >= 1) ? directoryEntry.Properties["givenName"][0].ToString() : ""; 

        users.Users[index].LastName = (directoryEntry.Properties["Sn"].Count >= 1) ? directoryEntry.Properties["Sn"][0].ToString() : ""; 

        users.Users[index].DisplayName = (directoryEntry.Properties["displayName"].Count >= 1) ? directoryEntry.Properties["displayName"][0].ToString() : ""; 

        users.Users[index].Description = (directoryEntry.Properties["description"].Count >= 1) ? directoryEntry.Properties["description"][0].ToString() : ""; 

        index++; 

 }

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

Active Directory

Almost Every thing About Active Directory Mangment

Very Usefull link Active Directory

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

Make IIS application

If You want to make an application that mange An IIS Virtual paths or application a very Good Reference will be at that link Mange IIS

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

Gac As normal Folder

 

To Uninstall Assembly folder extensions:

Run this cmd
regsvr32 /u C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll

Install Assembly folder extensions:
regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
 

 

View Abdel-Rahman Awad's profile on LinkedIn

Archives

 

Rss Feed Tweeter button Facebook button Linkedin button Delicious button Digg button