Web.config in development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/3/2011 1:22:23 PM
Gravatar
Total Posts 167

Web.config in development

Joe,

Hi, I'm progressing fairly well with the initial stages of the development tutorials, however have come to an issue with creating the first module.

On following the tutorial video (Dev Series 3) I was applying the fix to the web.config file to include the references to <pages> (at 9:42 mins into tutorial). My issue is that the Web.config file created in the new project  is incomplete, it does not have event the shorter version of <pages> for me to replace nor other sections such as <httpHandlers>.

Do you know how I get the more complete version of the web config in place when I create a new project. Is there something I need to do to get the the web.config with the section in as I create a new project.

Kind regards

3/20/2012 12:16:06 PM
Gravatar
Total Posts 167

Re: Web.config in development

Still stuck here, I have started again and come up with the same issue. This time I will will "plod on" to see if it is an issue. 

Below is the issue, much as explained before but with a little more detail:

At 9:38 in dev series 3 Custom solution for mojoportal Project, you look to past the <pages> section from mojoportal.Wb into the web.config part of the new project. I am looking to do this however do not have a Pages section and have a much more cut down version of the web.config in my new project than shown in the video. In my config.web I do not have the <configsections> <assemblies> <httphandlers> or the <pages> section that you suggest to replace with the <pages> from the main web.comfig.

I am concerned that I have set this up incorrectly and taking across the wrong values to the web.config in my project, or is it jyst the case that things have moved on since this video was created.

3/20/2012 1:05:31 PM
Gravatar
Total Posts 18439

Re: Web.config in development

If your Web.config in your feature is missing the <pages element just paste in the whole pages section from the mojoPortal Web.config

<pages must be inside the <system.web> but the order of things inside <system.web> is not important

Don't worry about the things that are not in there, you don't need to add anything else not mentioned as specifically needed.

Hope that helps,

Joe

3/21/2012 3:32:06 AM
Gravatar
Total Posts 167

Re: Web.config in development

Again, spot on Joe.

I moved on just as suggested and all is working very well.

Very much looking forward to creating some custom features

3/21/2012 7:24:27 AM
Gravatar
Total Posts 18439

Re: Web.config in development

Thanks again for the beer!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.