I'm trying to build a simple custom module to process some form fields but I can't get off the ground with the Sample module. I think I may be creating the wrong type of project in VS2003. I've tried to copy everything that's in the pdf guide.
Should the Web folders etc. be generated automatically by VS?
I had trouble because the assembly in the build options for my module wasn't correct (just HelpForm rather than Cuyahoga.Modules.HelpForm, though I had the namespace and everything right). I inserted the database rows in cuyahoga_moduletype and _version to get the module listed in the Admin section.
When I try to add the module to a page and then view the page, it just throws an exception saying the moduletype is null.
Can anyone help?
Essentially what I'm going to be doing is taking all the form fields' names and values and concatenating them into a string to be processed by another piece of software.
Cheers,
Stu
More precisely:
Line 226: if (moduleType == null)
Line 227: {
Line 228: throw new Exception("Could not find module: " + assemblyQualifiedName);
Line 229: }
Line 230: else
Source File: C:\Downloads\Cuyahoga-1.0.0-src\Core\Domain\Section.cs Line: 228
Stack Trace:
[Exception: Could not find module: Cuyahoga.Modules.HelpForm.HelpForm, Cuyahoga.Modules.HelpForm]
Cuyahoga.Core.Domain.Section.CreateModule(String sectionUrl) in C:\Downloads\Cuyahoga-1.0.0-src\Core\Domain\Section.cs:228
and...
cuyahoga_moduletype line:
14 HelpForm Cuyahoga.Modules.HelpForm Cuyahoga.Modules.HelpForm.HelpForm Modules/HelpForm/HelpForm.ascx NULL 24/10/2006 13:58:42 24/10/2006 13:58:42
cuyahoga_version line
5 Cuyahoga.Modules.HelpForm 1 0 0
Incidentally, I decided to try the SVN version but when I load up the solution in VS2005, it doens't load the webprojects. Says proect type not supported in this installation. Same thing happened when I tried converting v1 to VS2005 by adding the line to the .csproj files.
I think, with the VS 2003 solution, you'll have to add an extra post-build step that copies your Cuyahoga.Modules.HelpForm to the /bin directory. Check the post-build event of the Downloads module for an example.
The reason why the solution doesn't work in VS 2005 is probably that you don't have the VS Web Application Project extension (
http://webproject.scottgu.com). Btw, also with VS 2005 you'll need the post-build step to copy the module files to their correct locations.
The VS Web Application Project currently (21st Feb 07) only works for English versions of VS 2005, so it is currently not possible to develop Cuyahoga 1.5 until a language patch is made available for foreign language versions.
Unless there is another workaround that someone knows?
Ok, there is a workaround ....but very time consuming and long winded one! (6)
See the explanation here:
http://forums.asp.net/thread/1279758.aspx
Web application project is part of VS.NET 2005 SP1. There must be a german version of it.
Hi martijnb,
My work environment has not yet authorized sp1 (under the veil of 'never change a running system'), and I use my work VS2003/5 via remote desktop. It is also not mentioned in the fix list:
http://connect.microsoft.com/visualstudio/content/content.aspx?contentid=4324
, which is why it was not apparent at first glance that this problem had been solved, it seemed that the only solution was the extension (The 'long winded workaround' did work though (a)).
Still, thank you for your direction. I have pointed this out to the gang and hopefully we'll make the switch to sp1 and Cuyahoga 1.5 soon.
I am currently working on a calendar module, and will post it as soon as it is ready (@).
MadShadStill, thank you for your direction. I have pointed this out to the gang and hopefully we'll make the switch to sp1 and Cuyahoga 1.5 soon.
I think the entire world should standardize on one VS.NET version and upgrade to SP1 at the same day ;)
I am currently working on a calendar module, and will post it as soon as it is ready (@).
Cool!