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.
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 ;)
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
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 ;)
Ok thanks, sorted.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.