[Cloudinary] Compile Error when published with 8.0.1.20

[Cloudinary] Compile Error when published with 8.0.1.20

  
Forge Component
(2)
Published on 2013-10-15 by Justin James
2 votes
Published on 2013-10-15 by Justin James
Hi JJ,

I have just updated the platform server to v8.0.1.20.
However, I am receiving errors with the Cloudinary extension.

This is brief of the error message:

.NET Compilation.
 
Cloudinary.cs(20,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(22,20): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(29,22): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(31,52): error CS1502: The best overloaded method match for 'System.Collections.IDictionary.this[object]' has some invalid arguments
Cloudinary.cs(31,59): error CS1503: Argument '1': cannot convert from 'var' to 'object'
Cloudinary.cs(34,13): error CS1502: The best overloaded method match for 'OutSystems.NssCloudinary.CssCloudinary.LogError(System.Net.WebException)' has some invalid arguments
Cloudinary.cs(34,22): error CS1503: Argument '1': cannot convert from 'var' to 'System.Net.WebException'
Cloudinary.cs(55,22): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(57,21): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(61,72): error CS1502: The best overloaded method match for 'string.Substring(int, int)' has some invalid arguments
Cloudinary.cs(61,90): error CS1503: Argument '1': cannot convert from 'var' to 'int'
Cloudinary.cs(61,107): error CS1503: Argument '2': cannot convert from 'var' to 'int'
Cloudinary.cs(75,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(76,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(76,30): error CS1502: The best overloaded method match for 'CloudinaryDotNet.Cloudinary.Cloudinary(string)' has some invalid arguments
Cloudinary.cs(76,45): error CS1503: Argument '1': cannot convert from 'var' to 'string'
Cloudinary.cs(91,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(92,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(92,30): error CS1502: The best overloaded method match for 'CloudinaryDotNet.Cloudinary.Cloudinary(string)' has some invalid arguments
Cloudinary.cs(92,45): error CS1503: Argument '1': cannot convert from 'var' to 'string'
Cloudinary.cs(93,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(96,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(101,17): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(114,25): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(119,17): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
Cloudinary.cs(151,56): error CS1002: ; expected
Cloudinary.cs(153,65): error CS1002: ; expected
Cloudinary.cs(173,63): error CS1002: ; expected
Cloudinary.cs(175,77): error CS1002: ; expected
Cloudinary.cs(175,77): error CS1525: Invalid expression term ','
Cloudinary.cs(175,78): error CS1002: ; expected
Cloudinary.cs(176,42): error CS1002: ; expected
Cloudinary.cs(176,42): error CS1525: Invalid expression term ','
Cloudinary.cs(176,43): error CS1002: ; expected
Cloudinary.cs(177,44): error CS1002: ; expected
Cloudinary.cs(197,61): error CS1002: ; expected
Cloudinary.cs(199,77): error CS1002: ; expected
Cloudinary.cs(199,77): error CS1525: Invalid expression term ','
Cloudinary.cs(199,78): error CS1002: ; expected
Cloudinary.cs(200,42): error CS1002: ; expected
Cloudinary.cs(200,42): error CS1525: Invalid expression term ','
Cloudinary.cs(200,43): error CS1002: ; expected
Cloudinary.cs(201,44): error CS1002: ; expected


Any ideas??

Thanks Mate.

Robbie

 



Robbie -

Your Integration Studio settings need to be set correctly (http://www.outsystems.com/forums/discussion/6387/changing-net-compiler-in-service-center/). Do this on your local machine and re-publish to the server from Integration Studio.

J.Ja
Hi Justin,

Actually you can permanently fix the problem in your extension.
Edit the Cloudinary.csproj and change the ToolsVersion="2.0" to ToolsVersion="4.0".

(or 3.5 if you don't want the warning it will give ..but I recommend 4.0 since some visual studio versions have severe bugs when it's set to 3.5)

Many posts explaining it:
http://www.outsystems.com/forums/discussion/8501/tip-extensions-using-net-3-5-fail-compilation-in-integration-studio/
http://www.outsystems.com/forums/discussion/8023/integrate-openid-in-outsystems-problem/#Post34693



By the way, soon on Release 9, Integration Studio will take care of all these common issues automatically.
:)


Regards,
João Rosado
Joao -

I've tried that in the past and it NEVER works for me. Doing it through Integration Studio always works.

J.Ja
Thanks J. 

The steps provided in the link worked.

Cheers.

Robbie