Error on new hosted Installation

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.
8/1/2008 9:59:54 AM
Gravatar
Total Posts 9

Error on new hosted Installation

I am trying to set up a new installation with HostDepartment.  I have created the MSSQL database user and password and added it to the web.config file.  I uploaded all of the files from the mssqlreleasefiles and all of them appear to have uploaded successfuly.  Whenever I go to the setup/default.aspx page, or even the home page, I get the follow error.

Any ideas?

Is there a step by step guide for installing mojoPortal that I'm missing.  I've looked around and have followed the directions that I have found so far.  Is there a aspx page that just checks to make sure all the file permissions and the db permissions are set correctly?

Thanks for any help you can give me.  The error message I get is below:

 

Server Error in '/' Application.
--------------------------------------------------------------------------------

Cannot subset Regex. Only support if both patterns are identical.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotSupportedException: Cannot subset Regex. Only support if both patterns are identical.

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:


[NotSupportedException: Cannot subset Regex. Only support if both patterns are identical.]
System.Net.WebPermission.IsSubsetOf(IPermission target) +763
System.Security.PermissionSet.IsSubsetOfHelper(PermissionSet target, IsSubsetOfType type, IPermission& firstPermThatFailed, Boolean ignoreNonCas) +301
System.Security.PermissionSet.IsSubsetOf(PermissionSet target) +19
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2769984
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'DotNetOpenId, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'DotNetOpenId, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +211
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +378

[HttpException (0x80004005): Could not load file or assembly 'DotNetOpenId, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644

[HttpException (0x80004005): Could not load file or assembly 'DotNetOpenId, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279

 


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

8/1/2008 10:11:41 AM
Gravatar
Total Posts 18439

Re: Error on new hosted Installation

What package of files did you upload? You should upload the ms sql release files not source code. If you uploaded the source code I would delete all of it and then start over with the correct files.

DotNetOpenId.dll does exist in the /bin folder of the release files.

If you did upload the correct files, then its likely you are hosted in a medium trust environment, in which case you should see the notes here and adjust your configuration accordingly:

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

Hope it helps,

Joe

8/1/2008 2:03:16 PM
Gravatar
Total Posts 9

Re: Error on new hosted Installation

I did use the release version.  I followed the recommendations for medium trust, which seem to be where this problem was.  I have gotten a little further in the installation now.

Thanks

11/11/2009 4:58:23 AM
Gravatar
Total Posts 70

Re: Error on new hosted Installation

 I have encounter the same error 

Server Error in '/' Application.

Cannot subset Regex. Only support if both patterns are identical.

 

I have followed the instructions you have posted here but i still have the same error.

I'm using Windows XP, MS SQL2005, ASP.net 2.0.

You said You should upload the ms sql release files not source code. I noticed the files i have uploaded was a mssqldeploymentfiles.zip then unzip it after uploading, just like what i did when i setup locally.(Is there a difference or the same?).I need to run it on our test site asap.

Your reply will be greatly appreciated.

Thanks.

11/11/2009 6:29:56 AM
Gravatar
Total Posts 18439

Re: Error on new hosted Installation

You need to have .NET 3.5 SP1 installed.

Installation is no different on a local machine vs a server, the same steps are involved.

Hope it helps,

Joe

11/16/2009 10:37:17 PM
Gravatar
Total Posts 70

Re: Error on new hosted Installation

 

As what I have research 3.5 is just an extension of 2.0 (like an add ons). As long as I updated my version 2.0 that would be fine.

I'm running on a Medium Trust config.

But I have the same error

Cannot subset Regex. Only support if both patterns are identical. Could not load file or assembly 'DotNetOpenAuthVersion=3.1.0.9122.



Your reply will be greatly appreciated.

 

Thanks.

11/17/2009 6:52:41 AM
Gravatar
Total Posts 18439

Re: Error on new hosted Installation

Hi,

Change this to false:

<add key="EnableOpenIDAuthentication" value="true" />

and delete the dotnetopenauth.dll from the /bin folder.

Hope it helps,

Joe

11/18/2009 12:01:30 AM
Gravatar
Total Posts 70

Re: Error on new hosted Installation

 

Hello Joe,

Thank you for your great help. The site is running on our test server.

The Complete solution was:

-You need to have .NET 3.5 SP1 (If running in asp.net 2.0 make sure to have an Updated version since 3.5 is just an add on 2.0)

-Run on Medium Trust config

-Change this to false:<add key="EnableOpenIDAuthentication" value="true" />

-delete the dotnetopenauth.dll from the /bin folder.

 

Thank you and Godbless.

1/21/2010 2:18:18 PM
Gravatar
Total Posts 2

Re: Error on new hosted Installation

Hello Joe,

 

I'm having the same problem, and tried to follow this thread to resolve it myself. I got mojoportal to fire up, but not successfully install it.

1. I dont have the DotNetOpenId.dll file. Do I need it?

2. I followed all the step to change to Medium trust, and delete the DotNetOpenAuth.dll file, but when I ran the setup, I got this error message:

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)

Would you please give me an advice on what I should do to resolve this? Thanks.

1/22/2010 12:22:52 PM
Gravatar
Total Posts 2

Re: Error on new hosted Installation

I switched back to Full trust, and it took care of the problem.

4/27/2010 10:15:09 PM
Gravatar
Total Posts 1

Re: Error on new hosted Installation

Thanks for the help Joe, deleting of the DotNetOpenAuth.dll and setting the config setting to false worked.

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