VS2015:执行发布时的例外情况

时间:2016-06-09 08:32:22

标签: visual-studio-2015 web-deployment azure-sdk-.net

我在共享Web服务器(IIS)上发布项目时遇到错误 我最近在VS2015 Community Edition Update 2上安装了Azure SDK for .NET 2.9.1。并且没有使用Azure平台来部署网站 我在Windows 10计算机上重新安装了VS2015和Azure SDK 2.9.1。但错误仍然相同。它不起作用。
enter image description here

2 个答案:

答案 0 :(得分:0)

最有可能发生这种情况;

  • 您的代码正在针对 .NET 4.6 进行编译,其中参考程序集包含[autoCalendar]: DECLARE FIELD DEFINITION Tagged ('$date') FIELDS Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year') ,Dual('Q'&Num(Ceil(Num(Month($1))/3)),Num(Ceil(NUM(Month($1))/3),00)) AS [Quarter] Tagged ('$quarter') ,Dual(Year($1)&'-Q'&Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [YearQuarter] Tagged ('$axis', '$yearquarter') ,Month($1) AS [Month] Tagged ('$month') ,Dual(Year($1)&'-'&Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth') ,Dual('W'&Num(Week($1),00), Num(Week($1),00)) AS [Week] Tagged ('$weeknumber') ,Date(Floor($1)) AS [Date] Tagged ('$date') /*User added date components*/ ,Dual(Year($1), if(Year($1)=Year(today()),YearStart($1),null)) AS [ThisYear] Tagged ('$axis', '$thisyear') ,Dual(Year($1)&'-Q'&Num(Ceil(Num(Month($1))/3)), if(Year($1)=Year(today()),QuarterStart($1),null)) AS [ThisYearQuarter] Tagged ('$axis', '$thisyearquarter') ,Dual(Year($1)&'-'&Month($1), if(Year($1)=Year(today()), monthstart($1),null)) AS [ThisYearMonth] Tagged ('$axis', '$thisyearmonth') ,Dual(Year($1), if(Year($1)=(Year(today())-1),YearStart($1),null)) AS [LastYear] Tagged ('$axis', '$lastyear') ,Dual(Year($1)&'-Q'&Num(Ceil(Num(Month($1))/3)), if(Year($1)=(Year(today())-1),QuarterStart($1),null)) AS [LastYearQuarter] Tagged ('$axis', '$lastyearquarter') ,Dual(Year($1)&'-'&Month($1), if(Year($1)=(Year(today())-1), monthstart($1),null)) AS [LastYearMonth] Tagged ('$axis', '$lastyearmonth') ; DERIVE FIELDS FROM FIELDS [StartDate] USING [autoCalendar] ;
  • Roslyn 编译器发现AzureAD.Contacts.IVsAzureADService.ProjectUserAzureAD可用并使用它。
  • 已编译的应用尝试在 .NET 4.5 上运行,其中AzureAD.Contacts.IVsAzureADService.ProjectUserAzureAD 存在。

答案 1 :(得分:0)

似乎它也与Windows 10更新问题有关。由于我没有找到任何解决上述错误的解决方案,我决定重置OS Windows 10 Pro。然后我安装了VS 2015更新3.它现在只能运行。