System.Security.SecurityException. Plzz Help

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.
11/3/2007 7:02:27 AM
Gravatar
Total Posts 18439

Re: System.Security.SecurityException. Plzz Help

As I mentioned in my previous post. I think to use the newer version of MySql connector the mojoPortal code would have to be re-compiled against that version. I will do that for you and send you an email with a new mojoPortal.Data.dll in a little while.

Joe

11/3/2007 7:25:09 AM
Gravatar
Total Posts 17

Re: System.Security.SecurityException. Plzz Help

Hey Joe!

Thts so nice of you. Thank you.

Can you plzz email tht Dll file to me on this email Address --> kunjan@creativityinsight.com

Thnx alott.

 

11/3/2007 9:11:44 AM
Gravatar
Total Posts 17

Re: System.Security.SecurityException. Plzz Help

Hey ! Joe.

Finally it Worked. and successfully install the CMS on webserver.

But When i m opening Admin menu it shows this error.

---------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'portal:OpenIDLoginControl'.

Source Error:

Line 37: <div class="floatpanel">
Line 38: <asp:Panel ID="pnlOpenID" runat="server" Visible="false">
Line 39: <portal:OpenIDLoginControl id="oidLogin" runat="server"></portal:OpenIDLoginControl>
Line 40: </asp:Panel>
Line 41: <asp:Panel ID="pnlWindowsLive" runat="server" Visible="false">


Source File: /Secure/Login.aspx Line: 39

11/3/2007 9:17:53 AM
Gravatar
Total Posts 18439

Re: System.Security.SecurityException. Plzz Help

Open the /Secure/Login.aspx file with a text editor and chop out this part:

<portal:OpenIDLoginControl id="oidLogin" runat="server"></portal:OpenIDLoginControl>

I will update the Medium trust documentation to include this info now.

Best,

Joe

11/5/2007 12:22:31 AM
Gravatar
Total Posts 17

Re: System.Security.SecurityException. Plzz Help

Hey! Joe

 

Thnx Alott. Login screen now comes up.

But facing weired problem now, I can't Login with the admin@admin.com(Email) and admin(password).

For database installation what i have done is that, first of all i setup my site with all pages at local machine, and then from there I export a complete database SQL file(with all tables) from MYSQL and I just import that file into my online Mysql server Database. So, all my settings and Pages are showing up in My Website.

The website is showing up perfectly, But i can't able to Login in Admin menu.

Plzzz Help me out in this....... 

11/5/2007 6:08:42 AM
Gravatar
Total Posts 18439

Re: System.Security.SecurityException. Plzz Help

You are not seeing an error just login failure?

Are you sure you didn't change the password when it was running on your local machine? I would look in the mp_Users table and verify your password. Also make sure FailedPasswordAttemptCount is 0 and IsLockedOut is 0.

If you previously set it to encrypt passwords then you may need to manually change that back in the mp_Sites table by setting PasswordFormat = 0 then manually set a new password in mp_Users table. Once you get it working again you can set it back to use encrypted passwords if you want to.

If there is any error happening you can find it in /Data/currentlog.config file

Hope it helps,

Joe

 

11/5/2007 6:11:17 AM
Gravatar
Total Posts 18439

Re: System.Security.SecurityException. Plzz Help

Also be sure you are not running any privacy guard type software that might be blocking cookies on the internet by default but not on localhost. Even things like google toolbar can cause this if the settings for privacy are strong. If you are using IE, try Firefox, or if using Firefox try IE.

 

Joe

11/16/2010 7:00:29 AM
Gravatar
Total Posts 4

File system permissions problems found

<!--[if gte mso 9]> Normal 0 false false false EN-US X-NONE FA MicrosoftInternetExplorer4 <![endif]-->

/setup/default.aspx

 

Probing system...
File system permissions problems found.

The Data folder beneath the root of the web site is not writable by the ASP.NET worker process.

You need to make this folder and all its child folders and files writable before setup can proceed. mojoPortal needs this to be able to write search index files, error logs, image gallery uploads, and other important features.

Right Click the Data folder in Windows explorer, choose properties and go to the Security tab. (On XP if you don't see the security tab then google for XP Simple File sharing to learn how to make that tab appear.) On XP you typically need to give write permission to ASPNET user while on Windows 2003 you need to give it to IIS_WPG user.

Obviously, instructions are a little different on Linux/Mono but the same principle is true, the Data folder and all its child objects must be writable.

Folder Details

·  The Data folder is not writable.

·  The Data/Sites/1/ folder is not writable

·  The Data/Sites/1/systemfiles/ folder is not writable

·  The Data/Sites/1/index/ folder is not writable

·  The Data/Sites/1/SharedFiles/ folder is not writable

·  The Data/Sites/1/SharedFiles/History/ folder is not writable


MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
This site appears to be running in a secured environment using Medium Trust policy or at least lower than Full Trust.



Configuring feature Html Content - 00:00:00.7011270
Configuring feature Site Statistics - 00:00:00.7753410
Configuring feature Web Part - 00:00:00.7802235
Configuring feature Newsletter Sign Up Form - 00:00:00.7812000
Configuring feature Bing Map - 00:00:00.8075655
Configuring feature Blog - 00:00:00.8759205
Configuring feature Contact Form - 00:00:00.9882180
Configuring feature Event Calendar - 00:00:01.0048185
Configuring feature Feed Manager - 00:00:01.0184895
Configuring feature Flickr Slide Show - 00:00:01.0389960
Configuring feature Image Gallery (Simple Folder Version) - 00:00:01.0438785
Configuring feature Forums - 00:00:01.0585260
Configuring feature Google Map - 00:00:01.0809855
Configuring feature Google Translate - 00:00:01.0946565
Configuring feature Html Fragment Include - 00:00:01.1122335
Configuring feature IFrame - 00:00:01.1171160
Configuring feature Image Gallery - 00:00:01.1298105
Configuring feature Simple List/Links - 00:00:01.1425050
Configuring feature Live Messenger Chat - 00:00:01.1532465
Configuring feature Poll - 00:00:01.1639880
Configuring feature Shared Files - 00:00:01.1727765
Configuring feature Survey - 00:00:01.1844945
Configuring feature Twitter Profile Widget - 00:00:01.1913300
Configuring feature Twitter Search Widget - 00:00:01.1942595
Configuring feature Web Store - 00:00:01.2225780
Configuring feature Xml/Xsl - 00:00:01.2499200
Ensuring all features are installed in server admin sites... - 00:00:01.2508965

An Error Occurred:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source:mscorlib

Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.EnsureTemplateImageFolder(String siteFolderPath) at mojoPortal.Web.mojoSetup.EnsureAdditionalSiteFolders(Int32 siteId) at mojoPortal.Web.mojoSetup.EnsureAdditionalSiteFolders() at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

When I set permission data folder  (in plesk – plesk IIS-user and Plesk IIS WP set to full Controll)

 

Probing system...

An Error Occurred:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source:mscorlib

Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.TouchTestFile() at mojoPortal.Web.mojoSetup.DataFolderIsWritable() at mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

 

Code Access Security

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