Vhaeriel Posted May 21, 2020 Posted May 21, 2020 Hello ! I've a little issue when i try to start the api on my Server -> Quote 2020-05-21 13:25:21.112 [Error] Failed to start API. System.TypeLoadException: La méthode 'Match' du type 'Intersect.Server.Web.RestApi.Constraints.AdminActionsConstraint' de l'assembly 'Intersect Server, Version=0.0.5.0, Culture=neutral, PublicKeyToken=null' n'a pas d'implémentation.   à Intersect.Server.Web.RestApi.RestApi.Configure(IAppBuilder appBuilder)   à Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)   à Intersect.Server.Web.RestApi.RestApi.Start()  Any idea ?
0 Vhaeriel Posted May 21, 2020 Author Posted May 21, 2020 Problem solved by adding ALL .xml file and .dll in the same folder of my Intersect Server.exe I think my Windows Server miss some dll (like System.Net.Http), including this files on the same folder solved the problem.
0 Vhaeriel Posted May 21, 2020 Author Posted May 21, 2020 5 minutes ago, Joyce said: Is that a modified server? Â Yes, i don't really modify a lot of thing on the server I've just modified the assembly version
0 Vhaeriel Posted May 21, 2020 Author Posted May 21, 2020 5 minutes ago, Joyce said: That's strange, what version are you using? I'm on the last build of dev branch
0 Cheshire Posted May 21, 2020 Posted May 21, 2020 Can't reproduce this on a clean build I'm afraid, so must be related to something you've changed I would say? Â You're going to have to be more specific on what you changed exactly to figure this one out I'm afraid.
0 Vhaeriel Posted May 21, 2020 Author Posted May 21, 2020 On my personnel computer, the same .exe work fine with api enable But on my dedicated serv, it's bug, i think is a problem on the configuration file but i don't know what. Â Maybe a stupid question, But what the "Hosts" need to target on the api.config file ? Because i run a lot of server (sql, web, multiple website etc..) on my server
0 Cheshire Posted May 21, 2020 Posted May 21, 2020 See, that's information you should probably have provided from the start. Â And I don't know man, is it a linux or a windows server?
0 Vhaeriel Posted May 21, 2020 Author Posted May 21, 2020 Just now, Joyce said: See, that's information you should probably have provided from the start. Â And I don't know man, is it a linux or a windows server? I'm on a windows server, all work great, it's just the api. Actually my localhost don't target the folder of my server, it's target another website. Â It's why i ask what the "hosts" need to target on the api ? I think the problem is just because the api can't resolve correctly my "localhost:5400" Â
0 Cheshire Posted May 21, 2020 Posted May 21, 2020 I don't know if it needs to, but you can't have overlapping ports no.. So it should have thrown an error before it ever got to that point, ie at the binding of your ports if that were the case. Â Since the API uses port 5400 (default) rather than 80 I doubt it'd make a difference where port 80 directs to.
0 Vhaeriel Posted May 21, 2020 Author Posted May 21, 2020 3 minutes ago, Joyce said: I don't know if it needs to, but you can't have overlapping ports no.. So it should have thrown an error before it ever got to that point, ie at the binding of your ports if that were the case. Â Since the API uses port 5400 (default) rather than 80 I doubt it'd make a difference where port 80 directs to. It's really strange, because the same .exe don't work on the windows server, the problem is obviously when the api try to listening on the host i think.
0 jcsnider Posted May 21, 2020 Posted May 21, 2020 Probably built the server in NoFody mode instead of debug in which case the dlls wouldn't be included within the .exe.
Question
Vhaeriel
Hello !
I've a little issue when i try to start the api on my Server
->
Â
Any idea ?
12 answers to this question
Recommended Posts