在不同的端口上托管路由Web应用程序 [英] Hosting the routing web application on a different port

查看:83
本文介绍了在不同的端口上托管路由Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我们正面临一个奇怪的问题,即应用程序在浏览器上加载时会失真。当我们从网站内容点击应用时形成的网址是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加载项,请按照下列步骤操作:+


  1. 创建提供程序托管的SharePoint加载项..
  2. 通过创建空白页面强制加载项Web配置。
  3. 将网页添加到Web项目,并引用样式表。
  4. 编辑加载项清单中的元素。


https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-a-sharepoint- website-s-style-sheet-in-sharepoint-add-ins


 


最好的问候,



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:+

  1. Create the provider-hosted SharePoint Add-in..
  2. Force the add-in web provisioning by creating a blank page.
  3. Add a webpage to the web project, and reference the style sheet.
  4. Edit the element in the add-in manifest.

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-a-sharepoint-website-s-style-sheet-in-sharepoint-add-ins

 

Best Regards,

Lee


这篇关于在不同的端口上托管路由Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆