本文介绍了如何在共享托管环境中使用内置的.NET安全控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我必须在一个小网站上添加一个简单的登录系统。出于显而易见的原因,我想使用内置的.NET控件,但这些需要运行aspnet_regsql.exe来设置所需的表和关系。我无权这样做,因为该网站位于共享服务器上。



是否有另一种设置表的方法 - 也许是一个脚本? br />


或者如果我能找到完整的模式,我可以编写自己的脚本来设置表格。有谁知道我在哪里可以找到架构?如果我必须编写自己的系统,这可能是一个很好的起点。 (不得不承认,我对这种方法很紧张。我可以想象投入大量工作,但却发现我仍然遇到奇怪的错误,因为我错过了一些东西。我不是SQL专家。)



最后的选择可能是,如果有人知道其他人写过的系统,或至少有关于如何编写自己的系统的教程。



对我而言,微软已经把所有这些工作都放到了一个开箱即用的安全系统中,这让我感到很荒谬,因为我认为大多数网站都是在共享主机上运行的。



非常感谢任何有用信息的帮助或指示。



亲切的愿望~Patrick

Hi,

I have to add a simple login system to a small website. I'd like to use the built-in .NET controls for obvious reasons, but these require that aspnet_regsql.exe be run to set up the required tables and relationships. I don't have permission to do this, as the site is on a shared server.

Is there another way to set up the tables - a script perhaps?

Or I could write my own script to set up the tables if I could find the complete schema. Does anyone know where I can find the schema? If I have to write my own system, it may be a good starting point. (Got to admit, I am nervous of this approach. I can imagine putting in a lot of work, only to find I am still getting strange errors because I have missed something. I am no SQL expert.)

A final option might be if anyone knows of a system someone else has written, or at least a tutorial on how to write your own.

It seems ridiculous to me that Microsoft have put all this work into an out-of-the-box security system only to have the whole think become useless for what I would imagine is the majority of websites running on shared hosting.

Any help or pointers to useful information would be very much appreciated.

Kind wishes ~ Patrick

推荐答案


这篇关于如何在共享托管环境中使用内置的.NET安全控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 21:34