Hi,

I know we have probably been over this before, but I am having a similar problem to unspokenchaos in January. I am using vb, but I getting the same error...

XmlPackage Exception: Exception=Last Trace Point=[]. Cannot find the script or external object that implements prefix 'urn:myFunctions'.

Firstly I assume this should work with vb? (I am not a web programmer by trade).

Secondly, it is probably something really dumb, I have been banging my head against a brick wall for a few hours and a second pair of eyes always helps so...

Thirdly, I am on 7.1.0.0, I assume this will not be a problem?

The end game is to get magiczoom working so I am planning to override LookUpProductImage, however at the moment I just want to the basics going...

So new namespace file:

Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Imports System.IO
Imports System.Resources
Imports System.Globalization
Imports System.Reflection
Imports System.Data
Imports System.Configuration
Imports System.Drawing
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports System.Threading
Imports System.Text
Imports System.Text.RegularExpressions
Imports AspDotNetStorefrontCommon

'<summary>
'Summary description for MyCode
'</summary>

Namespace mynamespace

Public Class Slug

Public Function getmylistbox() As String
Return "<select id='Select1'> <option>hello</option></select> "
End Function


End Class


End Namespace


My webconfig update:

<add name="myCustomFunctions" type="mynamespace.slug" namespace="urn:myFunctions" />

My xml package:

<?xml version="1.0" encoding="UTF-8" ?>
<!-- ################################################## ################################################## ## -->
<!-- Copyright AspDotNetStorefront.com, 1995-2006. All Rights Reserved. -->
<!-- http://www.aspdotnetstorefront.com -->
<!-- For details on this license please visit the product homepage at the URL above. -->
<!-- THE ABOVE NOTICE MUST REMAIN INTACT. -->
<!-- $Header: /v6.1/Web/XmlPackages/test.xml.config 1 12/30/05 2:33p Administrator $ -->
<!-- ################################################## ################################################## ## -->
<package version="2.1" displayname="Variants In Right Bar" allowengine="true" debug="true" includeentityhelper="true">
<PackageTransform>
<xsl:stylesheet version="1.0" xmlns:mynamespace="urn:mynamespace" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:myFunctions="urn:myFunctions" xmlns:aspdnsf="urn:aspdnsf" exclude-result-prefixes="aspdnsf">
<xslutput method="html" omit-xml-declaration="yes" />
<xsl:template match="*">
I AM HEAR!!!!

<xsl:value-of select="myFunctions:getmylistbox()" disable-output-escaping="yes" />

aspdnsf:GetMLValue(Name)
</xsl:template>
</xsl:stylesheet>
</PackageTransform>
</package>

and then dropped into engine.aspx:

<aspdnsf:XmlPackage id="Package1" PackageName="test.xml.config" runat="server" EnforceDisclaimer="true" EnforcePassword="true" EnforceSubscription="true" AllowSEPropogation="true" ReplaceTokens="true"/>


I have basically copied the original guy in this post apart from the conversion to vb...

Any advice would be great.