[Tutorial] Fix API Errors
So, here are some errors most people get stumped on:
WO_API SQL Connect failed:
To fix that, there are 3 files you need to change for DNC or the Vusion Source.
2 Files for the Invasion MMO Source.
The 3 files for DNC are the web.config file for the WarZ/api folder
The SQLBase_WarZ.cs file in App_Code in the api folder.
And the dbinfo.php in the php folder.
You also need to set up a db connection string in IIS Manager.
Go to your IIS Manager, go into your website that hosts the api, find the api folder in the api, then right click, set as application.
You wait, then go back to the api folder in the IIS Manager, it should say Connection Strings.
Fill in all your SQL Credentials there.
Then your done.
For InvasionMMO, just do the dbinfo.php file and the connection string.
----------------
For HTTP Errors code:
404:
You put in the wrong folder address, or it's not there anymore.
500:
You either have messed up your settings, or you don't have directory browsing enabled.
If the following errors occur:
"Invalid file header":
just move your bin file into the root of the website you are using to host your api:
EG:
localhost/bin
If it says:
WO_API parameter something, it works.
Re: How to fix some API Errors.
/*
WO API error codes:
0: operation Ok
1: session not valid (disconnected)
5: php<->SQL error
6: SQL parameters error
7: SQL logic error (not enough money, etc)
8: http connection
9: http output error
*/
Re: How to fix some API Errors.
Can you be more clear on the 404 error?
Quote:
IIS Manager: Authorization, Cannot verify access to (C:\inetpub\wwwroot\WarZ\api)
Details:
The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain>\<computer_name>$ has Read access to the physical path. Then test these settings again.
Re: How to fix some API Errors.
1.Where to look? 2 Files for the Invasion MMO Source.
2.Where to enter and where to get SQLBase_WarZ.cs
where to get -> db_apikey
$db_apikey = "ACOR4823G%sjYU*@476xnDvYaK@!56";
3.Not understood, it is possible an example?
Go to your IIS Manager, go into your website that hosts the api, find the api folder in the api, then right click, set as application.
You wait, then go back to the api folder in the IIS Manager, it should say Connection Strings.
Re: How to fix some API Errors.
Can make more detailed your guide?
Re: [Tutorial] Fix API Errors
Please make a detailed instruction Fix API Errors:bawling: