<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Corner of Seven &#187; WAP</title>
	<atom:link href="http://cornerofseven.com/blog/tag/wap/feed/" rel="self" type="application/rss+xml" />
	<link>http://cornerofseven.com/blog</link>
	<description>Helping Tech and People to Get Along</description>
	<lastBuildDate>Wed, 09 Nov 2011 06:41:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>DNN Module Creation, Explained. (part 2)</title>
		<link>http://cornerofseven.com/blog/2010/01/dnn-module-creation-2/</link>
		<comments>http://cornerofseven.com/blog/2010/01/dnn-module-creation-2/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 18:14:44 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Compiled Module]]></category>
		<category><![CDATA[dnn]]></category>
		<category><![CDATA[dotnetnuke]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Starter Kit]]></category>
		<category><![CDATA[WAP]]></category>
		<category><![CDATA[Web Application Framework]]></category>
		<category><![CDATA[Web Site Project]]></category>

		<guid isPermaLink="false">http://cornerofseven.com/blog/?p=117</guid>
		<description><![CDATA[Let&#8217;s assume for the sake of presenting this, that you have a copy of SQL server Express 2008, and Visual Studio 2008. Not that this is the only system you can run DNN on, but the only one I&#8217;ve ever tried doing this with. Once finished, we will have an instance of DNN running, and [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s assume for the sake of presenting this, that you have a copy of SQL server Express 2008, and Visual Studio 2008. Not that this is the only system you can run DNN on, but the only one I&#8217;ve ever tried doing this with. Once finished, we will have an instance of DNN running, and the default compiled module, with a LINQ Data Access Layer added in Part 3. Thanks to Mitchel Sellers for his description on how to build DNN modules here: <a href="http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/179/developing-a-c-wap-module-in-dnn.aspx" >http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/179/developing-a-c-wap-module-in-dnn.aspx </a>.</p>
<hr />
<ol>
<li><strong>Get a copy of DNN.</strong> We can&#8217;t really use it without getting it, now can we?  From <a href="http://dotnetnuke.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=39104#ReleaseFiles">this page</a>, pull down the Visual Studio starter kit. After installing, you should be able to build DNN sites and projects from Visual Studio.</li>
<li><strong>Create a new Web Site project.</strong> Open up Visual Studio, and create a new Web Site project (WSP). Make sure that &#8216;Visual Basic&#8217; is chosen as the language (don&#8217;t worry, you won&#8217;t have to write much VB), and choose &#8216;DotNetNuke Web Application Framework&#8217; as the project type. Give it a place to live, and verify that everything looks right: <a href="http://cornerofseven.com/blog/wp-content/uploads/2010/01/dnnSiteCreationVS.jpg"><img class="aligncenter size-medium wp-image-119" title="Site Creation Dialog" src="http://cornerofseven.com/blog/wp-content/uploads/2010/01/dnnSiteCreationVS-300x195.jpg" alt="Site Creation Dialog" width="300" height="195" /></a></li>
<li><strong>Build.</strong> The site comes ready to go out-of-the-box, so either hit &#8216;Start without Debugging&#8217; from the &#8216;Debug&#8217; menu (thanks VS), or press Ctrl+F5.  After building, a browser window will pop up, and you will be face-to-face with the DotNetNuke Installation Wizard: <a href="http://cornerofseven.com/blog/wp-content/uploads/2010/01/installWizard.jpg"><img src="http://cornerofseven.com/blog/wp-content/uploads/2010/01/installWizard-300x211.jpg" alt="DNN Install Wizard" title="installWizard" width="300" height="211" class="aligncenter size-medium wp-image-121" /></a>Click on the &#8220;Auto&#8221; option to have the site automatically set up a SQL Server database file, and default administrator and host user credentials. <strong>NOTE:</strong> If you don&#8217;t have the &#8220;Auto&#8221; option selectable, because of a SQL Server error (it&#8217;d show up in red on the bottom of the screen), something&#8217;s up with your sql server install.  Either hand configure your server (outside the scope of this tutorial), or fix SQL Server (also outside of the scope of this tutorial).</li>
<li><strong>Open a new instance of Visual Studio.</strong> There might be a better way around this, but I haven&#8217;t found it yet. The instance holding our web site project needs to stay up, so we keep the web site running.</li>
<li><strong>Create a new Compiled Module Project.</strong> In our new instance of VS, go to &#8216;File -> New -> Project&#8230;&#8217; Pick your preferred language (I&#8217;m going with C#), and under &#8216;Project Types:&#8217;, select &#8220;Web.&#8221; In the &#8216;Templates:&#8217; window, under My Templates, select DotNetNuke Compiled Module.  Give the module a meaningful name. <strong>IMPORTANT! Follow these next steps TO THE LETTER, or this doesn&#8217;t work.</strong> Make the project&#8217;s location point to the DesktopModules folder inside our web site, and DESELECT the checkbox that says &#8216;Create Directory for Solution&#8217;. It should look something like this: <a href="http://cornerofseven.com/blog/wp-content/uploads/2010/01/dnnModCreation.jpg"><img src="http://cornerofseven.com/blog/wp-content/uploads/2010/01/dnnModCreation-300x212.jpg" alt="DNN Module Creation" title="dnnModCreation" width="300" height="212" class="aligncenter size-medium wp-image-127" /></a> Finally, Create the solution by pressing &#8220;OK&#8221;. </li>
<li><strong>Run the database script.</strong> One of the files created along with the rest of the Compiled module project (or WAP project) is &#8216;xx.xx.xx.xx.sqlprovider&#8217;, where the xx represents a version number.  This script generates the SQL tables and stored procedures for handling the new module. We need to run this so our Data Access Layer has something to access. In the web site, log on as host, with the default username and password &#8216;host&#8217; and &#8216;dnnhost&#8217;.  Once logged in, go to the host menu, and find SQL.  Copy the contents of the sqlprovider file, and paste them into the text box. <strong>Important:</strong> check the box below the text box that says &#8220;run as script.&#8221; This allows DNN to replace generic pieces in the script with their specific counterparts provided by DNN. Run the script by pressing &#8216;Execute.&#8217; </li>
<li><strong>Install the module.</strong>  In the website, go to host->Module Definitions.  From here, at the bottom of the page, there should be a link that says &#8216;Create New Module&#8217;. Click that, and this menu pops up: <a href="http://cornerofseven.com/blog/wp-content/uploads/2010/01/createModule.jpg"><img src="http://cornerofseven.com/blog/wp-content/uploads/2010/01/createModule-300x138.jpg" alt="Module Creation Page" title="createModule" width="300" height="138" class="aligncenter size-medium wp-image-136" /></a> in the Dropdown, select &#8216;Manifest&#8217;, and the page will reload, with more options. Under Module folder, select your module, and the page refreshes again. a modulename.dnn file should be in the &#8216;resource&#8217; dropdown. Hit &#8216;create module&#8217; to put the module into your website. </li>
<p>Hope that this helped anyone needing it.
</ol>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F&amp;title=DNN%20Module%20Creation%2C%20Explained.%20%28part%202%29" title="Reddit"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=DNN%20Module%20Creation%2C%20Explained.%20%28part%202%29%20-%20http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F" title="Twitter"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F&amp;title=DNN%20Module%20Creation%2C%20Explained.%20%28part%202%29&amp;annotation=Let%27s%20assume%20for%20the%20sake%20of%20presenting%20this%2C%20that%20you%20have%20a%20copy%20of%20SQL%20server%20Express%202008%2C%20and%20Visual%20Studio%202008.%20Not%20that%20this%20is%20the%20only%20system%20you%20can%20run%20DNN%20on%2C%20but%20the%20only%20one%20I%27ve%20ever%20tried%20doing%20this%20with.%20Once%20finished%2C%20we%20will%20have%20" title="Google Bookmarks"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F&amp;t=DNN%20Module%20Creation%2C%20Explained.%20%28part%202%29" title="Facebook"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F&amp;title=DNN%20Module%20Creation%2C%20Explained.%20%28part%202%29&amp;notes=Let%27s%20assume%20for%20the%20sake%20of%20presenting%20this%2C%20that%20you%20have%20a%20copy%20of%20SQL%20server%20Express%202008%2C%20and%20Visual%20Studio%202008.%20Not%20that%20this%20is%20the%20only%20system%20you%20can%20run%20DNN%20on%2C%20but%20the%20only%20one%20I%27ve%20ever%20tried%20doing%20this%20with.%20Once%20finished%2C%20we%20will%20have%20" title="del.icio.us"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F&amp;title=DNN%20Module%20Creation%2C%20Explained.%20%28part%202%29" title="DZone"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fcornerofseven.com%2Fblog%2F2010%2F01%2Fdnn-module-creation-2%2F&amp;partner=sociable" title="Print"><img src="http://cornerofseven.com/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://cornerofseven.com/blog/2010/01/dnn-module-creation-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

