Our Forum has Moved

This site is our old forum and is only here for achive until we get proper 301 redirects setup to make Google happy.

Please use our new community site - Our Umbraco - which contains an improved forum, documentation wiki, package repository and a member locator.

Go to Our Umbraco now

Learn everything about Umbraco
Problem with Umbraco (javascript error) Options
Adriano
Posted: Wednesday, March 19, 2008 12:56:48 AM

Rank: Newbie

Joined: 3/19/2008
Posts: 10
Location: Rome
Hi,
I tried to install umbraco to use on my website.
The install process has been succesfully.

After login into backoffice (with user/pass) I see the correct UI eith correct tree but I also receive a javascript error (isSplitter null or... in TreeInit.aspx?app=content) that block the view of the element's menu (that I would see when I click on right button of the mouse)
I cannot do nothing. I can only see the tree but I cannot create, delete, modify nothing.

How can I resolve it???

Sorry my not perfect english and thank you.

AF
Skiltz
Posted: Wednesday, March 19, 2008 5:13:48 AM

Rank: Devotee

Joined: 12/6/2007
Posts: 64
This probably isn't that usefull but what browser are you using?

Please try in IE

New Zealand Umbracoee
Adriano
Posted: Wednesday, March 19, 2008 9:37:38 AM

Rank: Newbie

Joined: 3/19/2008
Posts: 10
Location: Rome
I knew there was some problems with other browser than IE.
I'm using IE 6 - IE 7
if you want to try, the site is http://www.albertomunafo.it/umbraco/umbraco.aspx
user and pwd admin (I'll clear the password this day)

Thnx
dawoe
Posted: Wednesday, March 19, 2008 10:42:32 AM

Rank: Fanatic

Joined: 1/19/2008
Posts: 230
Location: Belgium
I have logged in and can confirm the problem.

May I ask what version you are running ? I noticed when you click on a the "About" button you get a server error.

Dave on Umbraco
Adriano
Posted: Wednesday, March 19, 2008 2:46:12 PM

Rank: Newbie

Joined: 3/19/2008
Posts: 10
Location: Rome
I installed the v3.0.2 version.

I'm using the same version on my local machine and i haven't problems.

Do you know why i received a javascript error???

I thought the critical point was the install step because it could be some protection problems with the provider configuration
In this case i received the javascript error that i don't know why.

Tnx for your time
A.
dawoe
Posted: Wednesday, March 19, 2008 3:08:25 PM

Rank: Fanatic

Joined: 1/19/2008
Posts: 230
Location: Belgium
Adriano wrote:
I installed the v3.0.2 version.

I'm using the same version on my local machine and i haven't problems.



What trust level does ASP.NET run in on the environment with the problems ?

See if you have the same problems on your local machine when you add <trust level="Medium" /> or <trust level="High" /> to your web.config inside the system.web section

Dave on Umbraco
Adriano
Posted: Wednesday, March 19, 2008 3:54:03 PM

Rank: Newbie

Joined: 3/19/2008
Posts: 10
Location: Rome
I received this error:

Server Error in '/' Application.


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:


Line 41:
Line 42: <system.web>
Line 43: <trust level="High" />
Line 44:
Line 45: <browserCaps configSource="config\BrowserCaps.config" />


Source File: D:\Inetpub\webs\albertomunafoit\web.config Line: 43
dawoe
Posted: Wednesday, March 19, 2008 7:40:47 PM

Rank: Fanatic

Joined: 1/19/2008
Posts: 230
Location: Belgium
Adriano wrote:
I received this error:

Server Error in '/' Application.


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:


Line 41:
Line 42: <system.web>
Line 43: <trust level="High" />
Line 44:
Line 45: <browserCaps configSource="config\BrowserCaps.config" />


Source File: D:\Inetpub\webs\albertomunafoit\web.config Line: 43


Is this on your local environment ?

Dave on Umbraco
Adriano
Posted: Thursday, March 20, 2008 9:52:55 AM

Rank: Newbie

Joined: 3/19/2008
Posts: 10
Location: Rome
Sorry I tried on online server Anxious

On my local machine instead when I put <trust level="Medium" /> in system.web, I receive this environment (sorry but the received text is in italian language):

Errore server nell'applicazione '/'.


Impossibile acquisire i permessi richiesti.
Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack.

Dettagli eccezione: System.Security.Policy.PolicyException: Impossibile acquisire i permessi richiesti.

Errore nel codice sorgente:

Durante l'esecuzione della richiesta Web corrente è stata generata un'eccezione non gestita. Per informazioni sull'origine e la posizione dell'eccezione, vedere l'analisi dello stack dell'eccezione riportata di seguito.

Analisi dello stack:

[PolicyException: Impossibile acquisire i permessi richiesti.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2770052
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Impossibile caricare il file o l'assembly 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' o una delle relative dipendenze. Impossibile garantire le richieste minime di autorizzazione. (Eccezione da HRESULT: 0x80131417)]
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: Impossibile caricare il file o l'assembly 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' o una delle relative dipendenze. Impossibile garantire le richieste minime di autorizzazione. (Eccezione da HRESULT: 0x80131417)]
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.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +230
System.Web.Compilation.BuildManager.CompileGlobalAsax() +49
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462

[HttpException (0x80004005): Impossibile caricare il file o l'assembly 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' o una delle relative dipendenze. Impossibile garantire le richieste minime di autorizzazione. (Eccezione da HRESULT: 0x80131417)]
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): Impossibile caricare il file o l'assembly 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' o una delle relative dipendenze. Impossibile garantire le richieste minime di autorizzazione. (Eccezione da HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279


Informazioni di versione: Versione di Microsoft .NET Framework:2.0.50727.1433; Versione di ASP.NET:2.0.50727.1433 888
dawoe
Posted: Thursday, March 20, 2008 10:50:29 AM

Rank: Fanatic

Joined: 1/19/2008
Posts: 230
Location: Belgium
Than I think it's another problem.
I had this problems once when I tried to run Umbraco on my local machine in Medium trust. I got this error too. When I removed the ImageManipulation.dll I could access the manager but had JS-errors like yours.

Dave on Umbraco
Adriano
Posted: Thursday, March 20, 2008 11:08:46 AM

Rank: Newbie

Joined: 3/19/2008
Posts: 10
Location: Rome
uhmmm and then???
You can suggest me anything to do???

I would send an email to my provider where I ask if the trust environment is set to Full
dawoe
Posted: Thursday, March 20, 2008 3:34:15 PM

Rank: Fanatic

Joined: 1/19/2008
Posts: 230
Location: Belgium
Adriano wrote:
uhmmm and then???
You can suggest me anything to do???

I would send an email to my provider where I ask if the trust environment is set to Full


I had a look again with Firefox and firebug. There seems to be a problem with building the contextitems.

Also the problem with the about page of Umbraco is maybe a indication.

Maybe a more experienced user can help out here.

Dave

Dave on Umbraco
met67
Posted: Thursday, March 20, 2008 4:10:53 PM

Rank: Devotee

Joined: 9/4/2007
Posts: 42
Location: Rome
dawoe wrote:
Also the problem with the about page of Umbraco is maybe a indication.

Maybe a more experienced user can help out here.

Dave

Adriano, I guess Dave is right WRT the about page: the error page clearly states
Quote:
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.


so it definitely looks like a trust level problem.

Hope you can get your administrator to fix it...

Marco
wboevink
Posted: Thursday, April 17, 2008 11:42:13 AM
Rank: Enthusiast

Joined: 8/11/2006
Posts: 16
Adriano wrote:
I knew there was some problems with other browser than IE.
user and pwd admin (I'll clear the password this day)


You really should clear your password :-)
raz
Posted: Sunday, August 24, 2008 7:34:33 PM
Rank: Newbie

Joined: 3/26/2007
Posts: 16
dawoe wrote:
Than I think it's another problem.
I had this problems once when I tried to run Umbraco on my local machine in Medium trust. I got this error too. When I removed the ImageManipulation.dll I could access the manager but had JS-errors like yours.



What to do if I have medium trust set on my hosting server and I receive the same error, besides removing the dll file (won't there be another error because the file is not accessible)?

Also, if someone set an Umbraco site on GoDaddy, please leave me a message if you care to share your experience.


Thanks,

Raz


Server Error in '/' Application.


Required permissions cannot be acquired.
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.Security.Policy.PolicyException: Required permissions cannot be acquired.

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:


[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2770052
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 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
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 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
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.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +230
System.Web.Compilation.BuildManager.CompileGlobalAsax() +49
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462

[HttpException (0x80004005): Could not load file or assembly 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
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 'ImageManipulation, Version=1.0.2105.41209, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465475
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279





Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
raz
Posted: Tuesday, August 26, 2008 7:30:29 PM
Rank: Newbie

Joined: 3/26/2007
Posts: 16
i see ... :)

well, i deleted ImageManipulation.dll and i am not encountering that error anymore but, i cannot use the cms... every time i click on a node i get this error (plus js errors):


Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +54
umbraco.controls.ContentControl..ctor(Content c, publishModes CanPublish, String Id) +734
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +402
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834


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


but i can browse the site ok.
so.. i have a GoDaddy account set up.. copied the files on the server, used Database Publishing to upload the db content to their db server and changed the webconfig to match the new db config... (when trying to access the website i got the error i specified in the previous message which got me here...)

any help? :)

thanks
bjawnie
Posted: Tuesday, September 02, 2008 3:27:24 PM
Rank: Newbie

Joined: 8/27/2007
Posts: 18
Location: Copenhagen
Hi,

I am encountering the exact same problem as Raz.

I uploaded Umbraco v 3.0.3 to a Shared Host (dandomain.dk) and the errors are the same as the above. Everything woked fine locally.

I read somewhere in forum that upgrading to 3.0.5 could help with some javascripts errors, but that did not do it for me.


The context menu is not working and I get the following javascript error:

Error: menuitems[i] is undefined
Source file: http://www.domain.dk/umbraco/js/umbContext.js
Line: 54




If I click a node, to edit it, I get the following error:

Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +242
umbraco.controls.ContentControl..ctor(Content c, publishModes CanPublish, String Id) +833
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +443
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834


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



I have full trust level and read / write permission to everything. I have double checked this by programmatically testing it.
bjawnie
Posted: Tuesday, September 02, 2008 7:57:43 PM
Rank: Newbie

Joined: 8/27/2007
Posts: 18
Location: Copenhagen
And the problem got solved by reinstalling version 3.0.5 from scratch.
brownie
Posted: Thursday, November 20, 2008 12:14:36 AM
Rank: Newbie

Joined: 11/16/2008
Posts: 2
I have the exact problem using a hosting company in Canada called ISQ Solutions. I first installed 3.02 locally without any issues, installed the same version on the online host and get the JS error not displaying the context menu. Then I upgraded to 3.06 locally, no issues. Upgraded to 3.06 on at the hosting procvider and still nothing. I then removed everything at the hosting provider and did a fresh 3.06 install, still the JS error remains and I can't get past this.
The hosting provider claims;

- We granted Full Trust permissions to your web application - We isolated your website in a separate application pool. - We granted full trust to your site and you have read/write permissions to make it work. - We just double checked the permissions considering the documentation provided and the ASP.net user. Everything is set up right in our end.

Please help me someone...!
drobar
Posted: Thursday, November 20, 2008 1:33:14 AM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 2,020
Location: MA, USA; Cambridge, UK
@brownie,

I really suspect this is a file permission problem. Umbraco needs file permissions for the owner of the application pool. By default on IIS6 and IIS7 that is the NETWORK SERVICE user. But since your host has a separate app pool for your site it may be some other user. Whatever user it is, that's the one that needs the file permissions to create, read, update, delete. The ASP.net user is specific to IIS5.

cheers,
doug.

MVP 2007-2009 - Percipient Studios - Percipient Blog

The forum has moved

This forum is no longer in use, so you can't reply to this message - please go to Our Umbraco

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.