none
Windows Azure Storage -----LocalStorage Problem RRS feed

  • 问题

  • I build a webservice. For communication security,I use the SoapExtension.

    Public Class MailServiceSecurityExtension
        Inherits SoapExtension

        Private m_oldStream As Stream
        Private m_newStream As Stream
        Private loc As LocalResource = RoleEnvironment.GetLocalResource("test")
        .............
        .............
    End Class

    When in the Win7+VS2010+WindowsAzureSDK1.2+WindowsAzureTools1.2 environment

    Private loc As LocalResource = RoleEnvironment.GetLocalResource("test")  worked well .

    When in the Win7+VS2010+WindowsAzureSDK1.3+WindowsAzureTools1.3 environment

    Private loc As LocalResource = RoleEnvironment.GetLocalResource("test")  cannot work.The following Error occured.

      <?xml version="1.0" encoding="utf-8" ?>
    - <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <soap:Body>
    - <soap:Fault>
    - <soap:Code>
      <soap:Value>soap:Receiver</soap:Value>
    </soap:Code>
    -  <soap:Reason>
      <soap:Text xml:lang="ja">System.Web.Services.Protocols.SoapException: サーバーは要求を処理できませんでした。 ---> System.Reflection.TargetInvocationException: 呼び出しのターゲットが例外をスローしました。 ---> System.Runtime.InteropServices.SEHException: 外部コンポーネントが例外をスローしました。 場所 RdGetLocalResource(UInt16* , _RD_RESOURCE** ) 場所 _LOCALRESOURCE.GetLocalResourceW(UInt16* name, _LOCALRESOURCE** ppout) 場所 RoleEnvironmentGetLocalResourceW(UInt16* name, _LOCALRESOURCE** ppout) 場所 Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropRoleManager.GetLocalResource(String name, InteropLocalResource& ret) 場所 Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetLocalResource(String localResourceName) 場所 MailService.MailServiceSecurityExtension..ctor() 場所 C:\Users\WindowsAzure\Desktop\LocalStorage\projects-20110119\CloudMailService\MailService\MailServiceSecurityExtension.vb:行 15 --- 内部例外スタック トレースの終わり --- 場所 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) 場所 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) 場所 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) 場所 System.Activator.CreateInstance(Type type, Boolean nonPublic) 場所 System.Web.Services.Protocols.SoapReflectedExtension.GetInitializer(Type serviceType) 場所 System.Web.Services.Protocols.SoapReflectedExtension.GetInitializers(Type serviceType, SoapReflectedExtension[] extensions) 場所 System.Web.Services.Protocols.SoapServerType..ctor(Type type, WebServiceProtocols protocolsSupported) 場所 System.Web.Services.Protocols.SoapServerProtocol.Initialize() 場所 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) --- 内部例外スタック トレースの終わり ---</soap:Text>
    </soap:Reason>
         <soap:Detail />
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>

     Just Change the Windows Azure SDK and WindowsAzureTools from version 1.2 to version 1.3

     System.Runtime.InteropServices.SEHException occured.

    I need help ! Thanks in advance!

    • 已编辑 IsaacYard 2011年1月20日 2:09 beauty
    2011年1月20日 2:05

答案

全部回复