Error after Backup Restored

rated by 0 users
This post has 11 Replies | 2 Followers

Not Ranked
Posts 5
Points 100
kdingman Posted: Fri, Mar 28 2008 10:09 AM

Hi,


We use community on a sub domain of our website.  Just recently our site was taken down due to hosting misunderstandings, and the company restored it after everything was cleared up.  The IP address was correctly changed, and the connection string in the Web.config file was changed as well.  All files were restored from a backup that the host had.

Our regular website is back up now, but community has an error:

We are currently unable to serve your request

We apologize, but an error occurred and your request could not be completed.

This error has been logged. If you have additional information that you believe may have caused this error please report the problem here.


Any recommendations? Help?


Thank You :)

Top 10 Contributor
Posts 4,039
Points 61,285
TelligentSupportTeam
Alex Crome replied on Fri, Mar 28 2008 11:58 AM

in your web.config file, find

<customErrors mode="RemoteOnly" defaultRedirect="~/error.htm">

and change it to

<customErrors mode="Off" defaultRedirect="~/error.htm">

Then try accessing the site and you should get a more descriptive error of the problem which if you can't solve yourself, post back here with the error and stack trace.

  • | Post Points: 20
Not Ranked
Posts 5
Points 100
kdingman replied on Fri, Mar 28 2008 5:07 PM

Thank You!  Here's what I have:


Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


  • | Post Points: 20
Top 10 Contributor
Posts 4,039
Points 61,285
TelligentSupportTeam

Two things.  First, the customErrors mode is case sensitive - i.e. it must be "Off" intead of "off", "OFF" or "oFf".  Can you double check you've used the right case.

If you're using the correct case and you're still having problems, can you ensure your website is set up to use ASP.Net 2.0 instead of ASP.Net 1.1. (you may have to ask your host for help with this)

  • | Post Points: 20
Not Ranked
Posts 5
Points 100
kdingman replied on Fri, Mar 28 2008 5:36 PM

Yes, the case is "OFF".


Yes, we are using ASP.Net 2.0.


Thanks for your help!


  • | Post Points: 20
Top 10 Contributor
Posts 4,039
Points 61,285
TelligentSupportTeam

Can you check whether or not the worker process under which you CS site is running has permissions to access the folder where you've installed CS.

To do this, you'll need to determine what app pool CS is running under, and then in the Application Pools section in IIS, determine what User Account the app pool runs under.  You'll then need to ensure that this user has permission to read the folder where you've installed CS.

If you're still having problems, can you provide us some details about your setup - are you using shared hosting, a VPS or a dedicated server, what operating system are you running under and any other information you'll think be of use.

  • | Post Points: 20
Top 75 Contributor
Posts 297
Points 4,145
jay replied on Sat, Mar 29 2008 3:14 AM

 I think what afscrome was trying to tell you was capital O lower case f lower case f   =Off      thats the only way you can write it.

nevermind  i see your screen shot is just that but your next post said "OFF"

 

  • | Post Points: 20
Top 10 Contributor
Posts 4,039
Points 61,285
TelligentSupportTeam

Didn't notice that

Jay's correct, the remoteErrors="Off" in your web.config MUST be in the proper case - "Off", and you must check this directly in your web.config file as the error page is only saying what your web.config files should be set at, not what it is set at.

  • | Post Points: 20
Not Ranked
Posts 5
Points 100
kdingman replied on Fri, Apr 4 2008 10:36 AM

Thanks everyone.  I've changed it to "Off" but still get the same error.

 

I wasn't the one who originally set up the communtiy server, so I'm not really sure what other information I have.  I know it is hosted by Server Intellect and uses a mySQL database.  I don't know how to access the database, as I thought an alternative could be to at least save our content and try and fresh install.  I'm not exactly sure how to do either one of these!

Thanks for your help!!

 

  • | Post Points: 20
Top 10 Contributor
Posts 4,039
Points 61,285
TelligentSupportTeam

Are you sure it's mySQL as CS only works with Microsoft SQL Server (MSSQL).

As for your error.  If it's not responding to the fixes, you're going to have to ask your host to have a look into it for you.  Ask them visit the website from the server it's installed on so they'll get the actual error message, and then ask them to pass the message they see from the server back to you. 

  • | Post Points: 20
Not Ranked
Posts 5
Points 100

I got an actual error, maybe someone can help with this :)

 

Server Error in '/' Application.

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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65


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

 

  • | Post Points: 20
Top 10 Contributor
Posts 4,039
Points 61,285
TelligentSupportTeam

You'll have to sort this problem out with your host.  Basically your host has blocked some features of ASP.Net that CS needs to use.

You'll need to ask your host to allow you to run CS under "medium trust" as that should provide CS with the permissions it needs.

  • | Post Points: 5
Page 1 of 1 (12 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com