chrisoc
 New Member Posts:3
 |
| 01 Jun 2009 01:41 AM |
|
Hi Mitchell, I've recently purchased your book and have began the process of working through the module devlopment tutorial. I've previously installed DNN 4.9.2 on my Vista Ultimate computer, using the Install package. I've also successfully built a website on this computer. To complete my project, I need a couple custom modules, so I've picked up your book to hopefully learn the best way to do this. I downloaded the C# templates from this site and installed them into VS 2005. I'm running Team Edition for Software Developers w/ SP1 and the Vista update. When I try to create a new project, selecting one of the templates and following the instruction in your book, I get the error below. I've tried both templates (with and wo/ DAL) as well as the one available from Bite the Bullet. Everything else with my DNN website and VS seems to have always worked fine. I'm a bit confused. Do I need to reinstall DNN using the Source Package first? Many thanks, ~Chris The web Application Project test is configured to use IIS. To access local IIS web sites, you must install all of the following windows components: Internet Information Services IIS6 Metabase and IIS6 Configuration Compatibility ASP.NET In addition, you must run Visual Studio in the context of an administrator account. By default windows runs applications in a limited-privilege user account even when you are logged on to the computer as an administrator. To run Visual Studio with administrative privileges, right-click the visual Studio icon and then click ‘Run as administrator'.
|
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 01 Jun 2009 02:02 AM |
|
Chris, The way that the project is setup, it is setup to use IIS, I do this to ensure that design time support works for everything. (DNN Label, Text Editor, etc..). You simply need to follow the items it listed. You can setup IIS, IIS6 Metabase and ASP.NET under the add/remove windows features configuration within Windows. Then, when running Visual Studio, be sure to right click and "Run as Administrator". |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
chrisoc
 New Member Posts:3
 |
| 01 Jun 2009 02:11 AM |
|
Hi Mitchell, Thanks for the prompt reply. I do have IIS (7) and .NET (3.5) installed and running. My current DNN project runs off both of these. I also have tried opening VS, by right clicking the program icon and using 'Run as Administrator'. Any other thoughts? Thanks, ~Chris |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 01 Jun 2009 02:14 AM |
|
The only thing I can think of is to be sure that you have the IIS 6 items installed, they are NOT part of the default IIS configuration. If you have been able to Create the project and not yet open it, you can manually modify the csproj file and set "useiis" to false, and that should get you in. Otherwise, if you are still having issues, drop me an email and lets see if we can arrange a time and I can try to help you out. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
chrisoc
 New Member Posts:3
 |
| 01 Jun 2009 03:31 AM |
|
Hi Mitchel, That was it! I was missing the IIS6 compatibility components. Thanks again. ~Chris |
|
|
|
|
ddosen
 New Member Posts:5
 |
| 12 Mar 2010 04:43 PM |
|
Here are a few issues: I'm wanting to use your templates, only here are my issues while using VS 2008, Windows 7 and IIS 7.5 (not 7.0). I've installed compatibility to IIS6 (and all of the other pre-reqs) You can't get VS 2008 to create a new module project (BlankNoDALModule or BlankModuleWithDal) without trying to configure a install in http://localhost:dnn - no big deal You can't get VS 2008 settings to recognize a DNN web site created under IIS 7.5 because it just doesn't see it. Therefore you can't change the default site location from http://localhost/dnn if you wanted. If you try to create a dnn site at http://localhost/dnn, the templates won't see it there... because it was created with IIS 7.5 What's a good work around? Don't use this template? Are Visual Studio 2008 and Windows 7 too new to use to develop with?
|
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 12 Mar 2010 05:18 PM |
|
Are you running VS as an administrator? For it to get access to IIS you must be an admin. In addition, to match the template you need DNN installed at http://localhost/dnn, or to modify the template. I use the templates on Windows 7 with all of my machines without issue. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
ddosen
 New Member Posts:5
 |
| 12 Mar 2010 05:21 PM |
|
Yep - I'm running as admin And when I did create a site on http://localhost/dnn - I coudn't get the project to recognize it. Is there something else I need to do? Can you let me know exactly which IIS 6 compatibility options you have selected in your install? Thanks in advance, Dan |
|
|
|
|
ddosen
 New Member Posts:5
 |
| 12 Mar 2010 05:22 PM |
|
| Or more correctly - I couldn't get the project settings to recognize it... |
|
|
|
|
ddosen
 New Member Posts:5
 |
| 12 Mar 2010 05:53 PM |
|
When I try to create a module - with what i believe are the correct settings, AND with a site already running at http://localhost/dnn - I get this error when trying to create the module: --------------------------- Microsoft Visual Studio --------------------------- The local IIS URL http://localhost/dnn specified for Web project BlankNoDALModule1 has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?" --------------------------- Yes No --------------------------- If I say Yes, --------------------------- Microsoft Visual Studio --------------------------- Creation of the virtual directory http://localhost/dnn failed with the error: The URL 'http://localhost/dnn' is already mapped to a different folder location. --------------------------- OK --------------------------- If I say no : well, I don't get a project  |
|
|
|
|
ddosen
 New Member Posts:5
 |
| 12 Mar 2010 05:57 PM |
|
I'm trying this on WS 2008 too - same error! - Here's from the event log: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 3/12/2010 3:45:52 PM Event time (UTC): 3/12/2010 11:45:52 PM Event ID: c23d81db18834965945d502027c24573 Event sequence: 20 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/dnn-1-129129111370423050 Trust level: Full Application Virtual Path: /dnn Application Path: C:\inetpub\wwwroot\dnn\ Machine name: CARLBV-WS08WS Process information: Process ID: 4380 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: SqlException Exception message: Could not find stored procedure 'dbo.PurgeEventLog'. Request information: Request URL: Request path: User host address: User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 3 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.PurgeLog() at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.PurgeLogBuffer() at DotNetNuke.Common.Initialize.LogEnd() at DotNetNuke.Common.Global.Application_End(Object Sender, EventArgs E) Custom event details:
|
|
|
|
|
BobMc
 New Member Posts:6
 |
| 18 Jul 2010 10:41 PM |
|
I've recently gotten the DotNetNuke Module Programming book and ran into the same issue that ddosen has. "The local IIS URL http://localhost/dotnetnuke specified for Web project GuestbookCS has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?" I was wondering has anyone found a fix/workaround for this. I'm assuming that the issue is that the C# Templates I've downloaded, both the VS2008C#CompiledDNNModule, (Downloaded at bitethebullet.co.uk) and CSharp_Blank_ModuleWithDAL, (Downloaded Here) are built for DNN4. I have DNN5 on my local machine, which is Windows XP Pro SP3, using VS 2008 Web Dev Express SP1. I haven't tried this yet, but was wondering if the C# Template Chris Hammond released in June would work just as well. Would there be any major issues using his temaplate and still being able to follow along in the book? Thanks, Bob
|
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 19 Jul 2010 08:48 AM |
|
Bob, Chris' template would work as well, the only issue is that you need to setup a virtual directory for the DNN install on your machine at http://localhost/dotnetnuke, then the templates will work as you would expect. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
BobMc
 New Member Posts:6
 |
| 19 Jul 2010 08:15 PM |
|
Mike, Thanks for the reply. However it doesn't appear I can setup the vitrual directory for the DNN install on my machine at http://localhost/donnetnuke. After I click the OK option from the pop up window I get the message "Unalbe to create the virtual directory. http://localhost/dotnetnuke". If I try manually by clicking on the button "Create Virtual Directory" just to the right of the Project URL: field within the Web section. I get the message "Unable to create the virtural directory. The URL 'http://localhost/dotnetnuke' is already mapped to a differnt folder". That make sence to me because obviously I've already installed DotNetnuke and setup the Virtual on my machine. I've went back through the book and can't seem to find what I missed, if anything. BTW..Not sure how this might change things and I'm not sure what the real differences are but reviewing Chris' instructions for his Template he indicates "We then need to configure the Use Local Web Server option, the Project URL is http://localhost/dotnetnuke/desktopmodules/ModuleName2...." But again I'm so new to all this I'd rather follow along using the templates outlined in the book. Any suggestions? Thanks, Bob |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 19 Jul 2010 10:40 PM |
|
Bob, This will work, IF your project was created inside of the localhost/dotnetnuke installation path. That is where it must be for the template to work as expected. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
BobMc
 New Member Posts:6
 |
| 20 Jul 2010 08:36 PM |
|
I ended up adding the /desktopmodules/GuestbookCS to the end of the path and it saved with out error. I'm still only at the point of updating the Provider files, so I'm not sure if I'll run into any errors yet. I have to say I don't compeletly understand when you say "IF your project was created inside of the localhost/dotnetnuke installation path." Are you indicating that I should have opened VS then opened up my DotNetNuke project, meaning all my DNN files and such show up in the Solution Explorer, then create the GuestbookCS project? Because I didn't do it that way, I opend up VS, then selected new Project, gave it the name of GuestbookCS and the Location of C:\Inetpub\wwwroot\dotnetnuke\DesktopModules and once it created the GuestbookCS project only the Guestbook files showed in the Solution Explorer. Also on a side note, and this may not make a difference but I installed DNN, a few months ago, using the Windows Installer vs manually going through the process as indicated in the book and just a quick reminder I'm using VS 2008 Web Dev Express SP1, not sure if either of those could make a make a difference but wanted to mention just in case. I'm sorry to be such a pain, and I appreciate you taking the time to provide some help. I have basically no dev skills, so I'm learning as I go, I just want to try and get it right the first time, and understand how it works so I can build my skill set in this area. Thanks again for the help! Bob
|
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 21 Jul 2010 01:10 AM |
|
Bob, Based on what you are saying you did setup the project properly, and you are correct that you should NOT be opening the DNN files themselves. I can say that I have not had an issue with the virtual directory as you mention. (I have created 300+ modules, so I figured I would have seen it by now). My guess is that it might be a difference with regards to VWD, I haven't used an express edition in many years, so it could be a simple difference between editions. My only note with it requiring you to configure the project that way is that you might want to read up on my blog (I'm not sure if it is in the book), but in the project settings for the root URL you will want to override this. I can try to dig up the specific blog article if you can't find it.
|
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
BobMc
 New Member Posts:6
 |
| 21 Jul 2010 07:20 PM |
|
The only blog I found was "How To Get Design-Time Support for DNN Controls" from mitchelsellers.com that had anything to do with override application root URL. Is that what you were referring to? Just as a side note, Chris' template instructions indicated that had to be done as well. Also I created a new test envir on my laptop, Windows 7, installing DNN using the process laid out in the book. I installed both full versions of VS, 2008 and 2010, and downloaded the module tempates for each from bitethebullet.co.uk. My company provides me with a MSDN license for the server side of things. Techinally I shouldn't be using it for personal use, but we'll let that be our little secert.. :-) Anyway I ran into the same issue, I couldn't save the Project Properties unless I added the /desktopmodules/GuestbookCS to the end of the local server path in either version. Since it doesn't appear to be an issue with VS, and my install, the second one, is pretty much what was laid out in the book, it has to be with the module templates I downloaded, right? I can't seem to use the module templates on this site because just before it actually completes the creation of the project and shows the files in Solution Explorer I get a warning message saying "The local IIS URL http://localhost/dnn specified for Web project "projectname" has no been configured. In order to open this project the vitural directory needs to be configured. Would you like to create the vitural directory now?" I say no because it says localhost\dnn, it doesn't appearently see that my current dotnetnuke installation is localhost\dotnetnuke. Thanks, Bob
|
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 22 Jul 2010 09:05 AM |
|
Bob, For the templates available on this site, they are setup with the /dnn path as that is the one that I use for my machines. You can modify the template to change that value that would resolve the issue. The odd part here is that the project should be properly configured out of the box, the only modifications I ever have to make are for the root URL. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
BobMc
 New Member Posts:6
 |
| 22 Jul 2010 10:23 AM |
|
That would be great if I could use the template off of this site. Can you tell me how to change the /dnn path? I found the template .zip file at C:\Users\username\Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#\Web and I went through several of the files, well almost all of them and that never jumped out at me. Thanks, Bob |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 22 Jul 2010 10:46 AM |
|
| You will need to modify the .csproj file that is contained in the template. Open it with notepad, and down towards the bottom you will see the http://localhost/dnn item, just modify it to fit your alias, then update the zip. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
BobMc
 New Member Posts:6
 |
| 22 Jul 2010 01:14 PM |
|
Talk about a frustrating issue, I think this is why I chose to go into networking all those yrs ago verses programming. But now that I'm a bit older and wiser I've developed some patience over the years, even though my kids would disagree, but hopefully I get past this without throwing this laptop against the wall. It's provide by work, so I'd get a new one.. :-) I got the file modified and when I attempt to create a new project I'm again prompted: "The local IIS URL http://localhost/dotnetnuke specified for Web project "projectname" has no been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?" I say yes, cause it has the correct path now, and then I get the next message: "Unable to create the virtual directory. The URL 'http://localhost/dotnetnuke' is already mapped to a different folder". In this case the project files never show up in the solution explorer, but the project is created under the DesktopModules folder, I just can't seem to get to them via VS. To give you a bit more info, last night I moved forward with the project, using the bitethebullet.co.uk module template, the one I had to override application root URL. The module built with out an issue, and then installed in DNN fine. I added the module to my test page, however I got a error when I attempted to add an entry. I haven't gotten to the debugging yet so I'm not sure if its related to the override or not, but wanted to let you know how far I've gotten but since wasn't sure if using that override would cause any issues and if/when it would rear its ugly head. If you've got any more thoughts or suggestions I'm all ears... Thanks, Bob
|
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:337
 |
| 22 Jul 2010 01:20 PM |
|
Bob, I'm out of ideas at the moment, as I've never had that issue before. I'd have to be looking at it to get a better idea. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
mackeny
 New Member Posts:1
 |
| 14 Dec 2010 07:57 PM |
|
I was having this same problem while following the instructions for the GuestbookVB module. The mistake I was making was to name both the 'project url' and the 'Override application root URL' http://localhost/DotNetNuke. Instead they should be; Project Url: http://localhost/DotNetNuke/desktopmodules/GuestbookVB and Override application root URL: http://localhost/DotNetNuke. This worked for me. Good luck! |
|
|
|
|