简体   繁体   English

进程是否有权查看azure上的文件?

[英]Does process have permission to view files on azure?

I have recently deployed a fubu mvc application to windows azure. 我最近已将fubu mvc应用程序部署到Windows Azure。 Everything works except when the pipeline tries to find the view to render. 除了管道试图查找要渲染的视图外,其他所有东西都起作用。 This all works correctly on my local machine. 这些都可以在我的本地计算机上正常运行。

So I am wondering: does the process on the Azure box have rights to read/scan files on disk? 所以我想知道:Azure框上的进程是否有权读取/扫描磁盘上的文件?

Any suggestions to fix it are welcome though. 任何修复它的建议都欢迎。

EDIT: As part of the deployment there is a stage that azure goes through called "Preparing files for eployment". 编辑:作为部署的一部分,蔚蓝经历了一个阶段,称为“准备部署文件”。 I checked on the log and my view was not in there 我检查了日志,但视图不存在

So I changed copy to output as true and it worked 所以我将copy更改为true并输出

It depends a bit on where you are trying to read and how you have configured your roles. 这取决于您尝试阅读的位置以及如何配置角色。 By default, the code will run as a very low privilege user that only has R/W to the code directory (and any LocalResource(s) defined by the user). 默认情况下,代码将以非常低特权的用户身份运行,该用户仅具有对代码目录(以及该用户定义的任何LocalResource)的R / W。 However, you can run your code as SYSTEM, in which case you can R/W anywhere (you might still have to take ownership, but you are all powerful as SYSTEM). 但是,您可以将代码作为SYSTEM运行,在这种情况下,您可以在任何地方进行R / W(您可能仍需要拥有所有权,但作为SYSTEM却功能强大)。

If your views are defined as part of your package and uploaded, the code should have permission to view it. 如果您的视图被定义为软件包的一部分并已上传,则代码应有权查看它。 I am curious as why you think this is a permission issue right now. 我很好奇您为什么现在认为这是一个许可问题。 Do you see an error that indicates that, or are you guessing it? 您是否看到指示错误的消息,或者正在猜测? If I had to guess, my first thought would be your views didn't get packaged correctly and are not on the VM. 如果我不得不猜测,我首先想到的是您的视图未正确打包并且不在VM上。 You can confirm they are there either by RDP or by cracking open the package and snooping around. 您可以通过RDP或打开包装并四处窥探来确认它们在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Azure App Services中,我们是否需要清除LogFiles目录中的文件,或者Azure是否有清理过程? - In Azure App Services, do we need to clean out files in the LogFiles directory or does Azure have a cleanup process for this? 天蓝色部署问题:没有权限查看此目录或页面 - azure deploy issue:do not have permission to view this directory or page 您无权查看此目录或页面。 天蓝 - You do not have permission to view this directory or page. Azure Azure React 应用程序“您无权查看此目录或页面” - Azure React App 'You do not have permission to view this directory or page' NextJS 和 Azure - “您无权查看此目录或页面。” - NextJS and Azure - "You do not have permission to view this directory or page." azure webapp 您无权查看此目录或页面 - azure webapp You do not have permission to view this directory or page Azure中的“您无权查看此目录或页面”错误 - “You do not have permission to view this directory or page” error in Azure 天蓝色错误。 您无权查看此目录或页面 - Azure Error. You do not have permission to view this directory or page 您无权查看 Azure Ionic 应用程序的此目录或页面 - You do not have permission to view this directory or page for Azure Ionic App 您无权查看此目录或页面Azure Dropbox - You do not have permission to view this directory or page Azure Dropbox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM