Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Fyffe 9 posts 29 karma points
    Mar 05, 2012 @ 23:14
    Robert Fyffe
    0

    Base Issue

    Hi Everyone,

    Having a slight issue with base. When I try and use the config files instead of the Attributes I cannot get base to work.

    It basically tells me the following error:

    Could not load file or assembly 'file:///D:\Sites\domain.com\public_html\bin\bin\BaseTest.dll' or one of its dependencies. The system cannot find the file specified.

     

    My config file looks like:

    <?xml version="1.0" encoding="utf-8"?>
    <RestExtensions>
      <ext assembly="/bin/BaseTest" type="BaseTest.TestClass" alias="TestAlias">
        <permission method="Hello" allowAll="true" />
      </ext>
    </RestExtensions>

     

    And my control:

     

    namespace BaseTest
    {
    
        public class TestClass
        {
    
            public static string Hello()
            {
                return "Hello World";
            }
        }
    }

     

    Why is it trying to look for the assembly at a local path and a wrong path at that?

    Also it must be setup correct as it surely it would not work by using the other attributes way?

     

    Thanks
    Robert

     

     

  • Ernst Utvik 123 posts 235 karma points
    Mar 06, 2012 @ 01:15
    Ernst Utvik
    1
    <?xml version="1.0" encoding="utf-8"?>
    <RestExtensions>
     
    <ext assembly="BaseTest" type="BaseTest.TestClass" alias="TestAlias">
       
    <permission method="Hello" allowAll="true"/>
     
    </ext>
    </RestExtensions>

    Skip the /bin/ part and it should work. Think the latest releases assumes your assembly is located in the bin folder and gets confused when you tell it ;)

  • Robert Fyffe 9 posts 29 karma points
    Mar 06, 2012 @ 01:56
    Robert Fyffe
    0

    Ok thanks, sorted.

Please Sign in or register to post replies

Write your reply to:

Draft