Redirecting to Error Page

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/24/2008 2:40:57 AM
Gravatar
Total Posts 4

Redirecting to Error Page

Hi , I have make release by using  UleashIT . It works fine on my local server . But i have copied all files  on my Host Server . It is redirecting on Error page. I cant realize the error . Please help me .

 

9/24/2008 2:49:09 AM
Gravatar
Total Posts 4

Re: Redirecting to Error Page

Now  i have change the web.config

<customErrors mode="Off" defaultRedirect="Error.htm" />

it shows the error

 

 

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54
Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest() +57
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +72
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

9/24/2008 5:19:28 AM
Gravatar
Total Posts 18439

Re: Redirecting to Error Page

Looks like your site is running in Medium Trust. NeatUpload doesn't work in Medium Trust. You need to disable it as specified here:

http://www.mojoportal.com/mediumtrust.aspx

Hope it helps,

Joe

9/26/2008 12:50:42 AM
Gravatar
Total Posts 4

Re: Redirecting to Error Page

Thank you Joe .

 

I have made the chages as you mentioned on the link.

I am one step ahead now but now i am getting this error

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema needs to be created.
This site appears to be running in a secured environment using Medium Trust policy or at least lower than Full Trust.


In order for the Search Engine to work in Medium trust, you need to add this in Web.config in the AppSettings section:

<add key="Lucene.Net.lockdir" value="D:\Domains\scannersindia.in\wwwroot\Data\Sites\1\index" />

 

Running script mojoportal-core - 2.2.6.7 - 00:00:00.1093680
System.Data.SqlClient.SqlException: There is already an object named 'mp_ContactFormMessage_SelectPageByModule' in the database. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at mojoPortal.Data.SqlHelper.ExecuteNonQuery(SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(FileInfo scriptFile, String overrideConnectionInfo) at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:00:00.1406160
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.
======================================

 

you can visit the url as well

http://scannersindia.in/Setup/Default.aspx

i have added

<add key="Lucene.Net.lockdir" value="D:\Domains\scannersindia.in\wwwroot\Data\Sites\1\index" />

the above line in web.config but still the Error is same .

 

Please help me .

 

 

9/26/2008 8:13:13 AM
Gravatar
Total Posts 18439

Re: Redirecting to Error Page

Is this a new installation or an upgrade? Have you packaged your own custom features with it (and your own sql scripts) or is it just including mojoportal?

If its a new installation I would start with an empty db (ie delete all tables and stored procedures) and make sure that there is only 1 file in the /Setup/applications/mojoportal-core/SchemaInstallScripts/mssql

It should only have 2.2.6.7.config in that folder and no other files.

Hope it helps,

Joe

9/29/2008 6:35:00 AM
Gravatar
Total Posts 4

Re: Redirecting to Error Page

Thank you Joe.

I got it .

you can our site visit

http://scannersindia.in

 

 

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