Wednesday, September 25, 2013
Error Publishing Content Type: No valid proxy can be found to do this operation
Labels:
Content Type Hub,
Content Type Syndication,
Hub
Tuesday, August 20, 2013
SharePoint 2013 IFrame: This HTML cannot be inserted because this type of content is not allowed.
Hi All,
We got below error when trying to embed a IFrame in SharePoint 2013 Page (Edit Page > Embed Code)
IFrame code:
<iframe src="http://www.w3schools.com" width="600" height="400"></iframe>
and the error:
Resolution:
Go to Site Settings > Site Collection Administration > HTML Field Security
In "Allow iframes from this domain" section, add http://www.w3schools.com and click OK as shown below:
Once this is done, the site is displayed properly in IFrame as shown below:
Hope this helps someone out there :)
We got below error when trying to embed a IFrame in SharePoint 2013 Page (Edit Page > Embed Code)
IFrame code:
<iframe src="http://www.w3schools.com" width="600" height="400"></iframe>
and the error:
Resolution:
Go to Site Settings > Site Collection Administration > HTML Field Security
In "Allow iframes from this domain" section, add http://www.w3schools.com and click OK as shown below:
Once this is done, the site is displayed properly in IFrame as shown below:
Hope this helps someone out there :)
Labels:
content type not allowed,
HTML cannot be inserted,
HTML Field Security,
IFrame,
SharePoint 2013,
W3Schools
Tuesday, February 12, 2013
Class not registered exception - SharePoint 2013
Hi All,
We got below error when trying to use SPSecurity.RunWithElevatedPrivileges in console application
Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
The code is shown below:
The console application is running under 32 bit processor. Just change it to 64 bit.
To do this:
We got below error when trying to use SPSecurity.RunWithElevatedPrivileges in console application
Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
The code is shown below:
using Microsoft.SharePoint; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SampleComnsoleApp { class Program { static void Main(string[] args) { bool quiet = false; SPSecurity.RunWithElevatedPrivileges(delegate() { (new Program()).Run(quiet); }); } private void Run(bool quiet) { } } }Resolution:
The console application is running under 32 bit processor. Just change it to 64 bit.
To do this:
- Right click on Console Application
- Select Properties
- Under Build Tab, change Platform Target to x64
- Rerun the application and hopefully the error should go away now !
Labels:
Build,
Class not registered,
Platform Target,
RunWithElevatedPrivileges,
SPSecurity,
VS 2012
Subscribe to:
Posts (Atom)

