yorek / AzureFunctionUploadToSQL

Azure function to upload a CSV file to Azure SQL automatically via Azure Blob Store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I met two errors regarding Dapper and SQL connection when running the Function,could you hlep me to trouble shotting?Thanks

teo-ma opened this issue · comments

Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.GetFunctionTargetAsync(Boolean isInvocation) at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 183
2018-11-23T09:54:27.457 [Error] run.csx(12,7): error CS0246: The type or namespace name 'Dapper' could not be found (are you missing a using directive or an assembly reference?)
2018-11-23T09:54:27.527 [Error] run.csx(12,7): error CS0246: The type or namespace name 'Dapper' could not be found (are you missing a using directive or an assembly reference?)
2018-11-23T09:54:27.527 [Error] run.csx(12,7): error CS0246: The type or namespace name 'Dapper' could not be found (are you missing a using directive or an assembly reference?)
2018-11-23T09:54:27.580 [Warning] run.csx(14,45): warning CS0618: 'TraceWriter' is obsolete: 'Will be removed in an upcoming version. Use Microsoft.Extensions.Logging.ILogger instead.'
2018-11-23T09:54:27.648 [Warning] run.csx(14,45): warning CS0618: 'TraceWriter' is obsolete: 'Will be removed in an upcoming version. Use Microsoft.Extensions.Logging.ILogger instead.'
2018-11-23T09:54:27.684 [Error] run.csx(34,14): error CS1061: 'SqlConnection' does not contain a definition for 'Execute' and no extension method 'Execute' accepting a first argument of type 'SqlConnection' could be found (are you missing a using directive or an assembly reference?)
2018-11-23T09:54:27.698 [Warning] run.csx(14,45): warning CS0618: 'TraceWriter' is obsolete: 'Will be removed in an upcoming version. Use Microsoft.Extensions.Logging.ILogger instead.'
2018-11-23T09:54:27.756 [Error] run.csx(34,14): error CS1061: 'SqlConnection' does not contain a definition for 'Execute' and no extension method 'Execute' accepting a first argument of type 'SqlConnection' could be found (are you missing a using directive or an assembly reference?)
2018-11-23T09:54:27.777 [Error] run.csx(34,14): error CS1061: 'SqlConnection' does not contain a definition for 'Execute' and no extension method 'Execute' accepting a first argument of type 'SqlConnection' could be found (are you missing a using directive or an assembly reference?)
2018-11-23T09:54:27.847 [Error] Executed 'Functions.UploadToSQL' (Failed, Id=f6d0d141-cb31-4623-9c64-6c5060075dac)
Script compilation failed.
2018-11-23T09:54:27.857 [Error] Executed 'Functions.UploadToSQL' (Failed, Id=c41ba32a-6cb4-4e74-9d2f-75dc82b07a5a)
Script compilation failed.