Closed gitinnolat closed 5 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS
file at the top-level of this repository.
Scaffold app using slc loopback, which works fine if i do node . from command prompt.
Went ahead and created an application on IIS and pointed it to the folder for app.
created a app.js file outside server folder with below code: var app = require('./server/server.js'); app.start();
Created a web.config, which looks like below:
<?xml version="1.0" encoding="utf-8"?>
**Now when i am trying to access the url in browser http://localhost/smsapi/.
This gives me error:**
Error 404 Cannot GET /smsapi/ status: 404 Error: Cannot GET /smsapi/ at raiseUrlNotFoundError (C:\GitHub\smsapi\sms\node_modules\loopback\server\middleware\url-not-found.js:21:17) at Layer.handle [as handle_request] (C:\GitHub\smsapi\sms\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:317:13) at C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:284:7 at Function.process_params (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:335:12) at next (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:275:10) at C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:635:15 at next (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:260:14) at Function.handle (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:174:3) at router (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:47:12) at Layer.handle [as handle_request] (C:\GitHub\smsapi\sms\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:317:13) at C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:284:7 at Function.process_params (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:335:12) at next (C:\GitHub\smsapi\sms\node_modules\express\lib\router\index.js:275:10) at nosniff (C:\GitHub\smsapi\sms\node_modules\dont-sniff-mimetype\index.js:4:5)