Just another WordPress site

5Sep/130

Help with ASP.NET MVC 4 Mobile App Development Sample Code

If you're running the source code in the book directly, the original distributions did not include the .nuget folder and the NuGet packages needed to build the solution.  This is in the spirit of NuGet but not, perhaps, in the spirit of source code accompanying a book.  The fix is fairly straight forward: enable the solution to restore the NuGet packages.

To enable a NuGet package restore, open the solution having a problem loading the project, right click the solution, and select "Enable NuGet Package Restore" on the context menu.

The solution will now build, but you may receive an error that resembles the following.

This is because the database doesn't exist and the membership provider is trying to create tables in a non-existent database.  To create the database, simply run the Update-Database command in the Package Manager console.

Occasionally, the package manager console will tell you Update-Database is an unrecognized cmdlet.  This appears to be a bug in Visual Studio you can fix by restarting, though some reports state that an occasional reboot is required.

I will be posting the entire source code for each chapter to my blog and will also make revised solutions that run "out of the box" available on the Packt website.

 

Filed under: Uncategorized No Comments
5Sep/130

Announcing ASP.NET MVC 4 Mobile App Development

So I'm a little late announcing this, but my book, "ASP.NET MVC 4 Mobile App Development", is now available.  The book itself is targeted at developers that have experience with .NET and some possible exposure to web development but not necessarily ASP.NET MVC.

In celebration of the release, Packt Publishing is offering free copies of ASP.NET MVC 4 Mobile App Development in exchange for a review either on your blog or on the title’s Amazon page.

Here’s the blurb from my publisher:

  • Learn and utilize the latest Microsoft tools and technologies to develop mobile web apps with a native feel
  • Create web applications for the traditional and mobile web
  • Discover techniques used to overcome the pitfalls of developing Internet-ready apps
  • Understand the differences between developing traditional web apps and apps targeting the mobile web
  • Learn to use the conventions and configurations used by Entity Framework 5.0 to tailor our model to suit our requirements
  • Secure your apps and protect your users from Internet attacks like XSS and CSRF
  • Familiarize yourself with HTML 5 and CSS 3 to develop next-generation web apps
  • Socialize your app using SignalR and WebSockets to provide real-time features to your users
  • Create highly-optimized multi-threaded mobile apps using the new async and await keywords and content bundles

If you’re familiar with C# development on the .NET platform and are interested in web development with the ASP.NET MVC development framework, this is a good way to bag yourself a free cookbook (current retail price $22.94).

Free review copies are available until Sunday 8th September 2013.

If you’re interested, email Harleen Kaur Bagga at: harleenb at packtpub.com.

8Mar/110

Getting around the disabled Full-text Index menu item in SSMS 2008

Working with SQL Server 2008 R2 is a huge improvement over the previous versions of SQL Server.  One of the biggest steps forward in SQL Server 2008 was the integration of Full Text Search into the core SQL Server process.  iFTS, however, doesn’t always play nice with SQL Server Management Studio.

Full Text Search is enabled by default now in SQL Server and sp_fulltext_database remains only for backwards compatibility so why, pray tell, do several people report that they cannot select “Full-Text index” from the table context menu after creating an iFTS Catalog in the database containing a table?

full-text-disabled

Launching SSMS as an Administrator has done absolutely nothing for me to fix this problem.  Thankfully, for those that aren’t comfortable with scripting the indices the UI does allow another way to do this -- albeit without the wizard the context menu presents.

Navigate down to the Storage | Full Text Catalogs node under the database to which you want to add an iFTS Full-Text index, expand it, right-click the iFTS Catalog that will contain the index and select “Properties” from the context menu.

image

On the dialog box that pops up, select the “Tables/Views” page.

image

From here you can add tables into the catalog, select the unique index and eligible columns, choose the word break language, set column data types and even set the change tracking method.