I'm trying to run the code within the on premise Bot Emulator, as per instructions here:
https://docs.botframework.com/en-us/azure-bot-service/manage/debug/
Even when properly configured on LUIS App ID and Azure Luis Key in the code as instructed, I got lot of interpretation errors as per below.
Trying to run within the Azure Bot service directly, it get into an error that I was hoping to fix locally, but errors are way too much, possibly it's just old code?
=[ERRORS]=====
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(27,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task<List>>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(29,20): error CS0029: Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Threading.Tasks.Task<System.Collections.Generic.List>'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(48,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(50,20): error CS0029: Cannot implicitly convert type 'GeoLocation' to 'System.Threading.Tasks.Task'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(69,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(71,20): error CS0029: Cannot implicitly convert type 'GeoLocation' to 'System.Threading.Tasks.Task'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(50,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(52,20): error CS0029: Cannot implicitly convert type 'User' to 'System.Threading.Tasks.Task'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(14,19): warning CS0649: Field 'BikeData.serialnumber' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(21,19): warning CS0649: Field 'User.birthDate' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(22,19): warning CS0649: Field 'User.firstName' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(19,19): warning CS0649: Field 'User.userId' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(18,19): warning CS0649: Field 'User.id' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\GeoLocation.csx(8,19): warning CS0649: Field 'GeoLocation.latitude' is never assigned to, and will always have its default value 0
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(23,19): warning CS0649: Field 'User.lastName' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\GeoLocation.csx(10,19): warning CS0649: Field 'GeoLocation.name' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(20,19): warning CS0649: Field 'User.gender' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\GeoLocation.csx(9,19): warning CS0649: Field 'GeoLocation.longitude' is never assigned to, and will always have its default value 0
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(13,19): warning CS0649: Field 'BikeData.bikeid' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(24,19): warning CS0649: Field 'User.skype' is never assigned to, and will always have its default value null
Function compilation error
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(27,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task<List>>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(29,20): error CS0029: Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Threading.Tasks.Task<System.Collections.Generic.List>'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(48,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(50,20): error CS0029: Cannot implicitly convert type 'GeoLocation' to 'System.Threading.Tasks.Task'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(69,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(71,20): error CS0029: Cannot implicitly convert type 'GeoLocation' to 'System.Threading.Tasks.Task'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(50,37): error CS4032: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<Task>'.
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(52,20): error CS0029: Cannot implicitly convert type 'User' to 'System.Threading.Tasks.Task'
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(14,19): warning CS0649: Field 'BikeData.serialnumber' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(21,19): warning CS0649: Field 'User.birthDate' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(22,19): warning CS0649: Field 'User.firstName' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(19,19): warning CS0649: Field 'User.userId' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(18,19): warning CS0649: Field 'User.id' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\GeoLocation.csx(8,19): warning CS0649: Field 'GeoLocation.latitude' is never assigned to, and will always have its default value 0
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(23,19): warning CS0649: Field 'User.lastName' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\GeoLocation.csx(10,19): warning CS0649: Field 'GeoLocation.name' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(20,19): warning CS0649: Field 'User.gender' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\GeoLocation.csx(9,19): warning CS0649: Field 'GeoLocation.longitude' is never assigned to, and will always have its default value 0
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\Bike.csx(13,19): warning CS0649: Field 'BikeData.bikeid' is never assigned to, and will always have its default value null
C:\Projects\Git\Repos\BikeSharing360-AzureBot\messages\Backend\User.csx(24,19): warning CS0649: Field 'User.skype' is never assigned to, and will always have its default value null