Did you know... fixing SPUrl error

10:58 AM

Open your web.config file. Locate the compilation parameters in system.web and replace them with the block below. Note the new line referring to the SPUrl expression. Also be aware that this only works with MOSS and not WSS, as WSS does not have access to the publishing DLL. For WSS you will need to path to your image/item rather than using the dynamic SPUrl.

<compilation batch= " false " debug= " false " >
<assemblies>
<add assembly= " Microsoft.SharePoint, Version= 12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c "/>
</assemblies>
<expressionBuilders>
<remove expressionPrefix= " Resources "/>
<add expressionPrefix= " Resources " type= " Microsoft.SharePoint.SPResourceExpressionBuilder, Microsoft.SharePoint, Version= 12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c "/>
<add expressionPrefix= " SPHtmlEncodedResources " type= " Microsoft.SharePoint.SPHtmlEncodedResourceExpressionBuilder, Microsoft.SharePoint, Version= 12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c "/>
<add expressionPrefix= " SPSimpleFormattingEncodedResources " type= " Microsoft.SharePoint.SPSimpleFormattingEncodedResourceExpressionBuilder, Microsoft.SharePoint, Version= 12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c "/>
<add expressionPrefix= " SPUrl " type= " Microsoft.SharePoint.Publishing.WebControls.SPUrlExpressionBuilder, Microsoft.SharePoint.Publishing, Version= 12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c "/>
</expressionBuilders>
</compilation>

You Might Also Like

0 comments

Popular Posts

Like us on Facebook