View Complete Post
I had developed a custom web part in SharePoint 2007 using VS 2005 and VSeWSS 1.2
I have upgraded this custom web part to SharePoint Server 2010 using VS 2010 by using the
"VSeWSS Import Tool For VS 2010" from here: http://code.msdn.microsoft.com/VSeWSSImport
For this upgrade tool,I referred this article: http://msdn.microsoft.com/en-us/library/ee662217.aspx
The custom web part got imported successfully and the build was also successful.
But its deployment gives me this error: Error occurred in deployment step 'Activate Features': Attempted to perform an unauthorized operation.
I am running administrator privileges on my Windows Server 2008 R2.
Any ideas why this is happening?
I've got the same error as those who opened this
thread, but I'm looking for the cause of this error rather than deleting the solution file from SP2010 Server over and over again.
I was developing and deploying with VS2010 and SP2010 Enterprise Edition just fine for over three month now and out of nothing this error pops up again and again for the same solution. I can't tell what I've changed or which software I might have installed
in the meantime, so I can't give any hints what causes the errormessage. Which might be interesting: I installed my SP2010 Enterprise Edition in english and installed the german language pack afterwards. Kind regards, Andreas
I've created a VS2010 sharepoint project and added a feature event receiver to my site definition. When I try to deploy it show me the error bellow:
Error 1 Error occurred in deployment step 'Add Solution': Failed to load receiver assembly "SiteDefinitionProject2, Version=188.8.131.52, Culture=neutral, PublicKeyToken=a693a58979940483" for feature "SiteDefinitionProject2_Feature1" (ID: 9dce3ed9-5eb0-4bea-b42d-4dad84559a36).:
System.IO.FileNotFoundException: Could not load file or assembly 'SiteDefinitionProject2, Version=184.108.40.206, Culture=neutral, PublicKeyToken=a693a58979940483' or one of its dependencies. The system cannot find the file specified.
File name: 'SiteDefinitionProject2, Version=220.127.116.11, Culture=neutral, PublicKeyToken=a693a58979940483'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
I'm getting this error with Visual Studio 2010 (RTM) deploying to SharePoint 2010 (also RTM).
An "Empty SharePoint Solution" project with an OOB "Module" item added. Try to deploy and I get:
Error Occurred in deployment step 'Add Solution': Value cannot be null. Parameter name: s
The account I'm developing with has:
The WSP package is created successfully, and if I roll it out using STSADM then it works perfectly. For some reason though Visual Studio 2010 thinks that it cannot be deployed!
While trying to deploy custom SharePoint workflow solution in VS 2010, along with InfoPath custom task edit form, I ran into the following error message.
Error occurred in deployment step 'Add Solution': An object of the type Microsoft.Office.InfoPath.Server.Administration.FormTemplate named xxx already exists under the parent Microsoft.SharePoint.Administration.SPFarm named xxx Rename your object or delete
the existing object
How can I resolve this problem? I have did some research but none helpful so far.
I am trying to deploy my first Visual Webpart from Visual Studio 2010 to SharePoint 2010. It contains simple 'Hello World!' message. The project builds successfully, but when I try to deploy it, it gives "Error occurred in deployment step
'Add Solution': Operation is not valid due to the current state of the object"
I have enabled SharePoint Server Publishing Infrastructure in the site collection and site.
I am using Visual Studio 2010 to create page layouts and preview images(http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=71). I was successful in creating page layouts but the image
was not coming properly.
So I decided to change the path of image and deploy the project (Empty SharePoint project). But this time, I am getting an error
Error occurred in deployment step 'Recycle IIS Application Pool': Provider load failure
I am sure there is no relation between changing image path in elements.xml and this error.
I also browsed through and found some related issues, but they are not specific to VS 2010 or SharePoint 2010. And I am apprehensive of implementing them.
1. The logged in user is site collection admin and local admin
2. Windows Management Instrumentation service is running
3. App pool's identity is configured to the local admin & password has not changed.
Thanks in advance