Problem with webhosting Medium trust

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/23/2011 8:27:13 AM
Gravatar
Total Posts 3

Problem with webhosting Medium trust

Ing.Zdenek Vlk

2.3.6.4 MSSQL
Operating System Microsoft Windows NT 6.1.7600.0
ASP.NET Info v4.0.30319 Running in Partial Trust
Zóna času serveru Central Europe Daylight Time

My hosting provider is www.web4u.cz. (App. www.oso.cz) I have used as Web.config renamed file Web.mediumtrust.config, but provider sent me attention, that my application is trying to write into another folder than is one for hosting: 

>
>  An unhandled exception occurred and the process was terminated.
>
>  Application ID: /LM/W3SVC/1267/ROOT
>
>  Process ID: 6828
>
>  Exception: System.Security.SecurityException
>
>  Message: Request for the permission of type 
> 'System.Security.Permissions.FileIOPermission, mscorlib, 
> Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
>  failed.
>
>  StackTrace:    at
> System.Security.CodeAccessSecurityEngine.Check(Object
>  demand, StackCrawlMark& stackMark, Boolean isPermSet)
>     at
>  System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission
> cap,
>  StackCrawlMark& stackMark)
>     at System.Security.CodeAccessPermission.Demand()
>     at System.IO.Directory.CreateDirectory(String path)
>     at

> mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
>     at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
>     at

> mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Obje
> ct
>  oTask)
>     at

> System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object
>  state)
>     at System.Threading.ExecutionContext.runTryCode(Object userData)
>     at
>
>
> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante
> edClea
> nup(TryCode
>  code, CleanupCode backoutCode, Object userData)
>     at System.Threading.ExecutionContext.RunInternal(ExecutionContext
>  executionContext, ContextCallback callback, Object state)
>     at System.Threading.ExecutionContext.Run(ExecutionContext
>  executionContext, ContextCallback callback, Object state, Boolean
>  ignoreSyncCtx)
>     at
>
>
> System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoo
> lWorkI
> tem.ExecuteWorkItem()
>     at System.Threading.ThreadPoolWorkQueue.Dispatch()
>     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
>

5/23/2011 12:44:07 PM
Gravatar
Total Posts 18439

Re: Problem with webhosting Medium trust

If you moved the site from another machine I would delete all rows from the mp_IndexingQueue table as it may have had the index path from your old machine there.

See also Moving an Installation of mojoPortal to a Different Server, and the Medium Trust documentation.

Hope that helps,

Joe

5/23/2011 2:26:27 PM
Gravatar
Total Posts 3

Re: Problem with webhosting Medium trust

Thank you very much.
Another a little stupid question: On machine, where I am working with VS2010, on your site www.mojoportal.com is every forums post body replaced by message "NeatHtml not found"? On another machine is all ok (the same internet explorer - Google Chrome).

5/24/2011 8:20:34 AM
Gravatar
Total Posts 18439

Re: Problem with webhosting Medium trust

I'm not understanding you.

Are you saying you are having a problem with forums on your own site or here on this site?

I don't see any problems in the forums here on this site.

NeatHtml is what we use to prevent XSS (cross site scripting) in untrusted content such as in the forums.

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