2017-04-03 87 views
0

我天青功能(触发 - 斑点,输出 - bindung到MS SQL DB数据)抛出错误天青功能数据绑定错误

2017-04-03T17:17:33.475 Exception while executing function: Functions.BlobToDB. System.Net.Http: Response status code does not indicate success: 404 (Execution Failure inner exception: The specified item 'TestEnt' is not found.)

我在我的数据库中有TestEnt,连接字符串被验证了几次。

功能代码:

public static async Task Run(Stream myBlob, string name, IAsyncCollector<TestEnt> outputData, TraceWriter log) 
{ 
     var R = new TestEnt(); 
     R.TestEntId = Guid.NewGuid(); 
     R.TestEntName = "Test"; 
     await outputData.AddAsync(R); 
     log.Info($"ok!");   
} 

public class TestEnt 
{ 
    public Guid TestEntId { get; set; } 

    public string TestEntName { get; set; } 

} 

感谢您的帮助!

+1

发表您的绑定,请 – Mikhail

回答

0

我想我找到了解决办法 - 你需要填写数据库服务器名与网络的路由(dbservername.database.windows.net不仅DBSERVERNAME)

enter image description here