安全异常当共享部署Asp.net Web应用程序托管和需要考虑的事情 [英] Security Exception When Deploying Asp.net web application in Shared Hosting and Things to Consider

查看:84
本文介绍了安全异常当共享部署Asp.net Web应用程序托管和需要考虑的事情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待来部署虚拟主机一个ASP.net Web应用程序。

I'm looking to deploy a ASP.net web application in Shared Hosting.

我得到安全例外,

System.Security.SecurityException:
  申请类型的权限
  System.Security.Permissions.FileIOPermission,
  mscorlib程序,版本= 2.0.0.0,
  文化=中立,
  公钥= b77a5c561934e089'
  失败了。

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

任何帮助修复并能刨共享部署主机将大大AP preciated时被照顾的任何其他常见问题。

Any help to fix and any other common issues that can be taken care when planing to deploy in Shared Hosting will be greatly appreciated.

推荐答案

许多托管服务提供商将提供一个控制面板,使用它可以修改读/写权限。把那一个镜头。

Many hosting providers will provide a control panel with which you can modify read/write permissions. Give that a shot.

其他常见问题:


  1. 大多数只允许你的应用程序中中信任运行。这可能是您的安全问题的原因。

  2. 无远程TCP连接(出于安全原因)到你的数据库(意味着你必须写一个脚本或者您的NET应用程序的安装程序来创建表,关系,约束,等等。)

  3. 大多数你的应用程序放在与其他共享应用程序的应用程序池的时候,所以当这些应用爆炸,你的应用程序变得附带损害。请确保您要求您的应用程序放置在自己的应用程序池,给它从其他应用的打嗝隔离。

  1. Most only allow your app to run in Medium Trust. This could be the cause of your security problem.
  2. No remote TCP access (for security reasons) to your database (means you have to write a script or an 'installation' routine in your .NET app to create tables, relationships, constraints, etc.)
  3. Most of the time your app is put into an app pool with other shared apps, so when those apps explode, your app becomes collateral damage. Make sure you request that your app be placed in its own app pool to give it isolation from other apps' hiccups.

这篇关于安全异常当共享部署Asp.net Web应用程序托管和需要考虑的事情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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