server error has occurred

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.
4/9/2009 10:53:48 AM
Gravatar
Total Posts 5

server error has occurred

Hi, I have I have troubling installing Mojoportal.

New install.
Using:
- windows
- MySql v.5
-latest version of mojoportal

What I have done
1. downloaded lastest Mojoportal.
2. Unzipped local.
3. downloaded MySql package and unzipped ddl files to specified folder.
4. Created database on server
5. (tried to...) edit the user config (see below)
6. upload all in folder wwwroot to the rootfolder (to the folder that usually contains the index.html file)
7. Given write access to /Data folder

 

(And uncomment “medium Trust” due to earliger error report)

 

And when I try to run the setup I get this report: (in /data folder), I have tried diffrent things, this is the latest error...

 


2009-04-09 16:37:53,127 ERROR mojoPortal.Web.Global - xxx (my ip was here...)-sv-SE - /Setup/Default.aspx
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Web.HttpContext.System.IServiceProvider.GetService(Type service)
at Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest()
at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer

 


We're sorry but a server error has occurred while trying to process your request.
The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.


Thanx for all help... dont know what to do

Best regards
Nicklas
 

4/9/2009 10:58:58 AM
Gravatar
Total Posts 18428

Re: server error has occurred

Hi,

Follow the steps listed here:

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

Hope it helps,

Joe 

4/9/2009 11:02:36 AM
Gravatar
Total Posts 5

Re: server error has occurred

Thanx a lot , I give it a try

best regards

Nicklas

 

4/9/2009 11:10:55 AM
Gravatar
Total Posts 5

Re: server error has occurred

Hi again...

my provider says that I have to use this, to get the connection correct, and some part of this are not in the user config or in the web config what I can see. My questin is: should I try to add this information in the config - and if Yes, how?


User ID=användarnamn;Password=lösenord" providerName="System.Data.SqlClient"/>

Thanx a lot

4/9/2009 11:14:28 AM
Gravatar
Total Posts 18428

Re: server error has occurred

Your provider is mistaken, mojoPortal uses the connection string from appSettings and the connection string they show you is for MS SQL, you said you were using MySql.

Hope it helps,

Joe

4/9/2009 11:19:49 AM
Gravatar
Total Posts 5

Re: server error has occurred

yes, MySql. I appreciate your help a lot
best regards

 

 

4/9/2009 11:24:35 AM
Gravatar
Total Posts 18428

Re: server error has occurred

<connectionStrings>
<add name="myConnStr" connectionString="Data Source=sql2.binero.se;Initial Catalog=databasensnamn;Persist Security Info=True;
User ID=användarnamn;Password=lösenord" providerName="System.Data.SqlClient"/>
</connectionStrings>

The above that your host told you is for MS SQL, see  "System.Data.SqlClient"

and this part also looks like an MS SQL connection string: 
"Data Source=sql2.binero.se;Initial Catalog=databasensnamn;Persist Security Info=True;User ID=användarnamn;Password=lösenord"

mojoPortal uses the settings from appSettings - example:

<add key="MySqlConnectionString" value="Data Source=localhost;Database=mojoportal;User ID=mojouser;Password=mojo123;Charset=utf8;" />

It can go in Web.config appSettings or user.config appSettings

but you need the right connection string for your MySql db provided by youre host.

Hope it helps,

Joe

4/9/2009 12:34:34 PM
Gravatar
Total Posts 5

Re: server error has occurred

The content that belongs here is too complex to display securely.
4/9/2009 1:16:26 PM
Gravatar
Total Posts 18428

Re: server error has occurred

Hi,

mojoPortal does not use the ODBC connector, so I would try removing  "Driver={MySQL ODBC 3.51 Driver};" and just put the rest of what they gave you into the appSettings "MySqlConnectionString" connection string setting.

If they only allow the ODBC connector its not going to work, it needs to be able to use the MySql Connector for .NET

Hope it helps,

Joe

6/19/2009 3:16:34 AM
Gravatar
Total Posts 2

Re: server error has occurred

This is bad news. mojoPortal does not support MySQL ODBC conector?? Are there workarounds? If not I have to think of alternatives while my provider does not support the MySQL .NET connector. Is SQLite a good alternative?

Kind regards,
Berthold Hutten

6/19/2009 7:22:45 AM
Gravatar
Total Posts 18428

Re: server error has occurred

Hi Berthold,

I have no plans on supporting odbc connector and don't know of any workarounds other than get a host that supports/allows .NET Connector. 

SQLite is ok for sites with moderate traffic but does not scale well for very high traffic sites and it does not work in medium trust hosting at all.

Best,

Joe

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