在不同的端口上托管路由Web应用程序 [英] Hosting the routing web application on a different port
问题描述
您好,
我们正面临一个奇怪的问题,即应用程序在浏览器上加载时会失真。当我们从网站内容点击应用时形成的网址是http://xyz-guid.< appdomain> .com,这似乎是正确的。据观察,文件"corev15app.css"表示文件"corev15app.css"。
未加载,因为URL http://xyz-guid.< appdomain> .com:9090显示在开发人员工具中。 (实际网址为http://xyz-guid。< appdomain> .com:9090 / _layouts / 15/1033 / styles / corev15app.css?rev = zuVbsgCb8FoNMkaQ3BfMXg%3D%3D)并且因为它不存在
在端口9090中,因此我们看到应用程序的失真。
我们看到端口号9090的原因是我们在端口9090上托管了路由Web应用程序而不是端口80。
是否必须在端口80上托管路由Web应用程序,并且不能在任何其他端口上托管?如果它可以托管在任何其他端口上,我该如何解决问题?
问候,
SSM
您可以根据需要在其他端口中托管加载项Web。
对于参考SharePoint(主机网站)CSS,您可以参考指南下面:
要使用样式表SharePoint加载项,请按照下列步骤操作:+
- 创建提供程序托管的SharePoint加载项..
- 通过创建空白页面强制加载项Web配置。
- 将网页添加到Web项目,并引用样式表。
- 编辑加载项清单中的元素。
最好的问候,
利跨度>
Hello,
we are facing a weird issue where the app is distorted when it loads on the browser. The URL formed when we click the app from site content is http://xyz-guid.<appdomain>.com which seems to be correct. It was observed that the file "corev15app.css" is not getting loaded as the URL http://xyz-guid.<appdomain>.com:9090 shows up in developer tools. (Actual URL is http://xyz-guid.<appdomain>.com:9090/_layouts/15/1033/styles/corev15app.css?rev=zuVbsgCb8FoNMkaQ3BfMXg%3D%3D) and as it is not present in port 9090, hence we see the distortion of the app.
The reason why we are seeing the port number 9090 is that we have a routing web application hosted on port 9090 and not on port 80.
Is it mandatory to host the routing web application at port 80 and cannot be hosted on any other port? if it can be hosted on any other port, how can i fix the issue?
regards,
SSM
Hi,
You could host add-in web in other port as you want.
For reference SharePoint(host web) CSS, you could refer the guideline below:
To use the style sheet in a SharePoint Add-in, follow these steps:+
- Create the provider-hosted SharePoint Add-in..
- Force the add-in web provisioning by creating a blank page.
- Add a webpage to the web project, and reference the style sheet.
- Edit the element in the add-in manifest.
Best Regards,
Lee
这篇关于在不同的端口上托管路由Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!