Alexander’s Blog

September 19, 2011

Video: Microsoft Certification Exam Demo

by @ 2:21 pm. Filed under Certification, Videos

If you are new to Microsoft certification exams, check out this demo from Microsoft that will help you understand how all exam types work. Watching this video before your first certification exam is highly recommended. You will need Silverlight installed in your browser to watch this demo.

Microsoft Certification: Microsoft Certification Exam Demo
Microsoft Certification: Microsoft Certification Exam Demo
by
Snack Owner

September 18, 2011

Error: An unhandled exception occurred in the Silverlight Application

by @ 10:21 am. Filed under Browsers, SharePoint, Tips & Tricks

Today I noticed the following error when I tried to create a new library in SharePoint 2010. I am running SharePoint Server 2010 and was using IE9 on my Windows 7 Ultimate x64 client.

Error: An unhandled exception occurred in the Silverlight Application

Here’s how I was able to resolve the problem.

  1. Go to Central Administration site.
  2. Go to Manage Web Applications in Application Management section.
  3. Highlight your Web application and select General Settings from the General Settings drop-down box.
  4. Turn on the Web Page Security Validation. The Web Page Security Validation establishes an amount of time after which the user is required to retry the operation. By default it is set to on and the expiration time is 30 minutes. I don’t recall turning it off on my Web application but somehow it was set to off. I looked at all the other Web applications and discovered that it was set to on. It might be some kind of bug in SharePoint but because I haven’t done any research on this issue I can’t say for sure.

  5. Now you should be able to create new libraries.

There is no need to restart any services, browser, or your computer. Your change should take effect immediately.

September 13, 2011

Site Definitions & SharePoint Designer

by @ 10:35 am. Filed under Articles, SharePoint, Tips & Tricks

Have you ever noticed that when you modify a page in SharePoint Designer (2007 or 2010) it adds a blue icon next to the document with the letter i in the middle? The icon next to the page means that the page has been customized. In this article, I will discuss the important concept of page customization and site definition in SharePoint and talk about the best practice for dealing with master pages for your SharePoint sites.

What are Site Definitions?

In SharePoint Designer we can customize the pages. For example, we can modify the default home page and put our logo and custom Web parts. However, sometimes if we really mess the page and don’t like the way it looks, we can reset to the site definition. A Site Definition is a bunch of files on the Web server that define a unique type of SharePoint site. When you create a new site it is based on a site definition. Let’s say you customize a page but then don’t like the way it looks. You can reset the page to the site definition, which will discard all the changes you made to the page put it back to the way it was originally defined in the site definition.

Reset to Site Definition

While working in SharePoint Designer, you may have noticed that sometimes when you reset a page to the site definition you lose all your changes, while other times you don’t lose anything at all. Here’s the explanation as to why this happens. You won’t lose any changes to the Web parts that reside in a Web part zone that exists on the site definition page. You will, however, lose all changes that you made to the Web parts that reside outside the site definition page. For example, let’s say you add a Content Editor Web Part (CEWP) to Zone 1 that was part of the site definition on your homepage. You add your logo and some text to the CEWP Web part. Then you create Zone 2 and add another Web part with some content. When you reset the page to site definition, you will not lose anything in Zone 1. Your text and logo will be intact. However, you will lose everything that you added to Zone 2, including the Web part and its content. That’s because Zone 2 was not part of the site definition but Zone 1 was.

NOTE: If you create a page from either a blank page or create it in another program and then import it into SharePoint Designer, that page cannot be reset to the site definition.

Resetting to Site Definition Isn’t Always Necessary

Here’s a tip. You don’t always have to reset the page to site definition to restore it to its original condition. Instead, you can use versioning. If you are working with pages that reside in a document library, you can use versioning to simply go back to the previous version. Because the Master Page Gallery is a document library and all the master pages reside in that library you can simply turn on versioning and instead of resetting the master page to the site definition, you can revert to the previous version.

As mentioned earlier, if a page is customized you will see a blue icon with letter i in the middle. This simply means that the page was customized.

As a best practice, I recommend that you don’t modify the original master page. Instead, create a copy of the master page, rename it, e.g. MyMaster, and make it the default page. You can even create a CSS style sheet and associate it to the custom master page that you have created. This might be a good topic to discuss at another time. If you are interested in that topic, you might want to subscribe to my blog’s RSS feed to get notified automatically.


Copyright ©2011 Zubair Alexander. All rights reserved.

Contact E-mail | Terms of Use | Privacy Policy

Copyright ©2010 Zubair Alexander. All rights reserved.

Internal Links

Search Blog

Categories

Archives

September 2011
M T W T F S S
« Aug   Oct »
 1234
567891011
12131415161718
19202122232425
2627282930  

RSS Feeds

TechGalaxy Visitors

24 queries. 0.353 seconds