Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a package solution as,

<Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="id" SharePointProductVersion="14.0">
  <Assemblies>
    <Assembly Location="myaSSEMBLEY.dll" DeploymentTarget="GlobalAssemblyCache" />
  </Assemblies>
  <TemplateFiles>
    <TemplateFile Location="Layouts\myWebServices\ssServices.asmx" />
    <TemplateFile Location="Layouts\myWebServices\ssServices.asmx" />
  </TemplateFiles>
</Solution>

but it's deploying dlls to gac but not deploying my web services to layout's folder, what could be wrong ???

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Try to use <RootFiles>, <RootFile> tags

For example,

<Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="id" SharePointProductVersion="14.0">
  <Assemblies>
    <Assembly Location="myaSSEMBLEY.dll" DeploymentTarget="GlobalAssemblyCache" />
  </Assemblies>
  <RootFiles>
    <RootFile Location="Layouts\myWebServices\ssServices.asmx" />
    <RootFile Location="Layouts\myWebServices\ssServices.asmx" />
  </RootFiles>
</Solution>
share|improve this answer
    
thanks but i don't want to make manual changes –  Customized Name Apr 19 '13 at 9:21
    
Also, location is relative from the 14 hive folder and you need to use url: Location="TEMPLATE\LAYOUTS\myWebServices\ssServices.asmx". Maybe it will help. –  Andrew Apr 19 '13 at 9:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.