Monthly Archives: June 2011

To set the Title for a BPEL instance Name in Oracle SOA 11G.

use ora:setCompositeInstanceTitle() in Java_Embedding or in an Assign Statement. for example : puts the instance name as “LOGIN:User1” in the em console Advertisements

Posted in ORACLE SOA 11G, Oracle SOA BPEL, SOA BPEL 11g

Prevent CSRF (Cross Site Request Forgery) Attacks in SharePoint Application Pages.

Cross-Site Request Forgery (CSRF) is an attack outlined in the OWASP Top 10 whereby a malicious website will send a request to a web application that a user is already authenticated against from a different website.  Much detailed & better

Posted in C#, Sharepoint 2010

Deploying referenced project assemblies to GAC through sharepoint WSP

To deploy referenced project assemblies to GAC through SharePoint WSP: 1. Open the Package designer in the SharePoint project. 2. Select the Advanced tab. 3. Click the Add button. 4. Select the Add Assembly from Project Output menu item. 5.

Posted in Sharepoint 2010

Get maxPwdAge for a Domain in AD.

Get Domain level directory entry with username/password, get the property value for ‘maxPwdAge‘ (which would be System.__ComObject) Convert System.__ComObject to datetime/int. We have to use COM Interop Libraries for this one, ActiveDs.dll (you can find it on the web) For

Posted in Active Directory, C#

“Please close SPWeb objects when you are done with all objects obtained from them, but not before”

DO NOT use SPList directly from methods in webparts & application pages. SPList is a sharepoint object & will instantiate a new SPWeb Object, if used outside of its parent SPweb object. Always perform operation on SPObjects with in the

Posted in Sharepoint 2010

Anonymous Custom Application Pages in SharePoint Sites.

We sometimes want custom application pages in SharePoint solution , which needs to be enabled for anonymous access, for example: SiteLogin.aspx or AppError.aspx. By default, when we create an custom application page in visual studio in a SharePoint 2010 solution,

Posted in C#, Sharepoint 2010

Recycle IIS Application Pool’: 0x80070005Access denied

While deploying SharePoint 2010 solution from Visual Studio 2010, we often stumble upon the below deployment error: Recycle IIS Application Pool’: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied Solution: The Deploy Solution user that is running the visual Studio needs to be site collection Admin

Posted in Sharepoint 2010, Visual Studio