我正试图通过MS的Azure MVC教程,这一篇:http://www.windowsazure.com/en-us/develop/net/tutorials/web-app-with-sql-azure/
当我在“让您的应用程序准备好部署到WINDOWS AZURE”部分的第7步之后,Visual Studio 2010就会挂起并给出以下日志以便失败:
System.ServiceModel.FaultException`1 was unhandled
Message=This access control list is not in canonical form and therefore cannot be modified.
Source=mscorlib
Action=http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher/fault
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at IConfigurator.Deploy(String roleId, WebAppModel webAppModelPath, String roleRootDirectory, String sitesDestinationRootDirectory, String diagnosticsRootDirectory, String roleGuid, Dictionary`2 globalEnvironment)
at Microsoft.WindowsAzure.Hosts.WaIISHost.Program.Main(String[] args)
InnerException:
任何想知道可能出错的人?我怀疑在第6部分中输入的配置字符串可能是错误的,这一个:
<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet_ToDoListApp;Integrated Security=True;MultipleActiveResultSets=True"
providerName="System.Data.SqlClient" />
这位于Web.config文件中,但我不确定。
答案 0 :(得分:0)
所以我最终想通了这篇文章: http://social.msdn.microsoft.com/Forums/en-US/windowsazuredevelopment/thread/15312fe7-ed22-4903-81a0-41404fabf9f3/ 这篇文章: http://sergecalderara.wordpress.com/2008/11/25/systemservicemodelfaultexception1-was-unhandled-by-user-code/发帖。
基本上,我从项目的Azure包中的ServiceDefinition.csdef中删除了标记,并禁用了一些调试选项。奇怪的是,当教程没有说明这一点时,项目的默认配置无法构建。