(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 :-)
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
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].
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 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 :)
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
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 ?
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.
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)
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.
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
I've created som linebreaks so it's easier to read :-)
Best Regards
Kristoffer
Comment author was deleted
Looks like a permissions thing on your C:\Windows\TEMP\ directory
This is on a hosted enviroment at Surftown.dk....:-(
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
Which version of Contour are you running?
I'm using
Umbraco: umbraco v 4.6.1 (Assembly version: 1.0.4029.25836)
Contour:
Comment author was deleted
Try forcing medium trust in your web.config that might resolve the issue
Comment author was deleted
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
Whe you say "force medium trust" do you mean by settting this to true ?
<add key="umbracoUseMediumTrust" value="true"/>
Just changed to Medium trust ( as above ), and still nothing.
Get this error
Comment author was deleted
Yeah must be solved on the environment then
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
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
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.
My error is now resolved. In the hosted environment temp folder permissions got stripped off. I re-enabled all permissions and now its working.
Was it something you could do, or did your hostingpartner do it for you?
This is website as it is still in development stage. I could get it resolved by my network administrators.
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 :)
I am still facing this problem.
I've tried this trick http://our.umbraco.org/forum/umbraco-pro/contour/26668-Processing?p=0 but it didn't help
http://www.fuglebjergcykling.dk/umbraco/plugins/umbracoContour/webservices/records.aspx?guid=%20f850c304-5c94-49e5-81bd-a654c8d9eef1
Any new suggestions ?
Comment author was deleted
@Kristoffer is this also on a specific hosting provider?
Contour should work on medium trust but it might be another component causing the issue...
Hey Tim
This is on the same solution, and same hostingpartner.
I've just no been able to solve it yet...
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
@Kristoffer wish I could do more but definitly looks like this has to be handled on the hostin evironment...
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
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 :)
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
@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...
@Tim
Thank you for the information. I'll try to find the source of this error :)
Comment author was deleted
Some more details from ms http://msdn.microsoft.com/en-us/library/wk7yxab1.aspx
Kristoffer Eriksen's solution workedfor me.Thanks :)
is working on a reply...