I have spent the last two weeks trying to figure out how to do this, there is no reference to it. I have a module I created. It calls a webservice and uses ajax techniques. It works great locally. When I package it up, either automatically (DNN) or manually, I make sure everything is included.
However, when it is installed on another DNN instance there are two things that need to happen.
1.) The web.config needs an appicationSettings entry to point to the web service
2.) The dll that has the code is eiter not installed (/Bin directory) because I do it separately or if I include the dll file in the dnn file, it gets put into a directory UNDER Bin called Modules.
Now I know there is a
After I install the module I have to move the dll back to the Bin directory and add the lines for the webservice to the web.config. then it works fine.
Problem is, the idea is that I can send this module to admins of disparate installations and they should be able to just install the module without directly editing the web.config or moving the dll file around.
Does anyone know any where I can find a reference on how to do this?
Also,
I have a C# template that I modified for my company and I can create a project which works great. Installing that module throug the SQL statement and Add new definition, produces the exact same result...I still need to copy the dll file over and the web.config of the subdirectory is ignored...and that's the web.config that has the applicationSettings elements I need. so I need to copy those back to the root web.config.