标签: webmatrix

用于打开.mdf(SQL数据库)文件的内容

我希望能够打开.mdf文件.我正在使用WebMatrix,我可以在那里查看查询.我也可以阅读架构.但是如何在不使用WebMatrix的情况下读取文件.它的SQL Server文件不是Comptact版本.

我搜索了网络帮助(通过窗口).但一切都是徒劳的.我会更喜欢任何链接或任何方法来阅读基本查询.

sql-server webmatrix

12
推荐指数
1
解决办法
4万
查看次数

11
推荐指数
2
解决办法
5730
查看次数

使用新的IIS Express Web服务器在Visual Studio 2010中进行开发?

虽然这个问题并不直接与代码有关,但它与编程有关,而且似乎比服务器故障或超级用户更好.

-
我是Visual Studio 2010的开发人员.微软为开发人员提供的最新Web服务器是IIS Express.ScottGu表示这种组合是可行的:

IIS Express将与VS 2010和Visual Web Developer 2010 Express一起使用,将在Windows XP和更高版本的系统上运行,

到目前为止,我见过的唯一选择是下载包含和使用IIS Express的WebMatrix,但我无法将其连接到VS 2010,或单独下载IIS Express.

有任何想法吗?

iis visual-studio-2010 visual-studio iis-7.5 webmatrix

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

从WebMatrix 2启动Visual Studio会打开错误的版本

我正在使用Microsoft WebMatrix 2来处理简单的ASP.NET WebPages站点.当您在" 文件"视图中时,有一个Visual Studio启动按钮,该按钮应该在Visual Studio 2012中打开站点解决方案.在我的机器上,我也安装了Visual Studio 2010,这是我点击按钮时打开的版本.

在此输入图像描述

如何确保Visual Studio 2012已打开?

我正在使用Windows 8,但我很确定这也适用于Windows 7和XP.我怀疑我可能在2010年之前安装了2012,这可能解释了我的机器是如何进入这种状态但我不记得的.

registry visual-studio webmatrix visual-studio-2012 webmatrix-2

11
推荐指数
1
解决办法
1692
查看次数

SimpleMemership CreateUserAndAccount Customization

我正在尝试UserProfile在我的模型中向类添加新属性

public class UserProfile
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public int UserId { get; set; }
    public string UserName { get; set; }
    [Required]
    [DataType(DataType.EmailAddress)]
    [Display(Name = "Email Address")]
    public string Email { get; set; } \\this is the new property
    public virtual IList<Game> Games { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

我试图将它添加到我的Configurations.cs文件中的种子方法

private void SeedMembership()
    {
        WebSecurity.InitializeDatabaseConnection("MafiaContext",
            "UserProfile", "UserId", "UserName", autoCreateTables: true);

        var roles = (SimpleRoleProvider)Roles.Provider;
        var membership = (SimpleMembershipProvider)Membership.Provider;

        if (!roles.RoleExists("Administrator"))
        {
            roles.CreateRole("Administrator");
        }
        if (membership.GetUser("drew", false) == …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc entity-framework webmatrix asp.net-mvc-4 simplemembership

11
推荐指数
1
解决办法
7308
查看次数

尝试调试ASP.NET网站时,Visual Studio 2013 sp1挂起?

最近,在尝试调试/跟踪ASP.NET网站时,Visual Studio 2013再次开始挂起.该网站是使用WebMatrix 3创建的,但我不认为这是相关的.

VS2013打开网站解决方案.加载需要很长时间.一旦它加载并运行项目,它就会到达我的第一个断点,然后IDE窗口会在标题栏中快速显示"(没有响应)"并且IDE现在已挂起.

很久以前发生在我身上,根本原因是需要设置"使用64位IIS"选项,如此SO帖子所示:

每次运行测试解决方案时,Visual Studio 2013都会崩溃并重新启动

但我三重检查,我确实检查了64位选项.我该怎么做才能解决这个问题?

c# asp.net webmatrix visual-studio-2013

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

10
推荐指数
1
解决办法
6374
查看次数

PHP和Webmatrix出现500错误显示"友好"错误页面

我正在使用IIS Express/Web Matrix处理PHP应用程序,它给了我"友好"错误页面而不是实际错误.如何配置我的网站或IIS快递给我实际的错误?

php iis webmatrix

10
推荐指数
1
解决办法
5109
查看次数

在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
查看次数

如何将数据读取器转换为动态查询结果

我有一个View,通常从WebMatrix查询(IEnumerable<dynamic>数据类型)获取查询结果,并在表中显示结果:

@model MySite.Models.Entity
@foreach(var row in Model.Data)
{
    <tr>
        @foreach (var column in row.Columns)
        {
            <td>@column<span>:</span> @row[column]</td>
        }
    </tr>
}
Run Code Online (Sandbox Code Playgroud)

这是我查询数据库的模型:

public class Entity
{
    public dynamic Data {get; set; }
    public Entity(String table)
    {
        if (table == "User" || table == "Group)
        {
            WebMatrix.Data.Database db = new WebMatrix.Data.Database();
            db.Open(ConString);
            Data = db.Query("SELECT * FROM " + table);
        }
        else
        {
            using (OdbcConnection con = ne4w OdbcConnection(ConString))
            {
                OdbcCommand com = new OdbcCommand("Select * From " + table); …
Run Code Online (Sandbox Code Playgroud)

c# webmatrix

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