MVC System.Runtime.InteropServices.SEHException在LocalHost上运行时

时间:2014-07-09 12:52:25

标签: c# asp.net-mvc azure localhost

我有一个在Azure上发布的MVC网站。如果我在Visual Studio上运行调试模式,一切顺利,但是当我在我的本地iis上发布网站时,我可以快速调试和更改,我得到一个“System.Runtime.InteropServices.SEHException:外部组件抛出异常” 我收到的堆栈跟踪是

[SEHException(0x80004005):外部组件抛出异常。]    RdGetApplicationConfigurationSetting(UInt16 *,UInt16 **)+0    Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropRoleManager.GetConfigurationSetting(String name,String& ret)+184    Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetConfigurationSettingValue(String configurationSettingName)+92    Microsoft.ApplicationServer.Caching.AzureCommon.TopologyHelper.TryGetServiceConfigurationSetting(String value,String& result)+56    Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsUtility.GetDiagnosticLevel(String propertyName)+63    Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsUtility.GetClientLogLevel()+30

[TargetInvocationException:调用目标抛出了异常。]    System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] arguments,Signature sig,Boolean constructor)+0    System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)+537    System.Reflection.MethodBase.Invoke(Object obj,Object [] parameters)+35    Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration.Initialize(String clientName)+233    Microsoft.Web.DistributedCache.DataCacheFactoryWrapper.CreateDataCacheFactoryConfiguration(String dataCacheClientName)+92    Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.CreateInternalProvider(IHttpRuntime httpRuntime,SessionInitializationData initData,IDataCacheFactory dataCacheFactory,EventHandler 1 cacheFetching, EventHandler 1 cacheFetched)+74    Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.GetInternalProvider()+ 206    Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.CreateNewStoreData(HttpContext context,Int32 timeout)+19    System.Web.SessionState.SessionStateModule.InitStateStoreItem(Boolean addToContext)+158    System.Web.SessionState.SessionStateModule.CompleteAcquireState()+356    System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source,EventArgs e,AsyncCallback cb,Object extraData)+1093    System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+ 570    System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)+1536

任何想法如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

问题是Azure缓存。我很快就禁用了chaching它开始工作(不得不在调试上运行项目以启动azure模拟器服务,无论哪种方式,但现在都可以使用)

相关问题