Deploy a solution package from command prompt

Shiraz Bhaiji
  • Deploy a solution package from command prompt Shiraz Bhaiji

    We are trying to automate the solution deployment to a test environment. We are using vsewss 1.3.

    To do this we are trying to run the following command from the visual studio command prompt:

    devenv xxx.sln /deploy Release /package 

    When we do this we get the following error:

    specified method is not supported 

    And a message that the deployment has been skipped.

    Anyone have an idea what the problem could be, or how to fix it.


    I have tried a few things:

    • Gave "Everyone" group modify access to the area where the solution files are
    • Checked out solution and projects files so they are not readonly
    • Closed VS to avoid read/write locks
    • Have managed to get a more detailed error message:

      System.NotImplementedException: The method or operation is not implemented. at EnvDTE.Project.get_CodeModel() at Microsoft.SharePoint.Tools.Reflection.TypeFinder.GetTypesAsCodeElement(Project project, CodeElement parent, String targetTypeFullName) at Microsoft.SharePoint.Tools.Reflection.TypeFinder.Find(Project project, String targetTypeFullName) at Microsoft.SharePoint.Tools.SharePointSolutions.SourceFeatureElementDirector.FindClasses(Project project) at Microsoft.SharePoint.Tools.SharePointSolutions.SourceFeatureElementDirector.GetClassMap(Project project) at Microsoft.SharePoint.Tools.SharePointSolutions.SourceFeatureElementDirector.Constract() at Microsoft.SharePoint.Tools.SharePointSolutions.SourceFeatureDirector.GetFeatureElement(ICollection`1 directors) at Microsoft.SharePoint.Tools.SharePointSolutions.SourceFeatureDirector.Constract() at Microsoft.SharePoint.Tools.SharePointSolutions.SourceSolutionDirector.ConstractElements() at Microsoft.SharePoint.Tools.SharePointSolutions.SourceSolutionDirector.Constract() at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionCreator.CreateCore(ISPProject project, IDirectorCreator creator) at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionCreator.Create(ISPProject project) at Microsoft.SharePoint.Tools.Forms.SPToolWindow.CreateSolutions()

  • Does the path to your .sln file have any spaces in it by any chance? If so, ensure you have it wrapped in quotes like

    "c:\my folder with paces\solution.wsp"

  • We have found that we do not get this problem when we create a new project.

    These projects were originally created with an earlier version of VseWss. There appears to be something in the project files that ties it to a specific version of VseWss.

Related questions and answers
  • with claims based authentication? Update The real issue is Multiple Membership Providers not really working in a lot of situations. We have to following issues: legacy web services do not fully work. odata... additional information. The following sample code reproduces the problem: var service = new SiteData(); service.Url = url + "_vti_bin/sitedata.asmx"; string web;string site;string bucket;string list;string item; service.GetURLSegments(url + "Docs/SomeDocumentLibrary/Test/testafterupdate/2007-00152-01-E.doc", out web, out bucket, out list, out item); The point is to get the listId from the url

  • I'm trying to create a site collection via stsadm. I do: STSADM -o createsite ` -url "<url>" ` -title "<title>" ` -description "<desc>" ` -lcid 1033..., at the Powershell prompt I get only the following output: User cannot be found. If I look into the ULS logs, I see the following related logs (truncated a bit for clarity): Creating site http://somehost/sites/test in content database WSS_Content_768e4db1bf23493085857cd381b2f72e Error when trying to get trusted forests and domains. Exception message: Current security context is not associated

  • I’m trying to write a Http Handler to generate rss xml (based on the CKS code). I want to be able to get the list/library that the end point of the url is referring to. For example if my Url is: I want to be able to get the pages library of the 'press releases' web. On a side note if I'm going about this in the wrong way please let me know... = SPContext.Current.Web.GetListFromUrl(context.Request.Path); } catch (Exception ex) { context.Response.Write("Error getting list from spcontext.current.web.GetListFromUrl: " + ex.Message

  • I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working correctly for the Content Editor Web Part (based on sample code), however when I replace the Content Editor Web Part definition with one for my own web part I get the following error...()); } UPDATE: Based on feedback from Wictor, I tried the following: <?xml version="1.0" encoding="utf-8"?> <webParts> <webPart xmlns=""> <

  • appropriately. I can see the status change on the Solution Management page from deploying to deployed. There are no errors in the trace logs or event viewers. However, the 12 hive only contains files..., Deploy Solution - left with the same files as I started Run ProcessMon while upgrading the solution - I could see where the cab was unpacked in the temp directory, then promptly deleted. Finally, we were lucky enough to still have the soon to be decommisioned server that previously ran Central Admin (Server1). So, I added the server to the farm. Removed the Central Admin from the new Server

  • I have been developing on SP 2010 for a while now. Mostly I have been working with the Client Object Model. Though I am at a point where I need to read out the UserProfiles from inside SharePoint. I see no other way to do this than to make a custom WCFService and deploy it to SharePoint. So that is what I did. I made an "Empty SharePoint Project" and added the mapped "ISAPI" folder. The code from the WCF Service: public string GetUserByName(string _name) { string server = "http://esddev72"; UserProfileManager profileManager; string s = ""; string u

  • I want to create a new SharePoint 2010 farm using PowerShell. I use the following command: New-SPConfigurationDatabase When issuing this command (and providing the needed parameters) I get the following error: New-SPConfigurationDatabase : This SharePoint farm currently has pending upgrades. The cmdlet New-SPConfigurationDatabase cannot be executed until the upgrade is completed. When running the "SharePoint 2010 Products Configuration Wizard" I'm able to create a farm. I have a freshly installed Windows Server 2008 R2 with SQL 2008 R2 on the same box (it's a demo box

  • ) Board description (editable) My questions: What tool is most appropriate for making the forms? Infopath? SPD? VS2010? How do I handle rights to make sure only the board can access the board edit form? What kind of workflow do I use? When do I start the workflow(s)? What do I use to develop the workflow(s)? How do I handle rights when showing the listview with all requests? How can I build...I'm a starting sharepoint developer asked to implement the following scenario in sharepoint 2010. We're a bit lost on the best approach to get started.. I'm really struggling to find the best

  • to them by SharePoint as read-only (so they will get the above error message). However, often they are demonstrably the only user to have accessed the document - in fact, sometimes this will happen...Scenario: We have an internal application that ties Excel spreadsheets stored in a SharePoint doc lib with specific Opportunities in CRM. The user clicks on a button in the Opportunity and a Web... and then return and get the above message. Waiting for a while can help, but it doesn't seem like even SharePoint's inactivity timeout always does the trick. And here's the strangest part - while

Data information