Unable to debug web api call from angular JS - IIS (when other then default app pool) - visual studio 2015 - angularjs

When I run web api and angular web applications using Default application pool then i able to debug the web api service.
If change application pool for both the applications to custom app pool as below.
then, debug point is not called in web api.
IIS 8
web api applicaiton: app pool name: apppool1 - integrated - 4.0, (4.5.2 framework)
asp.net web (only angular and html files): app pool name: apppool1 - integrated - 4.0
can any one please help, what is the cause.

solved the issue by re-installing IIS. it able to attach debugger now.

Related

Uploading ASP.net & Angular application on Tomcat server

I have just finished the local development of my Web API (ASP.net) and the User interface (AngularJs) and I would like to put it in a Tomcat server. I really need help getting this done.
I really have no ideas
Apache Tomcat is for Java-based applications and will not work. If you are on Linux you would use something like nginx or apache. If you are on windows, you would setup your ASP.NET Core site in IIS or as a windows service. If you have the option, I recommend hosting on a cloud provider such as Azure.

How to deploy a Flask+React application to Azure Web Service

I have been working on this app on my localhost, which has Flask as the backend (localhost:5000) and React as the front end (localhost:3000), and they have been communicating well. Now I am supposed to put it up online so that other ppl can see it as well - I didn't have much experience in Azure, but how can I deploy these two components(React&Flask) into one URL on Azure web app service? (Before I had some experience in using FTP to upload the 'build' folder to a "site/wwwroot" folder to put up a simple React app without any backend)
Newest
After testing, the python project is deployed in the webapp, the react project is deployed in the virtual application, and the normal node project is also deployed in the virtual application.
Deploy the flask python project to the windows environment, the normal deployment method will fail, please be sure to follow this blog document (third-party document) to operate, it works for me.
Running Flask app with HttpPlatformHandler in Azure App Services
The effect is shown in the figure. You can see that the normal node project can be accessed normally, but the react project is not. I think there are some bugs. (Has raised a support ticket to confirm)
The deployment method of virtual application is recommended to adopt the publishing method shown in the figure below.
Privious
It is recommended to choose windows when creating azure web app, because windows supports virtual application.
We can deploy flask app normally and deploy react app in virtual app.
Under normal circumstances, the process.env.port of the two webapps is the same and will not interfere with each other because of the virtual path.
Reference post:
1. Vue Frontend and Express backend on same Azure web app Service
2. Azure Front Door Is Not Maintaining Custom Domain in Browser

Deploy Angularjs 1.5.X on JBoss App server

Can Angularjs 1.5.X App directly deployed onto application server like JBoss 6.x. I have deployed Angularjs apps on Nginx, but I was wondering if AngularJS can be deployed to listen on different port on Same App server that also host the Rest API's developed using RestEasy on JBoss.
Does JBoss has ability to run Webapps?
JBoss Application Server (AS) was a product developed by RedHat, currently replaced by Wildfly, which, being a certified implementation of the Java Enterprise Edition specification, allowed the building, deploying, and hosting of highly-transactional Java applications and services.
Therefore, the answer to your question is yes. JBoss AS, as it name states, has the ability to serve web applications.
To deploy your AngularJS application on JBoss, I'd suggest you to create a web project and have it builded and packaged as a ready-to-deploy WAR archive using a build manager such as Maven.
As an example, you can follow the kitchensink-angularjs quickstart provided by JBoss.
Finally, regarding your AngularJS deployed on a different port question, you can find an answer to it in How to run different apps on single JBoss AS 6 instance behind different ports?.

Single Page Application over IIS vs Node + IIS?

We are developing a single page application using AngularJs having an index file at the root which will be served by web server to client. Backend for this application is a HTTP restful on a different server. Currently when developing this SPA application, we are using Node with express server. We need to deploy this application to azure. There are two deployment options available.
Deploy either as web application on azure (I think its IIS server in this case)
Or deploy on IIS using IIS Node module
We need to have a rewrite rule, which will serve index page for every other request to server in both cases.
Which one is better deployment model? Only IIS or iisnode module with IIS server or if anyone can suggest another option available for SPA on Azure?
The most straight forward would be to deploy it as an Azure App Service Web App (Previously Azure Website). It supports node and you can do your rewrite rules in web.config system.webServer section.
You can read the Azure App Service "Hello world" on Node here
Azure can run Express.js apps out-of-the-box, and has been able to for some time now. You don't need to worry about writing a web.config or anything.
Quick tutorial: Here
Basically, you need to copy the /bin/www file to /server.js, and edit the var app = require('../app'); to read var app = require('./app');
Then run it like any other Azure app.

How to communicate between Windows Form app and Web Site?

We developped an C# .Net 2.0 Windows Form application for Windows XP embedded that controls the underlying hardware/device. Now, we need to add a c# .NET 2.0 Web Site (hosting by IIS inside the same device) that can send commands to the Windows Form application (example: Start measuring) and receive data.
What is the best way to do it?
We thought about Web Service, but how the Windows Form application can know when the Web Service will receive a command from the Web Site.
Thank you.
Note: Forbidden to install on the device a Framework .NET 3.x or 4
Given this restriction on .Net 2.0, .net remoting is the way to go in this situation.
http://en.wikipedia.org/wiki/.NET_Remoting
Winform app can expose objects via remoting. Web app can send request to these objects. request would have commands.

Resources