Monday, September 2, 2013

401 Unauthorized errors on SharePoint 2013

In my SharePoint 2013 development environment I found a new issue which was not happened in past, I suddenly ran into 401 unauthorized errors.
Those errors would occur only when the pages would be rendered through the /_layouts/15/start.aspx page. This specific page is responsible for loading pages from a site using the Minimal Download Strategy feature, a new feature in SharePoint 2013 that improves client rendering performance and fluidity for navigating from one page to another page by downloading only the changes between two pages.

Error:
401 unauthorized

Solution:
If you are experiencing those 401 unauthorized errors, simply disable the following feature for now.
Site Settings > Manage Site Features > Minimal Download Strategy (see the image below)




Happy SharePointing...!!!

Friday, June 7, 2013

Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.

Error:
Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm. (see the image below)



Cause:
Your login user has no 'db_owner' access for SharePoint Databases.
1. SharePoint_Config
2. SharePoint_AdminContent_[XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX]
3.Your web application DB in which you want to deploy WSP (Example. WSS_Content_XXXX)

Solution:
Now connect your SQL Server with admin user.
Then select your user which has error in deployment.
Then assign all above DBs to db_owner rights. (see the image below)





Now try to deploy your WSP.

You can successfully deploy WSP.

Happy SharePointing...!!!

Wednesday, June 5, 2013

Workflow Manager Configuration Wizard Error for SharePoint 2013

Error:  
Method not found: 'System.String Microsoft.ServiceBus.Commands.Common.SecurityHelper.CreateServerAdministratorRole(System.String, System.String)'.

Error Detail Log: 
System.Management.Automation.CmdletInvocationException: Method not found: 'System.String Microsoft.ServiceBus.Commands.Common.SecurityHelper.CreateServerAdministratorRole(System.String, System.String)'. ---> System.MissingMethodException: Method not found: 'System.String Microsoft.ServiceBus.Commands.Common.SecurityHelper.CreateServerAdministratorRole(System.String, System.String)'.
   at Microsoft.ServiceBus.Commands.NewSBFarmBase.InstallManagementDB(String connectionString)
   at Microsoft.ServiceBus.Commands.NewSBFarmBase.ProcessRecordImplementation()
   at Microsoft.ServiceBus.Commands.ServiceBusBaseCmdlet.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
   --- End of inner exception stack trace ---
   at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
   at Microsoft.Workflow.Deployment.ConfigWizard.CommandletHelper.InvokePowershell(Command command, Action`3 updateProgress)
   at Microsoft.Workflow.Deployment.ConfigWizard.ProgressPageViewModel.CreateSBFarm(FarmCreationModel model)


Resolution:

Missing Service Bus 1.0 package.
Download from  http://www.microsoft.com/en-in/download/details.aspx?id=35374
OR 
Install http://www.microsoft.com/en-us/download/details.aspx?id=36794

Then re-run Workflow Manager Configuration Wizard again and see the 
first steps working successfully for "Create a new Service Bus farm."




Happy SharePointing...!!!

Tuesday, June 4, 2013

Microsoft Certified Professional

Last saturday (1st June, 2013) I have passed 70-573 "TS: Microsoft SharePoint 2010, Application Development" Exam. 

Now I become Microsoft Certified Professional and moving forward for become MCPD (70-576). 

Happy SharePointing...!!!



Friday, May 10, 2013

All application, file icons change to Acrobat/Reader icon after install Acrobat Reader

Issue:
After I install Adobe Reader on Windows 7 , icons of all applications and file-types change to Acrobat/Reader icon. Double-clicking any icon or file launches Acrobat or Reader. (The native application associated to the file type doesn't open.)

Solution:
I found good solution in Acrobat Help.
See the link here.


Tuesday, March 12, 2013

Get SharePoint Users List from Infopath Form People Editor

Today I am doing some R & D with Infopath form & workflow. I want to pass multiple users from Infopath to workflow for multiple users' task creation.

I have searched on google but not getting proper result for above. That's why I have decided to write this post for other user's help.

See below image for visualization.

 

 








Now, fire button click & add below code.

        public void btnGetUsers_Clicked(object sender, ClickedEventArgs e)
        {
            // Write your code here.
            XPathNodeIterator sentToIterator = MainDataSource.CreateNavigator().Select("/my:myFields/my:reviewersGroup/pc:Person/pc:AccountId", NamespaceManager );
            string result = "";
            int count = 1;
            foreach (XPathNavigator selectedNode in sentToIterator)
            {
                if (count < sentToIterator.Count)
                {
                    result += selectedNode.InnerXml +"; ";
                    count++;
                }
                else
                {
                    result += selectedNode.InnerXml;
                }
            }
        } 
Happy SharePointing...!!!

Saturday, March 2, 2013

The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

Today I am trying to open my SharePoint port 80 Site in my Laptop which has installed window 7 Ultimate 64 bit OS.

But can't open site in browser so I have checked IIS Manager and seen port 80 site is stopped. So I have tried to start that site but can't start and error fire as below.

Error: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)  

Cause: After few minutes of research, I have seen one problem. Problem was Skype is by default use port 80 that's why I faced the issue.

Resolution: Go to Skype > Tools > Advance (left side Tab) > Connection > Now unchecked port 80 as per below screen.









Happy SharePointing...!!!