Some C# Help Needed

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 224
Благодарностей
685
Баллы
113
If I put the directives in the top of the C# code action it always throws an error. I have run this script in Visual Studio and it works fine. Can't get it to work in Zenno. Just a lowly carpenter here trying to get some records from a website. I have attached the template so one of you Master coders can help a guy out. Really appreciate it. Even the Zenno C# AI bot on telegram tells me this should work. I took the directives out of the top and added them into the GAC references.

Below is the error log.


2025-06-14 18:26:22.6323|WARN|ZennoLab.LogLibrary.InternalError|[PLAY]|Error occurred in module "Compiling code of action id: dbf04074-2f83-427d-b8e7-85f5be8a3597 action group id: 9b5d5061-91b9-4822-be42-f3abeabee51a"
Message: "Error in action "CS1513" "} expected". [Row: 0; Column: 2]"
2025-06-14 18:26:22.6323|WARN|ZennoLab.LogLibrary.InternalError|[PLAY]|Error occurred in module "Compiling code of action id: dbf04074-2f83-427d-b8e7-85f5be8a3597 action group id: 9b5d5061-91b9-4822-be42-f3abeabee51a"
Message: "Error in action "CS1519" "Invalid token 'return' in class, struct, or interface member declaration". [Row: 100; Column: 1]"
2025-06-14 18:26:22.6323|WARN|ZennoLab.LogLibrary.InternalError|[PLAY]|Error occurred in module "Compiling code of action id: dbf04074-2f83-427d-b8e7-85f5be8a3597 action group id: 9b5d5061-91b9-4822-be42-f3abeabee51a"
Message: "Error in action "CS1022" "Type or namespace definition, or end-of-file expected". [Row: 100; Column: 1]"
 

Вложения

Alex733

Client
Регистрация
27.11.2017
Сообщения
344
Благодарностей
245
Баллы
43
Apparently, you have to create common code block. Please downgrade version zennoposter in your template.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)