The 'DefaultConnection-Web.config Connection String' argument cannot be null or empty. VS2013

后端 未结 4 2001
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 13:01

When I deploy my project with \"Publish as Azure WebJob\" using Visual Studio 2013/update 4, I get the error in the title.

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-28 13:21

    I have Visual Studio 2015 Update 3 and i was facing the same issue. The solution i found that is working for me is the following:

    1) Open *.pubxml file under properties -> publish profiles.

    2) Look for the Path attribute under PublishDatabaseSettings section:

    
          
            
              
              
                
              
            
          
         
    

    3) Set Path attribute value to the following:

    
          
            
              
              
                
              
            
          
        
    

    4) Delete the existing webjob deployment in Azure Job Collection Scheduler.

    5) Re-Deploy the webjob, Re-run the webjob from the scheduler and it starts working with no issues!

    Hope this helps.

提交回复
热议问题