Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa 
Wednesday, April 21, 2010, 09:46 - SharePoint
Posted by Administrator
This morning I received an COM exception while opening my central administration page (Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa.)



Because it was a COM exception I started looking in my DCOMCNFG like when I received DCOM errors with MOSS 2007 (remember the IISWAMREG?).

Unfortunately this was not the winning path. It seemed like you need to change the application pool (SharePoint Central Administration v4) advanced settings and change the "Load User Profile" value to "True". However this setting is not available in the advanced settings window for the central administration application pool.



The solution is to use the inetsrv\appcmd command with administrative rights. This command shows all settings of my application pool
%windir%\system32\inetsrv\appcmd list apppool "SharePoint Central Administration v4" /text:*
This resulted in this output

...
[processModel]
identityType:"SpecificUser"
userName:"DGMNTSAP\spfarm"
loadUserProfile:"false"
...

As you can see is the load user profile value False, where it should be True, in order to change this we can use this command

%windir%\system32\inetsrv\appcmd set apppool "SharePoint Central Administration v4" -processModel.loadUserProfile:true

After running this command the value of loadUserProfile has been changed to True and this error should never reoccur again.


1 comment ( 14 views )   |  permalink   |  related link   |   ( 3 / 657 )
Unable to find the default new form for list  
Tuesday, April 20, 2010, 15:31 - SharePoint
Posted by Administrator
While exploring the new Business Connectivity Services from SharePoint 2010, I created an external content type with only 2 methods specified (ReadList & ReadItem). As the only 2 methods available are Read methods, the external list only displays data from an external content source.

After I added a Create method and updated my wsp, I received this error: in my eventlog:Unable to find the default new form for list



The list was created by using the readonly contenttype and therefor the list did not have a NewForm associated. After deleting this list and recreating the External list with my cutom external contenttype, everything went as smooth as it should!

So next time you create a new Create or Update method on your external contenttype, don't forget to recreate the list in your sharepoint 2010 site.

Oh, you don't have to worry about any data loss ;)
add comment ( 5 views )   |  permalink   |   ( 3 / 623 )
The User Code Execution Request was refused because the User Code Execution Host Service was too busy to handle the request 
Wednesday, April 14, 2010, 11:00 - SharePoint
Posted by Administrator
While activating the sandbox solution from 21apps . It seems that several requirements are required for sandboxed solutions to work:

Only upload solutions with *.wsp extentions
When the solution hasn't a wsp extension but for example a zip extension, the activate button remains grayed out.

Always check if the User Code Service is running
Even if you are 100% certain it was activated yesterday or the day before ;)

The Sandbox service has been renamed in the RTM to Microsoft SharePoint Foundation Sandboxed Code Service !!!



Run powershell script when Domain Controller is installed on same server
I received an error (The User Code Execution Request was refused because the User Code Execution Host Service was too busy to handle the request). It seems that a powershell script is required in order to make this work.
$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName 
$person = [System.Security.Principal.NTAccount]"Users"
$access = [System.Security.AccessControl.RegistryRights]::FullControl
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None
$type = [System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
$acl.AddAccessRule($rule)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl



2 comments ( 2987 views )   |  permalink   |  related link   |   ( 3 / 703 )
Community Day 2010 : June 24th 2010 in Utopolis Mechelen.  
Tuesday, April 6, 2010, 15:14 - General
Posted by Administrator


Community Day is back with the Fourth Edition of this annual community event on Microsoft technologies!

Fourteen Microsoft User Groups combine their efforts to organize this unique networking and knowledge sharing
event. With so many new releases from Microsoft, the theme of Community Day 2010 is of course 2010: a new wave of products and technologies. This means that most sessions will be looking at Visual Studio 2010, Silverlight 4, Office 2010, SharePoint 2010, SQL Server 2008 R2, OCSR2...

Microsoft Community Day will take place on Thursday 24th June 2010 in Utopolis, Mechelen, where we will
bring together over 300 IT Pro’s and developers.

http://www.communityday.be/CD/
add comment ( 3 views )   |  permalink   |  related link   |   ( 3 / 351 )
Adding SharePoint SafeControl Element using Visual Studio 2010 and replaceable parameters 
Wednesday, March 31, 2010, 10:48 - SharePoint
Posted by Administrator
Problem
While trying to use my custom layouts page, I received an exception that indicated that my custom class was not registered as a safecontrol in the web.config.

Process information:
Process ID: 5272
Process name: w3wp.exe
Account name: DEV\spAppPool

Exception information:
Exception type: HttpParseException
Exception message: Could not load type 'Capgemini.SharePoint.Pex.Example.Layouts.Capgemini.SharePoint.Pex.Example.@default'.

Cause
I was confused, didn't visual studio created the SafeControls elements for me? WSPBuilder did it for me in the past so why won't visual studio do it for me?

Solution
Actually it can but it doesn't by default, Microsoft provided a nice and easy visual studio interface for us. So here it goes...

1. Open package.package in your visual studio project
2. Notice the 3 tabs (Design,Advanced and Manifest), Click on the manifest tab
3. You’ll see that your SafeControl element is not listed in the manifest, if it does, than you don’t have to complete this tutorial because everything is already in place
4. Click on the Manifest tab
5. Provide the following code inside the Assembly Element

        


This results in

  
    
      
        
      
    
  
  
    
  



You'll notice that I’ve used 2 special elements in the xml

$SharePoint.Project.AssemblyFullName$ and
$SharePoint.Project.AssemblyFileNameWithoutExtension$.

These 2 parameters are new in visual studio 2010 SharePoint development. Replaceable parameters, or tokens, can be used inside project files to provide values for SharePoint solution items whose actual values are not known at design time. They are similar in function to the standard Visual Studio template tokens

Check the related link at the bottom of this post for the MSDN website.

More information regarding replaceable parameters

Name

Description

$SharePoint.Project.FileName$

The name of the containing project file, such as, "NewProj.csproj".

$SharePoint.Project.FileNameWithoutExtension$

The name of the containing project file without the file name extension. For example, "NewProj".

$SharePoint.Project.AssemblyFullName$

The display name (strong name) of the containing project’s output assembly.

$SharePoint.Project.AssemblyFileName$

The name of the containing project’s output assembly.

$SharePoint.Project.AssemblyFileNameWithoutExtension$

The name of the containing project’s output assembly, without the file name extension.

$SharePoint.Project.AssemblyPublicKeyToken$

The public key token of the containing project’s output assembly, converted to a string. (16-characters in "x2" hexadecimal format.)

$SharePoint.Package.Name$

The name of the containing package.

$SharePoint.Package.FileName$

The name of the containing package's definition file.

$SharePoint.Package.FileNameWithoutExtension$

The name (without extension) of the containing package's definition file.

$SharePoint.Package.Id$

The SharePoint ID for the containing package. If a feature is used in more than one package, then this value will change.

$SharePoint.Feature.FileName$

The name of the definition file of the containing feature, such as Feature1.feature.

$SharePoint.Feature.FileNameWithoutExtension$

The name of the feature definition file, without the file name extension.

$SharePoint.Feature.DeploymentPath$

The name of the folder that contains the feature in the package. This token equates to the "Deployment Path" property in the Feature Designer. An example value is, "Project1_Feature1".

$SharePoint.Feature.Id$

The SharePoint ID of the containing feature. This token, as with all feature-level tokens, can be used only by files included in a package via a feature, not added directly to a package outside of a feature.

$SharePoint.ProjectItem.Name$

The name of the project item (not its file name), as obtained from ISharePointProjectItem.Name.

$SharePoint.Type..AssemblyQualifiedName$

The assembly qualified name of the type matching the GUID of the token. The format of the GUID is lowercase and corresponds to the Guid.ToString(“D”) format (that is, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

$SharePoint.Type..FullName$

The full name of the type matching the GUID in the token. The format of the GUID is lowercase and corresponds to the Guid.ToString(“D”) format (that is, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).



Package interface



Good Luck!


add comment ( 8 views )   |  permalink   |  related link   |   ( 3 / 887 )

<<First <Back | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Next> Last>>