小编shr*_*thi的帖子

在asp.net网页中尝试WebSecurity.CreateAccount时遇到错误'提供程序遇到了未知错误'

我是asp.net的新手.我正在尝试使用WebMatrix创建一个简单的登录和注册网页.但是当我尝试创建帐户时出现以下错误:


The Provider encountered an unknown error.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.Security.MembershipCreateUserException: The Provider encountered an unknown error.

Source Error: 


Line 32:                 db.Execute("INSERT INTO UserData (Email,Name) VALUES (@0,@1)", email, username);
Line 33:                  
Line 34:                 WebSecurity.CreateAccount(email,password);
Line 35:                 Response.Redirect("Homepage.cshtml");
Line 36:             }


Source File: c:\Users\admin\Documents\My Web Sites\Login\Register.cshtml    Line: 34 

Stack Trace: 


[MembershipCreateUserException: …
Run Code Online (Sandbox Code Playgroud)

asp.net webmatrix razor

10
推荐指数
2
解决办法
3643
查看次数

Html标题和链接在同一行

我是css的新手.我想在中心显示标题h2,在同一行显示右端的链接.

我尝试了几个选项,但所有选项都将标题对齐到左侧.任何帮助表示赞赏.

谢谢.

html css

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

在python子进程中使用exec查找命令会产生错误

我正在尝试使用子进程模块(python)执行以下命令

/usr/bin/find <filepath> -maxdepth 1 -type f -iname "<pattern>" -exec basename {} \;
Run Code Online (Sandbox Code Playgroud)

但是,它会出现以下错误:

/usr/bin/find: missing argument to `-exec'
Run Code Online (Sandbox Code Playgroud)

我猜它与逃避一些角色有关.但没有得到如何克服这一点.

任何帮助表示赞赏.谢谢.

python subprocess find

3
推荐指数
2
解决办法
6988
查看次数

标签 统计

asp.net ×1

css ×1

find ×1

html ×1

python ×1

razor ×1

subprocess ×1

webmatrix ×1