Questions tagged [webmatrix-2]

Microsoft WebMatrix 2 is a basic development envirnoment for creating websites. It's bundled with a simple but powerful SQL server and a lightweight web server. Languages supported include VB, C# and even PHP. The native view engine uses the Razor syntax.

Microsoft WebMatrix 2 is a basic development envirnoment for creating websites. It's bundled with a simple but powerful SQL server and a lightweight web server. Languages supported include VB, C# and even PHP. The native view engine uses the Razor syntax.

104 questions
19
votes
3 answers

How to rename an IIS Express website in Visual Studio 2012

I initially created a site in Webmatrix 2. I just called it website1. I've now been working on the site in Visual Studio 2012 and I would like to rename it. It doesn't appear you can rename it directly, but in the .sln file there is a project entry…
Neil Dobson
  • 1,239
  • 1
  • 12
  • 24
11
votes
1 answer

Launching Visual Studio from WebMatrix 2 opens wrong version

I'm using Microsoft WebMatrix 2 to work on a simple ASP.NET WebPages site. When you are in the Files view, there is a Visual Studio Launch button that should open up the site Solution in Visual Studio 2012. On my machine I also have Visual Studio…
6
votes
1 answer

Can i try phpMyAdmin in local with webmatrix?

I want to try phpMyAdmin in local starting it from webmatrix... It's regularly show the login page, but i've problem to login.. Each attempt it retrieve me #2002 Impossibile to login into MySQL server Once downloaded the last version of phpMyAdmin,…
Sonia
  • 253
  • 1
  • 3
  • 16
6
votes
2 answers

Loading a Windows Azure Project from Gallery into Visual Studio 2012

I have a Windows Azure web site. I started this web site as a New -> Compute -> Web Site -> From Gallery. Once here, I chose the Orchard CMS. I have the site successfully running in Windows Azure. My challenge is, I want to do some customizations to…
6
votes
3 answers

Error running node app in WebMatrix

I installed WebMatrix and followed these instructions to install IIS 7 on my Windows 7 machine. When I click 'Run' to run my express node app, the browser pops up and tells me The iisnode module is unable to start the node.exe process. Make sure…
Scott Tesler
  • 39,441
  • 4
  • 25
  • 20
5
votes
2 answers

Manually trigger validation on a specific form element

I'm using Validation.Add() and the Html.TextBox() (and related) helpers in conjunction with unobtrusive JavaScript error checking and am very pleased with the results. It covers the server and client side with one set of code and generally I've been…
Polynomial
  • 3,656
  • 23
  • 36
5
votes
1 answer

node.js Code completion / intellisense

I have problem with node.js code completion in webmatrix2/visual studio2012 I have read all of the howtos that I could find I couldn't find a proper solution. The code completion and intellisense works limited. Mostly it works on the main modules…
user2173203
  • 51
  • 1
  • 2
4
votes
2 answers

You must call "WebSecurity.InitializeDatabaseConnection" ... But I already have

I've read through a number of SO questions on this topic, but all seem to be dealing with where you should put this call. My problem is different: I have already done the WebSecurity.InitializeDatabaseConnection() call, and have set breakpoints so I…
Dave Hanna
  • 2,491
  • 3
  • 32
  • 52
4
votes
4 answers

How can I put the reCAPTCHA ASP.NET plugin in a Razor (CSHTML) file?

Let me start off by saying that I'm using WebMatrix. I'm trying to add a reCAPTCHA plugin to my ASP.NET website. I had a look at the quickstart documentation for their ASP.NET plugin. Here is part of their example: <%@ Page Language="VB" %> <%@…
Brandon Miller
  • 2,247
  • 8
  • 36
  • 54
4
votes
1 answer

Razor code block usage

I'm just getting started with webpages and I can't quite figure out why a code block doesn't work. I need to conditionally display a WebGrid. Before I started I have this:
@grid.GetHtml()
Now I try to insert an if statement:
Neil Dobson
  • 1,239
  • 1
  • 12
  • 24
4
votes
1 answer

Webmatrix 2: Storing static values

Where would be the best place to store static values. And how would I access it. I want to be able to access static values from any page. But only have to define them in one place. For example 'email' and 'phoneNumber' I have tried things like…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
4
votes
4 answers

Custom Profile Provider new MVC 4 template with Dotnetopenauth

How do you now configure the membership, profile and role manager using the new MVC template with DotNetOpenAuth enabled? I don't see the configurations in the web.config so how do you now implement a custom profile provider?
3
votes
1 answer

WebMatrix.WebData can't read membership information from a separate ASP.NET application

I have an existing project, which uses ASP.Net, System.Web.Security, and WebMatrix.WebData for the membership system. This application is where all the users are created, updated, etc, and stored to a database. I also have a separate application,…
Andrew Williamson
  • 8,299
  • 3
  • 34
  • 62
3
votes
1 answer

How to create Transaction Commit and Rollback in Webmatrix.Data.Database

I am writing a code for my webmatrix project where transaction commit and rollback is applied. I am Using mysql 5.1 and innodb database engine for transaction support. I use db.Connection.BeginTransaction(); try { …
NorCode
  • 679
  • 1
  • 12
  • 33
3
votes
2 answers

How can I assigned roles automatically in webmatrix

I want to assigned new registered users automatically the role of Member in Database.
1
2 3 4 5 6 7