Microsoft KB Archive/938218

= Error message when you try to use a feature in SharePoint Server 2007 to open an InfoPath form in a Web browser: &quot;The URL /FormServerTemplates/InfoPath.xsn is an unsupported relative URL&quot; =

Article ID: 938218

Article Last Modified on 7/17/2007

-

APPLIES TO


 * Microsoft Office SharePoint Server 2007

-



SYMPTOMS
In Microsoft Office SharePoint Server 2007, you create a feature that opens a Microsoft Office InfoPath form in a Web browser through InfoPath Forms Services. In the Elements.xml file of the feature, you use a URL token other than the ~sitecollection URL token in the URL parameter of the URLAction tag. For example, you use the ~site URL token. However, when you try to use the feature, you receive an error message that resembles the following:

The URL /FormServerTemplates/InfoPath.xsn is an unsupported relative URL. Use an absolute URL or prefix with '~sitecollection', for a site-collection-relative URL.



CAUSE
This behavior occurs if you use a URL token other than the ~sitecollection URL token. Not all URL tokens work with InfoPath forms.



RESOLUTION
Use the ~sitecollection URL token when you work with InfoPath forms and with InfoPath features in SharePoint Server 2007.



MORE INFORMATION
For more information about features, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms460318.aspx

For more information about URL tokens, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms473643.aspx

Additional query words: moss moss2007 XML

Keywords: kberrmsg kbtshoot kbprb kbexpertiseinter KB938218

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.