Assembly not found in in admin page created by SPSF

Jun 11, 2013 at 11:08 PM
Hi,

I've created a custom admin page from SPSF in VS2012. When I try to access it, I get an error stating an assembly is missing:

Image



How can I resolve this?
Thanks
Coordinator
Jun 12, 2013 at 8:39 AM
Seems like Visual Studio is not replacing the token "$SharePoint.Project.AssemblyFullName$" in the aspx file on build as it should.
The available tokens and how it should work are described here on MSDN

The easy fix is to replace the token with the correct assembly full name in the aspx file (line 1)
You can get the assembly strong name by executing the SPSF recipe SPSF Helpers -> Helpers -> Get AssemblyName and then copy the content of the text box.

But that will require you to update the reference in case you change the assembly version in your AssemblyInfo.cs file.
Jun 12, 2013 at 1:36 PM
Hi matein,

After raising this thread, I tried to enter the details of the assembly manually. This failed due to a few typos along the way! E..g missing 0.


I didn't know of that helper, so I did as you mentioned, and all working now!


Do you know why the token may not get replaced?
Coordinator
Jun 12, 2013 at 10:24 PM
Not yet, but I will have a look when I prepare the next release.
Cheers
Matt