20
Views
4
Comments
[Cloudinary] Compile Error when published with 8.0.1.20
Question
cloudinary
Web icon
Forge asset 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

 



2019-11-12 17-31-26
Justin James
 
MVP
Robbie -

Your Integration Studio settings need to be set correctly (https://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
2012-03-16 12-21-09
João Rosado
Staff
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:
https://www.outsystems.com/forums/discussion/8501/tip-extensions-using-net-3-5-fail-compilation-in-integration-studio/
https://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
2019-11-12 17-31-26
Justin James
 
MVP
Joao -

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

J.Ja
UserImage.jpg
Robbie Nati
Thanks J. 

The steps provided in the link worked.

Cheers.

Robbie


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.