Everything around the XSLT extension looks to be set up fine, and I am not sure why the error would be happening.
Can anyone help please?
umbracoMacro InnerException
Could not load type 'Project.Data.Context.ProjectDataContext' from assembly 'Project.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Could not load type 'Project.Data.Context.ProjectDataContext' from assembly 'Project.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at Project.Library.XsltExtension.LoginByEmail(String email, String password)
Not sure off the top of my head, but some things to check:
- Does Project.Data.dll exist in /bin/? - Does the class Project.Data.Context.ProjectDataContext exist? (if you don't have the source you could always use ILSpy or similar to check) - Does the config entry in /config/xsltExtensions.config look correct?
Thanks for the reply Tom, wen through and triple checked everything and it all seems good. This works fine on the server (this is a local dev env.) so not sure where the issue is coming in. I am normally not bad at figuring this sort of thing out but this one has baffled me.
Any other ideas would be really helpful?
- Does Project.Data.dll exist in /bin/? Check - Does the class Project.Data.Context.ProjectDataContext exist? (if you don't have the source you could always use ILSpy or similar to check) Check - Does the config entry in /config/xsltExtensions.config look correct? Check
Hmm, sorry, running out of ideas then. So it works fine on the server? Did something change locally (ie .NET version in VS upgraded) - maybe try pulling down the Project binaries from the server?
Have you tried debugging through VS also to see if you get any additional info?
Could not load type error stopping XSLT extension from running
I am working on an Umbraco v 4.0.4.2 project and I am getting the following error shown below.
The code that causes this lives in an XSLT file and looks like:
<xsl:when test="Project:LoginByEmail($email,$password)/result='1'">
Everything around the XSLT extension looks to be set up fine, and I am not sure why the error would be happening.
Can anyone help please?
Could not load type 'Project.Data.Context.ProjectDataContext' from assembly 'Project.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at Project.Library.XsltExtension.LoginByEmail(String email, String password)
Not sure off the top of my head, but some things to check:
- Does Project.Data.dll exist in /bin/?
- Does the class Project.Data.Context.ProjectDataContext exist? (if you don't have the source you could always use ILSpy or similar to check)
- Does the config entry in /config/xsltExtensions.config look correct?
Thanks for the reply Tom, wen through and triple checked everything and it all seems good. This works fine on the server (this is a local dev env.) so not sure where the issue is coming in. I am normally not bad at figuring this sort of thing out but this one has baffled me.
Any other ideas would be really helpful?
- Does Project.Data.dll exist in /bin/? Check
- Does the class Project.Data.Context.ProjectDataContext exist? (if you don't have the source you could always use ILSpy or similar to check) Check
- Does the config entry in /config/xsltExtensions.config look correct? Check
Hmm, sorry, running out of ideas then. So it works fine on the server? Did something change locally (ie .NET version in VS upgraded) - maybe try pulling down the Project binaries from the server?
Have you tried debugging through VS also to see if you get any additional info?
Are any other XSLT Extensions affected?
is working on a reply...