我们有一个.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.
更多推荐
发布评论