Deploy on SharePoint 2013

May 28, 2013 at 12:40 PM
Hi,

I'm trying to deploy the lookup with picker to SharePoint 2013, on two different server, but it doesn't work.
On the first env, the deploy goes ok, and the "Check Names" seems to be ok, but if I try to "Browse" an element, then I see this error
"Microsoft.SharePoint.SPInvalidPropertyException: Only PickerDialog types can be used with the dialog. The type should be configured as a safecontrol in this site. at Microsoft.SharePoint.ApplicationPages.Picker.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 64d01f9c-71ee-b01f-75b3-70f50a669b4c".
I added the following to the web.config, but the error still appear:
<SafeControl Assembly="iLoveSharePoint.Fields.LookupFieldWithPicker, Version=14.0.0.0, Culture=neutral, PublicKeyToken=3443098eba475529" Namespace="iLoveSharePoint.Fields" TypeName="*" Safe="True" />.

On the second env, instead, when I try to "Browse", then I get this error:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks).

Please, can you help me?
Thanks a lot.
Jul 3, 2013 at 6:42 PM
Have you resolved this error? I am receiving the same error.
Jul 5, 2013 at 9:55 AM
Hi Aaron,

unfortunately I haven't resolved yet! :(
Jul 5, 2013 at 11:20 AM
Have you found an alternative product? A workaround?
Jul 8, 2013 at 1:14 PM
I have looked for a workaround for a lot, but I found nothing.
I have tried downloading the source code and checking for the error, but I haven't found any solution.
In this moment I am working on another project and I hope that, in the meanwhile, someone can help me, (us).

I am sorry.

Regards,
Gennaro
Oct 10, 2013 at 1:14 PM
Same here:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.  File name: 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'    
Oct 10, 2013 at 1:30 PM
Hi

All you need is to download the sourcecode, upgrade it to a SP2013 project with visual studio and create a new wsp. That did the trick for us.
I think the assembly is replaced with the version for 2013 (Version 15) and thats all.

best regards
Daniel
Oct 11, 2013 at 9:42 AM
It works now for me, thank you danielmeurer!

I've just opened the solution in VS2012 and it has been upgraded automatically. I've only modified .csproj-file by adding:
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>

That's it!

Image
Oct 29, 2013 at 11:44 AM
Edited Oct 29, 2013 at 2:27 PM
Hi,
I upgraded the solution with VS2013 successfully, but if i choose the picker in the "Create Column" page, i get an error.

Can someone upload a working .wsp for SP2013 or any ideas how I get it to work with Visual Studio 2013?

Thanks in advance.

UPDATE: It works now!
Nov 18, 2013 at 5:13 PM
Hi All,

I have modified the .csproj file and now I can deploy the controller and I can use it.

But there is still a problem: in the AllItems.aspx view there is an error when rendering the value of the field.
I mean, I cannot see the clickable value, but I see the HTML code, for example:

<a onclick="OpenPopUpPage('http://sp2013/sites/controllofornitoriFINAL/_layouts/15/listform.aspx?PageType=4&ListId=25394913-1899-449b-8947-3ef7fdfa5cd1&ID=541&RootFolder=*', RefreshPage); return false;" href="http://sp2013/sites/controllofornitoriFINAL/_layouts/15/listform.aspx?PageType=4&ListId=25394913-1899-449b-8947-3ef7fdfa5cd1&ID=541&RootFolder=*">VITAKRAFT ITALIA S.P.A.-30970</a>

Any idea?

Thanks in advance.
Nov 19, 2013 at 7:49 AM
Hey geborx,

take a look at Discussion Lookup Sharepoint 2013.
You should edit the page, edit the list web part and add there a link to the .xsl-file.

Regards,
Alex
Marked as answer by geborx on 11/19/2013 at 1:41 AM
Nov 19, 2013 at 9:00 AM
Hi Alex,

thanks for your response.
The problem is in the default view of the list, (AllItems.aspx) and I don't know how to modify the page to add the xsl file.

I tried to search around and I have found this discussion where it is explained a similar problem with a custom field.

So I have edited the AllItems.aspx page with SharePoint Designer and I have modified the attribute ServerRender of the WebPartPages:XsltListViewWebPart setting it to "true" and now the rendering of the controller seems to work fine.

In your opinion, is it correct?

Best regards and thank you again,
Gennaro.
Nov 19, 2013 at 9:14 AM
Hey Gennaro,

you can add xsl-file to list web part like this:

Image

But your modification seems to work too.

Best Regards,
Alex
Marked as answer by geborx on 11/19/2013 at 1:40 AM
Nov 19, 2013 at 9:40 AM
Alex,

I tried and it works perfectly!!

Thank you very much: you have been very kind and helpful!

All the bests,
Gennaro.
Jan 30, 2014 at 8:10 AM
For "Execute Powershell script" action you have to modify web.config :

_<trust level="Full" originUrl="" legacyCasModel="true" /> and change legacyCasModel to false. The problem lies in the incompatibility of powershell 3.0 with sharepoint cas 3.5 (code access security). Important: no idea which side effects could be caused by this change.
_
I get this information from a discussion in this site, but I don't remember where :)
Feb 14, 2014 at 4:24 PM
Hi all, could some one upload and updated version of "Sandboxed SharePoint Workflow Actions" for 2013, I don't currently have a configured VS2013 Sharepoint 2013 environment to upgrade the package.