Wednesday, May 18, 2011

Warning 1 The referenced assembly “Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL” could not be resolved because it has a dependency on “System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Client”. Please remove references to assemblies not in the targeted framework or consider retargeting your project

Solution Here for this issue: http://mycodelog.com/2010/03/25/vssp2010/

Resolution
SharePoint 2010 is built on top of .Net Framework 3.5. So make sure you have it as your targeted framework in VS. Go to project properties and change the target framework to “.Net Framework 3.5″.

Run Issue
The Web application at <url> 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.

Resolution
You have an x64 version of SharePoint Server installed, but VS 2010 is building your code as x86. So go to project properties \ Build and change platform target from x86 to x64.

Saturday, May 7, 2011

The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

Source Article is Here:-

http://www.jeremytaylor.net/2010/06/02/sharepoint-2010-the-form-cannot-be-rendered-this-may-be-due-to-a-misconfiguration-of-the-microsoft-sharepoint-server-state-service-for-more-information-contact-your-server-administrator/

"The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator".

SharePoint 2010 – The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

You may receive this error when trying to publish a page in SharePoint 2010

The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

Solution:
You would need to install the ‘State Service’ via the Configuration wizard in Central Administration or via PowerShell.

To configure the State Service by using Windows PowerShell:
1. Click Start, Administrative Tools, Windows PowerShell Modules.
2. In Windows PowerShell, type $serviceApp = New-SPStateServiceApplication -Name “State Service”
3. Create a State Service database and associate it with a service application, by typing New-SPStateServiceDatabase -Name “StateServiceDatabase” -ServiceApplication $serviceApp
4. Create a State Service Application Proxy and associate it with the service application by typing New-SPStateServiceApplicationProxy -Name “State Service” -ServiceApplication $serviceApp -DefaultProxyGroup
(You can use another proxy group if necessary by changing the DefaultProxyGroup parameter)
Tip:
You can view a list of all State Service cmdlets in Windows PowerShell by typing gcm *spstate*

Thank You.

Error occurred in deployment step 'Activate Features': Cannot start service SPUserCodeV4 on computer

Error occurred in deployment step 'Activate Features': Cannot start service SPUserCodeV4 on computer

Troubleshooting Sandboxed Solutions in SharePoint 2010

Hi friends for this problem in my machine i am start following
Service. that is "Microsoft SharePoint Foundation Sandboxed Code Service".

path = Central Administration -> System Settings -> Manage services on server -> Microsoft SharePoint Foundation Sandboxed Code Service -> start 
Support answers on sandboxed solutions in SharePoint 2010
Thank You.

Thursday, May 5, 2011

How to Check In & Check Out Publishing Page using workflowProperties when SPContext.Current return NULL Valure

Source  for Actual Post:  How to Check In Check Out Publish a document using workflowPropertie


Almost one week I am getting bored with this task how to check in, check out, publish a document using SPContext.Current.   Each and every time it returns the NULL value.  I cant get any valuable post regarding this mistake.  Finally I got this solution using workflow properties.  This is working well in SP2007 sequential workflows in VS2008.
     
            SPSite oSite = new SPSite(workflowProperties.SiteId);
            SPWeb oWeb = oSite.OpenWeb();
            SPList oList = oWeb.Lists[workflowProperties.List.Title.ToString()];
            //SPList oList = oWeb.Lists["Pages"];
            SPListItem item = oList.GetItemById(workflowProperties.ItemId);
          
            SPFile file1 = item.File;
            file1.Publish("Published by  " + workflowProperties.Web.CurrentUser.Name);
            file1.Approve("Approved by Administrator ");

         
            //If you want to Check in
             file1.Checkin("chek in ");

             //If you want to Check out
             fil1.Checkout( );

Featured Post

Sent Email in C#

Sent Email in C# : //Option 1: using S ystem; using System.Net.Mail; using System.Security; using System.Text; using System.Threading.T...

Popular posts