Medium trust issue

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.
6/14/2009 3:56:16 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Medium trust issue

All,

Apologies in advance as this issue is not strictly mojoPortal, but I am hoping someone will be kind enough to point me in the right direction.

On a virtual Windows Server 2003, I have two web-sites: mojoSite and supportSite. (supportSite is used to get some data from admins which is then formatted via custom mojoPortal modules for display on mojoSite.)

The files are stored as follows:

  mojoSite: c:/inetpub/wwwroot/mojocms
  supportSite: c:/inetpub/wwwroot/support

Within IIS admin, I have configured mojoSite to be the default site (primarily so users can simply enter the URL and get to the site). supportSite is also configured iwthin IIS admin.

The problem I am having is that when I try to access supportSite, I get the following error message:

Parser Error Message: Could not load file or assembly 'Brettle.Web.NeatUpload' or one of its dependencies.

The web.config for supportSite does not reference this in any manner, thus I am assuming that since mojoSite is the default, that its web.config is being read. (Note that mojoSite works just fine.)

Can you please suggest the most straight-forward means for resolving this problem? Thank you!

6/14/2009 3:58:11 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Medium trust issue

p.s. I tried copying the Brettle.*.dll to the bin directory of supportSite, but then the same error occurred with the next module listed in the mojoPortal web.config file...

6/15/2009 10:10:10 AM
Gravatar
Total Posts 18439

Re: Medium trust issue

You don't mention the url structure for the support app. If its really a separate IIS site with a separate host name like support.yourdomain.com, there should be no conflict. If its not really a separate site but a virtual directory beneath the mojosite then the web.config for mojoportal since it is in the root interferes with the web.config settings for the child app. There are ways around it using a <location> element in Web.config to wrap some of the mojoportal settings and limit their scope. If you do some googling about the location element you will find solutions for similar problems as this can be an issue anytime you have one  .NET app in the root of a site and another in a virtual directory beneath it.

Hope it helps,

Joe

6/15/2009 9:14:40 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Medium trust issue

Joe,

Thanks for the pointer. I was able to do some digging and found this:

http://www.kowitz.net/archive/2007/05/16/stopping-asp.net-web.config-inheritance.aspx

Solves the problem perfectly!

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