Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristoffer Eriksen 185 posts 465 karma points
    Apr 27, 2012 @ 09:31
    Kristoffer Eriksen
    0

    Could not load file or assembly when viewing Contour Entries

    Hey

    I get this error in my Umbraco log,when I try to view the entries on some posted forms.

    The forms gets saved in the database, and I recieve an email, but when I try to look at the data in Umbraco, i get the following error

    At /umbraco/plugins/umbracoContour/webservices/records.aspx?guid=f850c304-5c94-49e5-81bd-a654c8d9eef1
    &date=30/04/2002%2009:18:25
    &state=Approved
    &sEcho=2
    &iColumns=6
    &sColumns=
    &iDisplayStart=0
    &iDisplayLength=10
    &sSearch=
    &bEscapeRegex=true
    &sSearch_0=
    &bEscapeRegex_0=true
    &sSearch_1=
    &bEscapeRegex_1=true
    &sSearch_2=
    &bEscapeRegex_2=true
    &sSearch_3=
    &bEscapeRegex_3=true
    &sSearch_4=
    &bEscapeRegex_4=true
    &sSearch_5=
    &bEscapeRegex_5=true
    &iSortingCols=1
    &iSortCol_0=1
    &iSortDir_0=desc

    (Referred by:
    http://www.fuglebjergcykling.dk/umbraco/plugins/umbracoContour/editFormEntries.aspx?guid=f850c304-5c94-49e5-81bd-a654c8d9eef1):
    System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Windows\TEMP\zh11eggs.dll' or one of its dependencies.
    Access is denied.  File name: 'file:///C:\Windows\TEMP\zh11eggs.dll'    
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    
    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)    
    at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)    
    at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()    
    at System.Xml.Xsl.Xslt.Scripts.CompileAssembly(List`1 scriptsForLang)    
    at System.Xml.Xsl.Xslt.Scripts.CompileScripts()    
    at System.Xml.Xsl.Xslt.QilGenerator.Compile(Compiler compiler)    
    at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)    
    at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)    
    at Umbraco.Forms.Data.XsltHelper.TransformXML(XmlNode xml, String XsltFile, Dictionary`2 settings)    
    at Umbraco.Forms.UI.Webservices.Records.ReturnRecords(Guid id, DateTime date, FormState state, Int32 startIndex, Int32 lenght, Sorting sortOrder)    
    at Umbraco.Forms.UI.Webservices.Records.Page_Load(Object sender, EventArgs e)    
    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)    
    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)    
    at System.Web.UI.Control.OnLoad(EventArgs e)    
    at umbraco.BasePages.BasePage.OnLoad(EventArgs e)    
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    WRN: Assembly binding logging is turned OFF.  To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
    Note: There is some performance penalty associated with assembly bind failure logging.  To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

    I've created som linebreaks so it's easier to read :-)

    Best Regards

    Kristoffer

     

     

  • Comment author was deleted

    Apr 27, 2012 @ 11:04

    Looks like a permissions thing on your C:\Windows\TEMP\ directory

  • Kristoffer Eriksen 185 posts 465 karma points
    Apr 27, 2012 @ 13:53
    Kristoffer Eriksen
    0

    This is on a hosted enviroment at Surftown.dk....:-(

  • Shreya Gujjula 6 posts 26 karma points
    May 01, 2012 @ 05:51
    Shreya Gujjula
    0

    I am also facing the same error. Did you figure out the error? Please help me I have a deadline and now contour is not working.

    Thanks 

  • Comment author was deleted

    May 01, 2012 @ 08:25

    Which version of Contour are you running?

  • Kristoffer Eriksen 185 posts 465 karma points
    May 01, 2012 @ 09:06
    Kristoffer Eriksen
    0

    I'm using

    Umbraco: umbraco v 4.6.1 (Assembly version: 1.0.4029.25836)

    Contour:

    Package name
    Umbraco Contour
    Package version
    1.1.12
  • Comment author was deleted

    May 01, 2012 @ 09:42

    Try forcing medium trust in your web.config that might resolve the issue

  • Comment author was deleted

    May 01, 2012 @ 09:43

    But would also recommend to get in touch with the hosting company and show them the error they might be willing to update the permissions on the temp folder

  • Kristoffer Eriksen 185 posts 465 karma points
    May 01, 2012 @ 09:59
    Kristoffer Eriksen
    0

    Whe you say "force medium trust" do you mean by settting this to true ?

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

  • Kristoffer Eriksen 185 posts 465 karma points
    May 01, 2012 @ 10:01
    Kristoffer Eriksen
    0

    Just changed to Medium trust ( as above ), and still nothing.

    Get this error

    At 
    /umbraco/plugins/umbracoContour/webservices/records.aspx?guid=f850c304-5c94-49e5-81bd-a654c8d9eef1&sEcho=1&iColumns=6&sColumns=&iDisplayStart=0&iDisplayLength=10&sSearch=&bEscapeRegex=true&sSearch_0=&bEscapeRegex_0=true&sSearch_1=&bEscapeRegex_1=true&sSearch_2=&bEscapeRegex_2=true&sSearch_3=&bEscapeRegex_3=true&sSearch_4=&bEscapeRegex_4=true&sSearch_5=&bEscapeRegex_5=true&iSortingCols=1&iSortCol_0=1&iSortDir_0=desc
     (Referred by: 
    http://www.fuglebjergcykling.dk/umbraco/plugins/umbracoContour/editFormEntries.aspx?guid=f850c304-5c94-49e5-81bd-a654c8d9eef1):
     System.IO.FileLoadException: Could not load file or assembly 
    'file:///C:\Windows\TEMP\byqavcbh.dll' or one of its dependencies. 
    Access is denied.
    File name: 'file:///C:\Windows\TEMP\byqavcbh.dll'
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, 
    String codeBase, Evidence assemblySecurity, RuntimeAssembly 
    locationHint, StackCrawlMark& stackMark, Boolean 
    throwOnFileNotFound, Boolean forIntrospection, Boolean 
    suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, 
    String codeBase, Evidence assemblySecurity, RuntimeAssembly 
    locationHint, StackCrawlMark& stackMark, Boolean 
    throwOnFileNotFound, Boolean forIntrospection, Boolean 
    suppressSecurityChecks)
       at 
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName 
    assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, 
    Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
     assemblySecurity)
       at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
       at System.Xml.Xsl.Xslt.Scripts.CompileAssembly(List`1 scriptsForLang)
       at System.Xml.Xsl.Xslt.Scripts.CompileScripts()
       at System.Xml.Xsl.Xslt.QilGenerator.Compile(Compiler compiler)
       at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, 
    XmlResolver xmlResolver, QilExpression& qil)
       at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object 
    stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
       at Umbraco.Forms.Data.XsltHelper.TransformXML(XmlNode xml, String 
    XsltFile, Dictionary`2 settings)
       at Umbraco.Forms.UI.Webservices.Records.ReturnRecords(Guid id, 
    DateTime date, FormState state, Int32 startIndex, Int32 lenght, Sorting 
    sortOrder)
       at Umbraco.Forms.UI.Webservices.Records.Page_Load(Object sender, 
    EventArgs e)
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, 
    Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object 
    sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at umbraco.BasePages.BasePage.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean 
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value 
    [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind 
    failure logging.
    To turn this feature off, remove the registry value 
    [HKLM\Software\Microsoft\Fusion!EnableLog].
    
  • Comment author was deleted

    May 01, 2012 @ 10:20

    Yeah must be solved on the environment then

  • Shreya Gujjula 6 posts 26 karma points
    May 01, 2012 @ 16:43
    Shreya Gujjula
    0

    Hi Tim,

    I am using Umbraco 4.7 and contour 1.1.12. Data is getting saved but not showing up in the form entries? Any suggestions.

     

    Thanks

  • Kristoffer Eriksen 185 posts 465 karma points
    May 01, 2012 @ 16:47
    Kristoffer Eriksen
    0

    I've contacted my host with a link to this post.

    My data are saved as well, and an email is shipped, but can't view the data in the form

  • Shreya Gujjula 6 posts 26 karma points
    May 01, 2012 @ 16:57
    Shreya Gujjula
    0

    same is the issue with me. My data is saved but can't view when I contacted my host they say that the issue is with record.aspx file. don't know what to do now.

    I will try to re-install contour now.

  • Shreya Gujjula 6 posts 26 karma points
    May 01, 2012 @ 17:52
    Shreya Gujjula
    0

    My error is now resolved. In the hosted environment temp folder permissions got stripped off. I re-enabled all permissions and now its working.

  • Kristoffer Eriksen 185 posts 465 karma points
    May 01, 2012 @ 21:27
    Kristoffer Eriksen
    0

    Was it something you could do, or did your hostingpartner do it for you?

  • Shreya Gujjula 6 posts 26 karma points
    May 01, 2012 @ 23:03
    Shreya Gujjula
    0

    This is website as it is still in development stage. I could get it resolved by my network administrators.

  • Christian Stenfors 80 posts 124 karma points
    Aug 24, 2012 @ 10:39
    Christian Stenfors
    0

    i have the same problem :(

    Hosting = Surftown.

    Umbraco version = 4.7.2

    Contour version = 1.1.13.2.

    I have just contacted the tecnical support at Surftown. I think i am about ready to try out a new hosting supplier!

    Any suggestions regarding umbraco CMS hosting supplieres? I am a Danish freelance webdeveloper, so any tips from developers in my region regarding webhosting would be much appriciated :)

  • Kristoffer Eriksen 185 posts 465 karma points
    Jan 19, 2013 @ 23:17
  • Comment author was deleted

    Jan 20, 2013 @ 14:54

    @Kristoffer is this also on a specific hosting provider? 

    Contour should work on medium trust but it might be another component causing the issue... 

  • Kristoffer Eriksen 185 posts 465 karma points
    Jan 21, 2013 @ 20:14
    Kristoffer Eriksen
    0

    Hey Tim

    This is on the same solution, and same hostingpartner.

    I've just no been able to solve it yet...

  • Christian Stenfors 80 posts 124 karma points
    Jan 21, 2013 @ 20:51
    Christian Stenfors
    0

    Hi Kristoffer,

    you could not solve this with Surftowns support?

    I have had so many problems using Surftown as hosting provider for Umbraco solutions, and wrong folder permissions sounds very likely. Let me know what you find out. If i can help in any way, let me know

  • Comment author was deleted

    Jan 22, 2013 @ 08:49

    @Kristoffer wish I could do more but definitly looks like this has to be handled on the hostin evironment...

  • Kristoffer Eriksen 185 posts 465 karma points
    Jan 24, 2013 @ 11:12
    Kristoffer Eriksen
    0

    Problem solved with the support of Surftown.

    Surftown told me that the website used Network_Service from the application pool, but when trying to create the temp dll-file ind the temp-folder, it tried to use an assigned windows user, which didn't had the permissions.

    Surftown support found a solution to this problem.

    In the /umbraco/plugins/umbracoContour/xslt folder there is "DataTables_json.xslt" and "DataTables_json_medtrust.xslt".

    If we renamed "DataTables_json.xslt" to "DataTables_json.xsltBAC", created a copy of "DataTables_json_medtrust.xslt" and renamed the copy to "DataTables_json.xslt", it works, and the entries can now be shown.

    Why is that ??

    I can now see the entries, and my problem is solved. Or is it ? Is there any differences in the two .xslts that I should be aware of ?

  • Comment author was deleted

    Jan 24, 2013 @ 12:08

    Well that one is used when you are running medium trust :) so guess they are running a custom similar trust level ... but glad it's sorted :)

  • Jonas | Surftown 2 posts 22 karma points
    Jan 24, 2013 @ 12:12
    Jonas | Surftown
    0

    Hi

    I'm the supporter from Surftown that help Kristoffer.

    This post is just to inform about what I did and to give you some information. Hopefully this can help finding the reason for the problems Kristoffer had.

     

    Kristoffer gave me this link http://www.fuglebjergcykling.dk/umbraco/plugins/umbracoContour/webservices/records.aspx?guid=f850c304-5c94-49e5-81bd-a654c8d9eef1 so I able to test it. After I reproduced the problem I search the windows log and found this:

    Exception information:

        Exception type: FileLoadException

        Exception message: Could not load file or assembly 'file:///C:\Windows\TEMP\2qf5brzw.dll' or one of its dependencies. Access is denied.

     

    That tells us that it is a permission problem, so I checked the application pool just to be sure and it is running under Network_Service as it should. Then I checked the TEMP folder and Network_Service have modify permission on that folder.

    When we create a new user we create a windows user and group. I tried to give the group modify permissions on the folder and I was able to see the entries. This made it clear that it was a permissions issue. Sadly we aren't allowed to give the specific user modify permission to any folder other than their own.

    To find a other solution I started digging in the code. The link told me that it was the file "records.aspx" that was handling the call. Therefore I opened that file to see what dll it was using. Then I decompiled "Umbraco.Forms.UI" to locate the code for the class records. I found this method "ReturnRecords(Guid id, DateTime date, FormState state, int startIndex, int lenght, Sorting sortOrder)". In the code for the method I found this part:

    if (GlobalSettings.ApplicationTrustLevel > AspNetHostingPermissionLevel.Medium)

            this.Response.Write(XsltHelper.TransformXML(pagedXmlRecords, HttpContext.Current.Server.MapPath("../xslt/datatables_json.xslt"), settings));

          else

            this.Response.Write(XsltHelper.TransformXML(pagedXmlRecords, HttpContext.Current.Server.MapPath("../xslt/DataTables_json_medtrust.xslt"), settings));

    As we are running Full Trust I knew that this was the file called "datatables_json.xslt". I then created a copy of that file and then created a copy of "DataTables_json_medtrust.xslt" and renamed it to "DataTables_json.xslt". After that the entries was shown.

    As I see it the problem is somewhere in the permissions and trust level. I could very well be that the problem is in our setup and if it is we need to fix it. If you have any information that could help me locate the issue, I would appreciate it.

  • Comment author was deleted

    Jan 24, 2013 @ 12:29

    @Jonas, glad you found a solution! My guess is that you probably have a customized trust level but I have no idea what setting would influence this...

    The difference in the xslt files is that the full one includes a <msxsl:script> Element http://msdn.microsoft.com/en-us/library/ms256042.aspx and that doesn't work in medium trust...

  • Jonas | Surftown 2 posts 22 karma points
    Jan 24, 2013 @ 12:31
    Jonas | Surftown
    0

    @Tim

    Thank you for the information. I'll try to find the source of this error :)

  • Comment author was deleted

    Jan 24, 2013 @ 12:38
  • Osman Coskun 164 posts 398 karma points
    Dec 15, 2014 @ 15:54
    Osman Coskun
    0

    Kristoffer Eriksen's solution workedfor me.Thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft