I have a question in regard with packaging modules for deployment on a live site.
I have been using www.bitethebullet.co.uk/DNN4CTemplate/tabid/79/Default.aspx
to setup a C# module.
I have succesfully installed and setup my code to run on a local machine. All works as expected. Next I have been trying to make a new package of the module so I can use it on a live site.
I successfully created a zip file and installed it on DNN. The problem I get is very simple. It complains that
DotNetNuke.Services.Exceptions.ModuleLoadException: The file '/DNN_40503_v2/DesktopModules/InstallFolder/ImageControl.ascx.cs' does not exist. .....
which is a file i have developed. Here is my confusion. I thought when I compile the project, it gets all the cs codes, including the code behind, and makes a dll. The package contains a DLL and when installed, is placed in bin. So why do I get this error. Does the DLL not contain the functions and classes i created. I then did a simple test, I put the cs files next to corresponding ascx files. Suddenly the module worked. It seems that it needs to have the cs files to work. It sounds as if it compiles the cs files on the fly. But the aspx file have codebehind attribute and I have a DLL file, compiled with no errors.
So, to keep the question simple, how can i create a module for deploymeny without including the source code.
Is there an extra step i should take to make the DLL. I already have a few cs files defined as components and they seem to be included in the DLL as they function correctly. I only have issues with cs files used with ascx files.
I hope I described this well, as confused as I am.
Thanks for your help.