MP2 SlimTv & Server issues: Can not load Assembly - Operation is not supported (1 Viewer)

Arturas1976

MP Donator
  • Premium Supporter
  • January 5, 2008
    246
    40
    Vilnius
    Home Country
    Lithuania Lithuania
    I can not run MP2 because of SlimTV errors.
     

    Attachments

    • ClientError.zip
      10.7 KB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\SlimTv.Interfaces.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
    File name: 'file:///C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\SlimTv.Interfaces.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

    Can you confirm you did a single-seat install?
    What versions of .NET do you have installed?
     

    Arturas1976

    MP Donator
  • Premium Supporter
  • January 5, 2008
    246
    40
    Vilnius
    Home Country
    Lithuania Lithuania
    From install I have chosen Client and server option. So what do you mean single seat? This install is on the same machine.

    I use win8ent, it uses .net 4.5 by default. I have not installed any older version.

    P.S. MP1 latest 1.5PRE is installed also.
     
    Last edited:

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    'file:///C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\SlimTv.Interfaces.dll'
    This could be the equivalent of this in .Net 4.5
    Could you try right clicking on this file with admin rights, then "properties" and at the bottom right click something like "permit" (in German "zulassen") and then try again...
     

    Arturas1976

    MP Donator
  • Premium Supporter
  • January 5, 2008
    246
    40
    Vilnius
    Home Country
    Lithuania Lithuania
    Made so. Nope.

    Also MP2 server can not be started.

    Server log:
    [2013-09-30 13:04:00,041] [485 ] [Main ] [FATAL] - Error starting application
    System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files (x86)\Team MediaPortal\MP2-Server\Plugins\SlimTv.Resources\SlimTv.Resources.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
    File name: 'file:///C:\Program Files (x86)\Team MediaPortal\MP2-Server\Plugins\SlimTv.Resources\SlimTv.Resources.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
     

    Attachments

    • MP2 server error.PNG
      MP2 server error.PNG
      7.1 KB
    Last edited:

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Well, first it was
    SlimTv.Interfaces.dll
    Now you checked that one as permitted and now it doesn't complain about SlimTv.Interfaces.dll anymore but
    SlimTv.Resources.dll
    Mabe you could try to check that one as well as permitted (and whatever else may pop up after that one).
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    Unzipping with Windows Explorer is the source of all evil :p

    If it is a download zip, it remains the (internet) zone information also for the extracted dll/exe, which causes blocking them by .NET runtime. This is a "security feature" by M$, but it really sucks in our case.

    Solution: don't use too many M$ tools ;) I recommend 7z and any browser but IE...
     

    Arturas1976

    MP Donator
  • Premium Supporter
  • January 5, 2008
    246
    40
    Vilnius
    Home Country
    Lithuania Lithuania
    Well, first it was
    SlimTv.Interfaces.dll
    Now you checked that one as permitted and now it doesn't complain about SlimTv.Interfaces.dll anymore but
    SlimTv.Resources.dll
    Mabe you could try to check that one as well as permitted (and whatever else may pop up after that one).


    It still complains :( both - client and server.

    You mentioned to make unblocking of .dll with admin rights, but there is no such option (admin rights). May be this is the key?
     

    Arturas1976

    MP Donator
  • Premium Supporter
  • January 5, 2008
    246
    40
    Vilnius
    Home Country
    Lithuania Lithuania
    Unzipping with Windows Explorer is the source of all evil :p

    If it is a download zip, it remains the (internet) zone information also for the extracted dll/exe, which causes blocking them by .NET runtime. This is a "security feature" by M$, but it really sucks in our case.

    Solution: don't use too many M$ tools ;) I recommend 7z and any browser but IE...


    THANK YOU!!! It is the MS unzip problems.
     

    Users who are viewing this thread

    Similar threads

    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    This happened immediately after my Windows 11 x64 monthly update for November. The update included also cumulative update to .NET...
    Replies
    9
    Views
    1K
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue stemmed from the corruption of one or both of the mc2xml.dat and/or mc2xml.exe files, for an unknown reason. Consequently, even though the tvguide.xml file appeared to be updated, its content kept being an...
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue...
    I was having a problem with the EPG on MP2 1.4.1 (although it used to run without any issues for a while). So I installed MP2 1.5...
    Replies
    8
    Views
    785
    Nevermind, I think. I found them in the forum. I had only checked the main webiste for MP2 plugins. https://www.team-mediaportal.com/extensions/mp2-plugins I hope these work: Featured Plugins
    Nevermind, I think. I found them in the forum. I had only checked the main webiste for MP2 plugins...
    I've been an MP1 user for a long time. I'm interested in switching to MP2. However, I rely heavily on the features provided by...
    Replies
    1
    Views
    2K
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers have instead simply "faded away", gradually spending less and less time on MP2 until the present, when they spend no time on MP2. But one or more of the developers might return next week! It is impossible...
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers...
    Hi Folks, I need some help with fixing the Problem that MP2 doesn't keep the sorted Order of Channels in TV-Configuraiton. I am...
    Replies
    10
    Views
    2K
    If you use a VPN connection to your home network, you should be able to use the MP client to connect to your server natively instead of using MPExtended.
    If you use a VPN connection to your home network, you should be able to use the MP client to connect to your server natively...
    I am another (almost) new user with a problem. About 18 months ago I managed to instal client and server of MP2 on my 32bit PC in...
    Replies
    5
    Views
    2K
    Top Bottom