Posts

Showing posts from December, 2010

Few useful links

http://sharepointroot.com/2010/07/07/editing-contents-of-a-wsp-sharepoint/ http://mysharepointwork.blogspot.com/2010/02/ascx-webpart-using-system-using-system.html http://www.allaboutmoss.com/index.php/2010/03/05/how-to-create-wsp-package-for-user-controls/

Interesting but an annoying thing with Visual WebPart Renaming

When you rename the Visual Webpart, you might want to change the folder structure in which the user controls are deployed on the ControlTemplates and the safecontrol entries. You might need change all the new information (namespace, class name, folder name) in the SharepointProjectItem.spdata file. Where to find this, I did a search on the project with the old name, boom I got this file opened automatically.

Running a sharepoint windows app in x64 Vs x86

If you execute the following line of code on a Windows app and get the error on red specified : ================================================================= SPSite  site =  new   SPSite ( "http://yoursite.com" );   SPWeb  web = site.OpenWeb(); ================================================================= Error : The Web application at  http:// yoursite.com could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. ================================================================= Issue is : you are not targetting the X64 - targeting  x64 or AnyCpu  &  .NET 3.5 Framework  in your Windows Application will resolve this issue. =================================================================