相关疑难解决方法(0)

将ASP.NET MVC4 App部署到GoDaddy编译器问题

已经看过几篇关于向GoDaddy部署MVC应用程序的帖子.他们似乎都没有解决我们遇到的问题.我们遵循了有关检查运行时版本,IIS管道模式,发布和将本地复制到true的建议,因此所有这些都适用于GoDaddy.Com.

我们遇到的问题是,当我们尝试访问该站点时,我们会收到组策略异常,因为ASP.NET运行时正在尝试调用C#编译器.

[Win32Exception (0x80004005): This program is blocked by group policy. For more information, contact your system administrator]

[ExternalException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe".........

我们已经完成了发布设置并选择预编译该站点.这没有解决问题.查看了该站点,并且没有部署CS文件.该Global.asax文件确实引用了一个代码隐藏文件.由于我们预编译了网站,我们尝试删除该global.asax文件,但也无法解决问题.

任何想法都会很棒.

asp.net web-hosting asp.net-mvc-3 asp.net-mvc-4

36
推荐指数
4
解决办法
2万
查看次数

登录尝试后GoDaddy上的另一个安全例外

主持人:GoDaddy共享主机

信任等级:中等

提交有效的用户/通行证后会发生以下情况.数据库具有读/写权限,当我删除管理页面上的登录要求时,按预期更新数据库工作.

有没有其他人有这个问题或知道问题是什么?任何人?

Server Error in '/' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the …
Run Code Online (Sandbox Code Playgroud)

asp.net security exception

8
推荐指数
2
解决办法
1万
查看次数