2012-02-22 70 views
0

我试图让槽从MS Azure的MVC教程,这一个:http://www.windowsazure.com/en-us/develop/net/tutorials/web-app-with-sql-azure/System.ServiceModel.FaultException1本地运行

当我得到这个角色下到第7步“使应用程序可以部署到Windows Azure”的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 inputed配置字符串可能是错的,这一个:

<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet_ToDoListApp;Integrated Security=True;MultipleActiveResultSets=True" 
     providerName="System.Data.SqlClient" /> 

这个位于Web.config文件中,但我不知道这一点。

回答

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中删除了该标记,并禁用了一些调试选项。奇怪的是,当教程没有提到这件事时,项目的默认配置无法构建。