Wenn ich versuche, Azure WebJob zu veröffentlichen ich einen Fehler bekam:Veröffentlichen Azure WebJob
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4283,5): Error : The 'WebJobArchivingExpiredRequest.PixlocateEntities-Web.config Connection String' argument cannot be null or empty.
aber ich habe die folgende Zeile in app.config/connection:
<add name="PixlocateEntities" connectionString="metadata=res://*/DB.csdl|res://*/DB.ssdl|res://*/DB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=tcp:[myserver].database.windows.net,1433;Initial Catalog=PixlocateDev;Persist Security Info=True;User ID=[username];Password=[password]"" providerName="System.Data.EntityClient" />
auch, habe ich 2 Verbindungszeichenfolgen in web.config:
<add name="PixlocateEntities" connectionString="metadata=res://*/DB.csdl|res://*/DB.ssdl|res://*/DB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=tcp:[myserver].database.windows.net,1433;Initial Catalog=PixlocateDev;Persist Security Info=True;User ID=[username];Password=[password]"" providerName="System.Data.EntityClient" />
<add name="WebJobArchivingExpiredRequest.PixlocateEntities" connectionString="metadata=res://*/DB.csdl|res://*/DB.ssdl|res://*/DB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=tcp:[myserver].database.windows.net,1433;Initial Catalog=PixlocateDev;Persist Security Info=True;User ID=[username];Password=[password]"" providerName="System.Data.EntityClient" />
, warum es geschieht und wie sie beheben?
Ich denke, der Fehler spricht über Ihre Datei "Web.config" –
Ich habe die gleiche connectionString in Web.Config –