2012-02-22 68 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中刪除了該標記,並禁用了一些調試選項。奇怪的是,當教程沒有提到這件事時,項目的默認配置無法構建。