Das Blog

Debugging one line at a time
$1*/ mo WordPress hosting! Get going with GoDaddy!
Menu
  • Home
  • Coding
    • Entity Framework
    • MVC
    • NHibernate
  • JavaScript
    • TypeScript
  • Hosting
  • SEO
  • Social
  • Database
    • MySql
    • SSIS
  • WP
  • Other
    • CakePHP
    • Error Messages
    • Google Maps
Home
Coding
MVC
Setup Sharp Architecture
MVC

Setup Sharp Architecture

Codex Discipulus February 9, 2010
Sharp Architecture

Sharp Architecture

Sharp Architecture is based on the ASP.NET MVC framework with some additions like NHibernate. Helps the developer gain some time without having to worry about the details of getting the MVC framework and data layer exchange running along with all the groundwork. Below is my take on Sharp Architecture 1.0.2009 Q3 release setup in Visual Studio 2008 from their well documented wiki.

Download and Installation

  1. Download Sharp Architecture from their github download page: http://github.com/codai/Sharp-Architecture/downloads
  2. Unzip and click “ClickToBuild.bat” (required if you want to open the source code in Visual Studio, otherwise you can skip this step)
  3. Download and Install T4 Toolbox (http://www.codeplex.com/t4toolbox) needed for CRUD scaffolding.
  4. Copy “SharpArchApplicationTemplate.zip” from “VisualStudioTemplate” directory to your Visual Studio 2008 Project Templates folder (C:\Documents and Settings\{username}\My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#\Web). If subdirectory “Web” does not exist you can create one, it will help to keep all templates organized.
    Copy templates zip file

    Copy templates zip file

    Copy template to folder

    Copy template to folder

  5. From the same “VisualStudioTemplate” directory copy “SharpArchApplicationWizard.dll” to “C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE”

    Copy dll to folder

    Copy dll to folder

Create a Sharp Architecture Web Project in Visual Studio 2008

  1. Open Visual Studio 2008
  2. Go to File -> New -> Project
  3. Under Visual C# , select Web –> My Templates –> S#arp Architecture Application.
  4. Enter a project name with NO SPACES.
  5. Keep “Create directory for solution” unchecked or it will add a new parent folder.
  6. Click “OK”

    New Sharp Architecture Project

    New Sharp Architecture Project

If you get an error message like this one: “Error: this template attempted to load an untrusted component ‘SharpArchApplicationWizard, Version=1.0.0.0 …‘. For more information on this problem and how to enable this template, please see…”, then try this:

  1. If running on a 64-bit OS then drop “SharpArchApplicationWizard.dll” into “C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE” instead.
  2. Try re-registering project or item templates located in Visual Studio’s template directories.
    • Close VS2008
    • Open Programs => Microsoft Visual Studio 2008 => Visual Studio Tools => Visual Studio 2008 Command Prompt
    • Type “devenv.exe /InstallVSTemplates” and press Enter
  3. Add DLL to GAC:
    • Close VS 2008
    • Programs => Administrative Tools => .Net Framework 2.0 Configuration
    • Click “Manage Assembly Cache”
    • Click “Add an Assembly to the Assembly Cache”
    • Add “SharpArchApplicationWizard.dll”
    • This should add the DLL to the GAC.
    • Try creating your project again.
Add Dll to GAC

Add Dll to GAC

Share
Tweet
Google+
Linkedin
Stumble
Email
Prev Article
Next Article

Related Articles

Html.ActionLink not working in Sharp
Framework: SharpArchitecture 1.0.48.410 RC2. Problem: Links (using any form of …

Html.ActionLink not working in Sharp

Working, coding and debugging within Visual Studio environment is very …

MVC + Sharp + IIS7 + NHibernate

About The Author

Codex Discipulus

Hello, my name is David and I am a disciple of coding, always learning and always ready to help. Welcome to my blog, I hope you find it useful, please send your comments and share an article with your friends.

No Responses

  1. Pingback: MugBug Day 1 | Developers Talking
    March 30, 2010

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Hosting ASP.Net Core 3.x Worker Service as …
    Using the Worker template now is possible to host an …
  • Calling an HTTPS WCF Service from Net …
    We all know how to call a WCF service from …
  • How to Add a VS Code Project …
    Let’s try to add a Visual Studio Code project to …
  • Step by Step Token based Authentication in …
    Token Authentication is a very popular method to secure a …
  • How to Ignore NuGet Packages in TFS …
    This should be a short post. It is really just …

Categories

  • CakePHP
  • Coding
  • Database
  • Entity Framework
  • Error Messages
  • General
  • Google Maps
  • Hosting
  • JavaScript
  • MVC
  • MySql
  • Net Core
  • NHibernate
  • SEO
  • SSIS
  • TypeScript
  • Wordpress

Tags

ActiveDirectory analytics apps aspnet CakePHP coding database projects design patterns entity framework error messages fatcow first steps ftp github gitlab godaddy google maps api hangfire Hosting iis7 java javascript membership MVC MySql NHibernate nuget nuget packages oracle owin repository SEO sharp ssis t4 tfs thesis token authentication typescript vs2010 vs2015 vs2017 web api Wordpress wp-pagenavi

Das Blog

Debugging one line at a time
Copyright © 2021 Das Blog
ScottsdaleWebStudio.com © All Rights Reserved 2017