Lately the Preview function has been throwing the following error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1703: An assembly with the same identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.
Last time I hit that error there were some caching issues going on on my development machine, deleting all bin and obj folders in the project resolved the issues for me. Also make sure System.Runtime is not referenced more that ones in any .config files in your solution and that you don't have duplicate namespace imports in any custom classes.
I personally have not experienced any problems with the preview.
Thanks. The odd thing is the exact same Umbraco instance runs fine on my local box, but throws this error in preview on the server. There are no custom references in any of the .config file, as we are running a clean Umbraco instance.
CS1703 with Preview
Lately the Preview function has been throwing the following error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1703: An assembly with the same identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.
Thanks,
Brad
Anyone? Has anyone else seen this problem?
Last time I hit that error there were some caching issues going on on my development machine, deleting all bin and obj folders in the project resolved the issues for me. Also make sure System.Runtime is not referenced more that ones in any .config files in your solution and that you don't have duplicate namespace imports in any custom classes.
I personally have not experienced any problems with the preview.
Thanks. The odd thing is the exact same Umbraco instance runs fine on my local box, but throws this error in preview on the server. There are no custom references in any of the .config file, as we are running a clean Umbraco instance.
Hi Brad,
Have you got any solution related to same issue as I am also facing the preview issue for unpublished content when deployed on the server.
is working on a reply...