Cannot deploy a sharepoint site definition - SoapServerException

I've installed the Sharepoint Extensions for Visual Studio 2005 and created a Team Site Definition Project.

When I try to deploy the site, I get the SoapServerException shown below. What could be wrong

------ Build started: Project: Team Site Definition1, Configuration: Debug Any CPU ------
Team Site Definition1 -> C:\Documents and Settings\murilo.rodrigues\My Documents\Visual Studio 2005\Projects\Team Site Definition1\Team Site Definition1\bin\Debug\Team Site Definition1.dll
------ Deploy started: Project: Team Site Definition1, Configuration: Debug Any CPU ------
System.Web.Services.Protocols.SoapException
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.SharePoint.Tools.SharePointSoapProxies.Sites.GetSiteTemplates(UInt32 LCID, Template[]& TemplateList)
at Microsoft.SharePoint.Tools.IO.SiteDefinitionCollectionCreator.UpdateSolutionElement(ISiteDefinition siteDefinition)
at Microsoft.SharePoint.Tools.IO.SiteDefinitionCollectionCreator.Create(SdtProject project, String configuration, ISolutionElement parent, Assembly assembly)
at Microsoft.SharePoint.Tools.IO.SiteDefinitionCollectionCreator.CreateAsSiteDefinitions(SdtProject project, String configuration, ISolutionElement parent, Assembly assembly)
at Microsoft.SharePoint.Tools.IO.SolutionCreator.Create(SdtProject project, String configuration, ISolutionElement parent, Assembly assembly)
at Microsoft.SharePoint.Tools.IO.BaseSolutionElementCreator.Create(SdtProject project)
at Microsoft.SharePoint.Tools.SdtProject.get_Solution()
at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.Deploy()
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========



Answer this question

Cannot deploy a sharepoint site definition - SoapServerException

  • Jules Bonnot

    Hi there,

    I’m having the same problem and I’ve spent almost a week trying to solve it, so I was wondering if you ever get to solve this issue.

    I’ve seen the solution Generator work perfectly in various demos, always in english enviroments, so I’m starting to think the error has something to do with the language of the Operating System or Sharepoint. In my case I’m using spanish language and I think you were using portuguese…

    I hope to find an answer soon J



  • billqu

    hi,

    having the same problem when trying to deply a a solution generated by the "sharepoint solution generator"

    ------ Build started: Project: TesteSitevs2005, Configuration: Debug Any CPU ------

    TesteSitevs2005 -> C:\Documents and Settings\Administrador\Meus documentos\Visual Studio 2005\Projects\TesteSitevs2005\TesteSitevs2005\bin\Debug\TesteSitevs2005.dll

    ------ Deploy started: Project: TesteSitevs2005, Configuration: Debug Any CPU ------

    ------ Generate TesteSitevs2005.wsp file and setup batch file------

    Creating solution ...

    System.ArgumentException

    Illegal characters in path.

    at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)

    at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)

    at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)

    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

    at System.IO.File.Open(String path, FileMode mode, FileAccess access)

    at Microsoft.SharePoint.Tools.Utilities.CabCreateProcessor.OpenFile(String pszFile, Int32 oflag, Int32 pmode, Int32& err, IntPtr pv)

    at Microsoft.SharePoint.Tools.Utilities.SafeNativeMethods.Create(IntPtr perf, PFNFILEPLACED pfnfcifp, PFNALLOCMEM pfna, PFNFREEMEM pfnf, PFNOPENFILE pfnopen, PFNREADFILE pfnread, PFNWRITEFILE pfnwrite, PFNCLOSEFILE pfnclose, PFNSEEKFILE pfnseek, PFNDELETEFILE pfndelete, PFNGETTEMPFILE pfnfcigtf, CabInfo pccab, IntPtr pv)

    at Microsoft.SharePoint.Tools.Utilities.CabCreateProcessor.get_FileCompressioinHandle()

    at Microsoft.SharePoint.Tools.Utilities.CabCreateProcessor.Dispose(Boolean disposing)

    at Microsoft.SharePoint.Tools.Utilities.CabCreateProcessor.Dispose()

    at Microsoft.SharePoint.Tools.Utilities.CabCreator.CreateCabinet(String sourceDirPath, String cabFilePath)

    at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.Deploy()

    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

    can smbdy help

    os: windows server 2003 portuguese language

    thx,

    alfredo simoes

    alfredo.simoes@advantis.pt


  • vtortola

    Hi there,

    I'm getting a similar error when trying to deploy a basic Team Site Definition, created using the Solution Generator, back to the MOSS 2007 server.

    I receive the following error:

    System.Web.Services.Protocols.SoapException
    Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

    Did you manage to resolve your issue

    Thanks

    Matt


  • markovuksanovic

    I've not managed to find out what the problem was, but have since rebuilt the virtual machine that was running MOSS 2007 and it seems to work as expected now.

    Also, this link might help you:

    http://blogs.msdn.com/edhild/archive/2007/01/25/the-unwritten-work-arounds-for-using-the-sharepoint-solution-generator.aspx

    Matt


  • Cannot deploy a sharepoint site definition - SoapServerException