如何知道Window Azure中的物理应用程序路径?(How to know the Physical Application Path in Window Azure?)

编程入门 行业动态 更新时间:2024-10-26 00:27:52
如何知道Window Azure中的物理应用程序路径?(How to know the Physical Application Path in Window Azure?)

我们有一个.Net 2.0站点,我们正在将它移动到Windows Azure网站。

我们的站点需要一些配置参数(通过web.config> appSettings)。 其中一个是物理地址(例如:\ boswinfs05 \ home \ users \ web \ b2614 \ whl.clientname \或d:\ sites \ single57 \ clientname \ webroot)。

在我们的实际托管中,我们在Panel Control中获取它,但我无法在Azure门户中找到它。

有人知道如何在Azure门户中获取它吗?

We have a .Net 2.0 Site and we are moving it to a Windows Azure Website.

Our site needs some config parameters (via web.config > appSettings). One of them is the physical address (For example: \boswinfs05\home\users\web\b2614\whl.clientname\ or d:\sites\single57\clientname\webroot).

In our actual hosting we get it in the Panel Control but I can´t find it in the Azure Portal.

Someone knows how to get it in Azure Portal?

最满意答案

在您的站点实际部署和运行之前,您永远不会知道它。

您可以在Application_Start事件期间获取运行时并初始化某些类的静态属性。 我相信您的网站在Application_Start之前什么都不做。

You never know it before your site is actually deployed and run.

You can get it runtime and initialize static property of some class during Application_Start event. I believe your web site does nothing before Application_Start.

更多推荐

本文发布于:2023-04-27 22:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329057.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   路径   物理   Azure   Window

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!