Changes to Web directory source ineffectual

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.
7/18/2007 6:32:42 PM
Gravatar
Total Posts 2

Changes to Web directory source ineffectual

When I try to debug MojoPortal there are no symbols loaded (Web.config's debug=true), and my changes to the source don't take effect.

I thought ASP.NET might be using the mojoportal.web.dll file in the Web\bin directory instead of the on-demand compiling that ASP.NET 2.0 does, but deleting that file keeps the project from building ("Could not load type mojoPortal.Web.Global").  I see the results of changes made to the supporting DLLs (mojoPortal.Data.dll, mojoPortal.Business.dll) copied into the Web\bin directory, but I don't see the results from changes to the files in the \Web directory itself.

I know it's reading the Web.config because I can turn custom errors on and off (found while debugging my changes to the supporting libraries).

Suggestions?

7/18/2007 6:41:30 PM
Gravatar
Total Posts 18439

Re: Changes to Web directory source ineffectual

mojoportal uses pre-compiled codebehind via the VS 2005 SP1 Web Application project type not the Web Site Project type which uses the compilation model you are apparently expecting.

Deploying C# source code on the server has no effect, it will use the compiled dlls in the bin folder regardless of what you change in source. If you want your change to take effect you must compile and redeploy the dll.

The only on demand compiling for this project type is the JIT compilation from msil to native code, it does not compile C# on demand in this project type.

It debugs just fine in VS 2005.

Hope it helps,

Joe

7/19/2007 5:18:32 PM
Gravatar
Total Posts 2

Re: Changes to Web directory source ineffectual

Installing Service Pack 1 fixed the problem.  I was a bit confused by the project file because VS2005 (pre SP1) tries and fails to upgrade it from 7.1 to 8.0.

Thanks,
Michael Mitchell

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