locked
.NET Runtime version 2.0.50727.3053 - System.IO.FileLoadException: Could not load file or assembly (Acces Denied) in WMI Provider RRS feed

  • Question

  • O.S: Windows 2003 Standard Edition SP2.

    I have developed a WMI provider using .NET, some of the class published retrieve datas from CppCli libraries. In one case the VBScript query causes the exception quoted in the title.

    The log message is :

    .NET Runtime version 2.0.50727.3053 - System.IO.FileLoadException: Could not load file or assembly 'SimaticItRuntimeInfo, Version=1.0.3786.17174, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.

    File name: 'SimaticItRuntimeInfo, Version=1.0.3786.17174, Culture=neutral, PublicKeyToken=null'

    at SITWmiProvider.SITPmGsiRuntimeInfo.<EnumerateInstances>d__0.MoveNext()

    at System.Management.Instrumentation.ResultHandler.AddResults(IEnumerable pIEnumerable)

    at UMPProvider.Enumerate(CallContext context, ICIMResultHandler resultHandler)

    at WmiNative.WbemProvider.WmiNative.IWbemServices.CreateInstanceEnumAsync(String className, Int32 flags, IWbemContext wbemContext, IWbemObjectSink wbemSink)

     

    SimaticItRuntimeInfo is a CppCli library handling both managed and unmanaged code.

    Someone can help me?

    Friday, June 11, 2010 1:09 PM

Answers

All replies

  • Hi,

      Please take a look at the following reference. It could be helpful.

      Debugging Assembly Loading Failures


    Please mark the right answer at right time.
    Thanks,
    Sam
    • Marked as answer by SamAgain Friday, June 18, 2010 8:11 AM
    Tuesday, June 15, 2010 8:59 AM
  • We temporarily mark a reply, please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Please mark the right answer at right time.
    Thanks,
    Sam
    Friday, June 18, 2010 8:11 AM