Earlier in my post, I discussed how you can structure WCF projects. Few things are still missing in that structure, especially Error Handling. With the current architecture, which is shown below, we can handle Errors and send meaningful information back to the Client. This is done using Faul...
[More]
So, you want to add your custom items in the SharePoint menus or toolbars ? You can do so by adding your own Custom Action. Custom Action is a SharePoint Feature which makes your life easier if you want to customize your site.
Some examples of where you might want to add items may be:
1) In the Up...
[More]
WCF projects do not always tend to stay in one project solution. As the business requirement grows, we see that we might need to break up our WCF solution into various bits. Here is a way I handle my WCF projects.
I break up my WCF project into the following bits (each being a class library in Visu...
[More]
Here are sample code snippets to upload and download a file from Sharepoint Document Library
Upload a File:
1: public static void UploadDocument(string siteCollectionUrl,
2: string siteUrl,string libraryName)
3: {
4: using (SPSite hostSite ...
[More]
I am currently building a WCF service that has some Sharepoint code in it. The service uses wsHttpBinding. The service is hosted in Windows Server 2003 running IIS 6 with integrated windows authentication mode.
It was really strange to me when the service threw this (really a weird) exception:
T...
[More]
We usually work with multiple tabs opened in our browsers and when many such tabs are opened, there is a chance that we accidentally close some tabs and wonder where they are! :)
Well, IE8 might have a solution for you!
IE8 can remember your recently closed tabs (I guess, 10 tabs). You can also ...
[More]
Recently I blogged about how to start IE8 in InPrivate mode by default
There are two ways to do it:
Using command line
Making the InPrivate page as your Home Page
Well, it turns out to be that setting the InPrivate page as your Home Page does not open IE8 in InPrivate mode. It just opens t...
[More]
I will be there at Tech Ed (only tomorrow) and Bloggers Dinner night tomorrow (Monday) :)
If you happen to be there, please give a yell and let us meet :-P
I blogged about IE8, Tab Groups and Task Manager earlier and mentioned about many iexplore.exe processes in the Task Manager.
It turns out to be that there is nothing wrong with IE8. Its the new feature called Loosely-Coupled Internet Explorer (LCIE) which is introduced in IE8. From the IE8 web sit...
[More]
IE8 beta 2 has been a great release so far from our Redmond friends. We should not forget that its still Beta and we will have issues with it.
I was playing around with IE8 Tab Grouping and also looking into Task Manager on how IE8 was performing.
Tab Grouping is a cool feature which gives a color...
[More]
There was a discussion in IE 8 beta Newsgroups at Connect regarding always starting IE8 in InPrivate browsing mode :)
Here is how you do it. There are two ways to do it:
Internet Explorer Shortcut
Create a IE8 shortcut as shown in the screen-shot below
The argument -private will always...
[More]