VS2010: Changing the SharePoint wsp file name

Donal Conlon

The default file name given to your solution will match the project name.  I.e. a SharePoint project SharePointProject1 will result in a package SharePointProject1.wsp.

If you want VS to spit out a different name, modify the name attribute in the PackagePackage.package file for your project.

Code Snippet
  1. <?xmlversion=1.0encoding=utf-8?>
  2. <packagexmlns:dm0=http://schemas.microsoft.com/VisualStudio/2008/DslTools/CoredslVersion=1.0.0.0Id=93b1d26c-eca7-4dc6-8a0e-6e96bc980c63solutionId=93b1d26c-eca7-4dc6-8a0e-6e96bc980c63resetWebServer=falsename=SharePointProject1xmlns=http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel>
  3. <features>
  4. <featureReferenceitemId=896bdcb0-4dd8-428a-a028-77e509bc9108 />
  5. </features>
  6. </package>

You may need to restart VS after making this change.

View original post

TROUBLESHOOTING: FIM2010: Event ID 6208-The server encryption keys could not be accessed

A very handy tip,

http://social.technet.microsoft.com/wiki/contents/articles/13934.troubleshooting-fim2010-event-id-6208-the-server-encryption-keys-could-not-be-accessed.aspx

FIM Synchronization Service encryption key

sharepointbling

Connect to me, ask question on Linkedin http://uk.linkedin.com/pub/martin-o-gorman/2a/93b/573

FIM Synchronization Service encryption key

If you are patching the User Profile Service service application database, then you must export the User Profile Synchronization Service encryption key from the old database and then import the key into the new database. This key is also known as the Microsoft Identity Integration Server (MIIS) key, the Synchronization Service encryption key, and the Forefront Identity Manager 2010 (FIM 2010) key. If you do not export and then import the key correctly, the Synchronization Service will not start. To export the encryption key, complete these steps:

Use farm administrator credentials to log on to the computer that contains the old User Profile Service service application database.

Open the Command Prompt window, and then change to the following folder:
%Program Files%Microsoft Office Servers14.0Synchronization ServiceBin

Type the following command, and then press Enter:
miiskmu.exe /e D:backupFIM_Key
Where <Path>…

View original post 191 more words

Powershell script to add a User Profile Property and synch it with an Active Directory property in SharePoint 2010

The Relentless FrontEnd - Aackose Lal's Blog

There were a chunk of PS scripts that did the user profile property creation and sync, swarming in google. But i faced a lot of issues during the execution. Hence thought of posting the corrected one here. This script is origanlly taken from the link below:

http://gallery.technet.microsoft.com/scriptcenter/SP2010-PowerShell-to-0fda04f7

The corrected script:

AddUPProperty.ps1

NB: Please ensure that you remove the “.pdf” extension from the downloaded file. The original file name is “AddUPProperty.ps1

View original post

XamlParseException during application startup

Anna Lear

If a WPF application encounters any problems during the creation of the main window, you will be presented with a rather useless System.Windows.Markup.XamlParseException:

“Cannot create instance of ‘Window1’ defined in assembly ‘YourAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Exception has been thrown by the target of an invocation. Error in markup file ‘Window1.xaml’ Line 1 Position 9.”

The inner exception is similarly not giving much information:

{“Exception has been thrown by the target of an invocation.”}

The trick to getting to the root of the problem is simple. There are a couple ways to do so:

  1. Wrap the code in the constructor of the Window in a try/catch block. This will provide you with access to the actual exception and its stack trace.
  2. Open the Exceptions window in Visual Studio (Debug -> Exceptions…) and check the “Common Language Runtime Exceptions” checkbox in the Thrown column. Re-run your application with the debugger attached, and…

View original post 12 more words

Could not load file or assembly ‘$SharePoint.Project.AssemblyFullName$’ or one of its dependencies. The system cannot find the file specified.

Mitt SharePoint-minne

$SharePoint.Project.AssemblyFullName$ is a token that gets replaced with the full name of the assembly at deployment time.

By default Visual Studio looks for tokens in files of types XML, ASCX, ASPX, Webpart and DWP.

My file was of type ASHX and this is how to tell Visual Studio to also look in ASHX files:

  • Unload the project
  • Open the csproj-file with Notepad.
  • Inside a <PropertyGroup> tag add this tag:
    <TokenReplacementFileExtensions>ashx;</TokenReplacementFileExtensions>
  • Reload the project

If you want to add several file types separate them with ;

Read more about tokens here http://msdn.microsoft.com/en-us/library/ee231545.aspx

————————————————————————————————————–

View original post

How to remove Oracle 11gR2 on windows 7

Helios's Blog

In this post i try to explain how we can remove Oracle 11gR2 on windows 7 platform.

View original post 1,084 more words