strongloop / loopback

LoopBack makes it easy to build modern applications that require complex integrations.
http://loopback.io
Other
13.23k stars 1.2k forks source link

raiseUrlNotFoundError when trying to deploy in a windows machine(iis) #3916

Closed gitinnolat closed 5 years ago

gitinnolat commented 6 years ago
  1. Scaffold app using slc loopback, which works fine if i do node . from command prompt.

  2. Went ahead and created an application on IIS and pointed it to the folder for app.

  3. created a app.js file outside server folder with below code: var app = require('./server/server.js'); app.start();

  4. 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)

stale[bot] commented 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.

stale[bot] commented 5 years ago

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.