MoxieManager double extensions error - tinymce-4

I'm using MoxieManager (http://www.moxiemanager.com)inside TinyMCE. Now i get this error message on loading: "Double extensions is not allowed for security reasons".
My configuration seems to be normal, there are no double extensions :
$moxieManagerConfig['filesystem.extensions'] = 'jpg,jpeg,png,gif,docx,doc,xls,xlsx,zip,pdf';
$moxieManagerConfig['edit.extensions'] = 'jpg,jpeg,png,gif';
$moxieManagerConfig['view.extensions'] = 'jpg,jpeg,png,gif,pdf';
any ideas what could be wrong? thanks for your help.
best regards
thomas

I ran into this issue as well when working locally and found that it was because of a directory name that was part of my web root. In my case, my web root existed under a client folder named "Company Inc". It was the "inc" that matched and was throwing the error. When I updated my directory names to safer values all fired correctly.
The error gets triggered under moxiemanager/classes/Util/PathUtils.php around line 303 if you want to check the preg_match pattern.

Related

Error on deploying website to IIS - App still refers to local files directory even after publish

Has anyone experienced this issue before? I published a website using File Deploy and placed it in an IIS. Other apps works just fine, but the website I deployed shows this error:
It seems to still be pointing to my local directory. I've updated the paths but to no avail. Help please.
Thanks in advance.
The paths show locations at compile-time, that is not a problem. Here, you are getting an exception on line 65 in DataAccess.cs - object reference not set to an instance of an object.
If you set custom error "on" (in the web.config), you can get more info about the exception. In the "Network" tab of "Developer tools", you can check your request and response.

Getting Error CS0433

error CS0433: The type 'ucTerms' exists in both 'c:\Users\satyajit.singh\AppData\Local\Temp\Temporary ASP.NET Files\eoc\f63b2378\43228109\App_Web_cez09cff.dll' and 'c:\Users\satyajit.singh\AppData\Local\Temp\Temporary ASP.NET Files\eoc\f63b2378\43228109\App_Web_frn_iozf.dll'
I can see that theere is a User Control "ucTerms" which is contained in the "User Control" folder under also under the root (main solution) . I researched a lot and tried different solutions like setting the "batch = false", deleting the temporary folder but none have worked.
The web site builds successfully but this error pops up when I try to publish the website.
can anyone help me on this. I have been working on this error for last 3 days.
Thanks in advance,
Satyam
have you tried these?
Error: The type exists in both directories,
http://www.pgs-soft.com/the-type-x-exists-in-both-y1-dll-and-y2-dll.html,
http://forums.asp.net/t/980517.aspx
if none of these help, try to isolate the issue:
remove your user control from the project (make sure you save it somehwere else) to see if its only this one user control that has the issue, or every other one as well, this information may be helpful

Problems with msdeploy.exe

What a tool...
Anyway, I absolutely cannot get msdeploy to work, and so I am trying to use this command-line option to at least trigger a connection: "msdeploy.exe -verb:dump..."
Yet, still got errors. It seems that I need an 'appHostConfig' parameter, but nothing I enter is accepted. Currently my site does not use "Default Web Site", but rather I deleted that root and created my own "MyCompany" which points to C:\MyApp and just reads back a simple index.html file. I thought that appHostConfig=MyCompany would work, but it doesn't. Neither does appHostConfig=abc.com/MyCompany or other varients. Help?

Error When running asp.net Application in IIS

I have an application in asp.net.I configured it in IIS.When i running this application in IIS i getting an error;
Server "/" error:
Resource Cannot be Found
Error:404
Some of pages only produce this issues.Other forms are working perfectly.Without running application in IIS Its working perfectly.
If any one can answer plz send the answer immediatly.
Thank you
I assume that the urls for some of your pages are malformed.
Check in your app how you are building the paths.
Personally, i use to have a class like PathsUtil, where i build all of my paths for the pages,
so when i'm moving to IIS, it's extremely easy just to correct something (for instance add a virtual dir etc).
Update:
- for the PathsUtil i use Paths.resx where i have defined all of my paths like
Name Value
index /Site/index.aspx
add.user /Site/addUser.aspx
and so on.
And in PathsUtil i only take the value from the Paths.resx and i build the url:
string baseUrl = getBaseUrl() + (String)HttpContext.GetGlobalResourceObject("Paths", "index");
I've just moved to an IIS7 server, and there i've created a virtual dir "gramma"
You can note that was a piece of cake only to add "/gramma" in Paths.resx, in front of each url :)
Look for the Response.Redirect() calls in the page previous to the form you are getting the error. Just make sure that any harcoded URL for the form supplied to the Response.Redirect() call is correct.
EDIT..
Also, look for If you are navigating to a form which is in a different directory than the current one. For example:-
Response.Redirect("../SomeForm.aspx");
will redirect to an ASPX page just one level up of the current one. Each pair of dots implies one directory level up.
In thses cases, I think, you are better off using ~ (tilde) character which will always take the path from the root. So the mistakes happening because of incorrect number of dots can be minimised.Try something like this:-
Response.Redirect( this.ResolveUrl("~/Myfolder/SomeForm.aspx") );
More details for the ~ and ResolveUrl here.
This can also happen If you have window.location calls in javascript if you assign an incorrect URL to the same.

asp.net "file not found" - no reference to file!

I'm working with asp.net (I'm a designer) and at some point during debugging it'll throw me and I'll get to an Exception objErr in the code - and when I hover it says "file not found". I assume it's an image but I've been searching and can't find anyway to pinpoint which file is missing. I hope this is enough information - if anyone could give me a direction I'll really appreciate it!
AB
Find FileMon which is in the SysInternals package from Microsoft and run it when you get near to your file issue, maybe add a filter to filter out all of the OS file operations.
You'll be able to see a file not found or access denied entry for the file if you have it set up right.
I use FileMon all the time, it is free and really helps when troubleshooting permission and file IO problems.
Ryan
I think you have not given full path for the image which you are searching.
Another problem which might be possible is when it throws an error check the page in your url and check if that page exists in your project. I wish I could help you more but I need more info for that,
Do you really have no information on which file is not found?
It is probably a misspelled filename (1 character typo's can be hard to find). So if you don't have the missing filename, debugging can be a real horror.
Take a look at the IIS log produced, Found at: C:\WINDOWS\system32\LogFiles\W3SVC1\ and search for a 403 or similar.
When referencing a file inside your project always add a "~" in front. This means that the path after the "~" sign is relative to the projects root folder.
Example:
If an .Aspx file called "Example.asp" is located in the Pages folder inside the project you want to reference it as
<asp:HyperLink ID="lnkExample" runat="server" NavigateUrl="~/Pages/Example.aspx"> Example</asp:HyperLink>
I hope this helps a bit.

Resources