dotnetnuke and dotimage problem - dotnetnuke

I created a module for dotnetnuke that uses Atalasoft's dotImage viewer. dotImage uses and iframe for "ajax" rendering. My module works great on the home page but in any other page the module loads the whole home page in the dotImage iframe.
Has anybody worked with both dotnetnuke and dotImage?
Any tips?

I am from Atalasoft. You should open a support case with us so that we can help you.
In any case, the usual reason for a page showing up in a frame is that there was an exception thrown while generating the contents of the frame -- what you are seeing is the custom 500 page for DotNetNuke.
Probably the easiest way to see what's going on is to temporarily turn off custom error pages in your web.config -- then the problem will show up in the frame and you can fix it. At this point it could be a lot of things (file permissions, not having a license installed correctly, etc) -- so getting the exception is key to solving this.
You turn off custom errors this way:
Look for section like this in your web.config:
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
Make sure that it is uncommented and then change mode in the customErrors node to "Off"

Related

Web App - manifest.json not applied if it's in a sub-path

I am attempting to create a react based web app. I got it working the way I wanted, and it behaved as a web app the way I expected -- for now, that means to me that on my phone, from chrome, if from the chrome menu I choose 'Add to Home screen' it shows up as if it were an app (showing up with its own icon & launching in a new window outside of chrome).
After getting that working, I decided to reorganize so that the path would be the way I wanted it - from mydomain.com -> apps.mydomain.com/appName. I moved the code to the proper directory, and when I browse there I see my "app".
I noticed an issue right away where the static assets were not loading, I fixed that by adding a symlink in www/mydomain.com pointing to www/mydomain.com/appName/static. At this point, I thought my app was properly reorganized.
Unfortunately, when I tried "add to Home screen" from chrome, it now makes a regular shortcut, which to me seems to indicate the manifest.json isn't being applied. This all adds up to me to be a fundamental issue I don't understand with code organization for sub-paths which gave me pause.
So my question is: What do I need to do to properly host my web app in a sub-path?
Notes:
I am using nginx - I am suspicious that my issue lies in configuration there, and if more info on my configuration there is needed, I can provide it.
Regarding the change to apps. - sorry if it obfuscates the problem somewhat, to note I just added an alias - thus apps.mydomain.com appears to be equivalent to mydomain.com - I only noted it in case that assumption was wrong and part of the problem.
Pardon my question language if it's wrong, I am new-ish to web, and may not be using the lingo properly - that also is why I am probably having difficulty just googling this.
Thanks!
I think I figured it out. My app was made with create-react-app, and in the package.json I edited the homepage to be my path.
Found this out from here:
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#building-for-relative-paths

BrowserLink VS2013 not connecting

my issue is, BrowserLink never connects to my Browser in "Browser Link Dashboard"
i'm using Visual Studio 2013 Prem Update 5 on a Win10 machine
project is a MVC 5 application
Browser is IE11.212.10586.0
BL is activated in the dropdown of the refreshbutton
From here, when i run my app on IISExpress, the BL Dashboard says no connection
but in the HTML i can find the script-Tags
images, i'm not rated enaugh to implement in post
at least, i checked the web and found some web.config parts i should try, but that not resolved my issue
1# <compilation debug="true" targetFramework="4.5" />
2# <add name="Browser Link for HTML" path="*.html" verb="*"
type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
resourceType="File" preCondition="integratedMode" />
so i need to change, save, refresh my page all the time - someone tipps for me what could be wrong?
Many thanks
UPDATE 2016-06-23
The TrafficFiddle by IE10 does not contain a GET Request with BL in URL
He does:
Get HTML File
Load scripts and stuff by "bundle.cs"
load image
Additional: Some weired things happen with DOM Explorer.
There is only html>Head! no body is listed or BL scripts, when i use "inspect element" the full DOM do appear
DOM displayed initial by browser - weired
I would guess the browser would stop add stuff into DOM because of any script issue in head - but when i look with inspect at the "real DOM" there's just the body after the printed DOM - sry not enaugh rep to show a 3rd link :(
You can try looking at a network trace in Fiddler or your browser tools. Since the script tag has been inserted, there should be two requests that have "browserLink" in the URL. The first one gets the Browser Link script, and the second one establishes the SignalR connection. If either of those is failing or missing, the failure could provide a hint why Browser Link is failing to connect.

Replace Space in DNN Friendly URLs

I'm working on a site running DNN 7, and I'm trying to format my URLs. In my web.config file I changed the format to HumanFriendly URLs like so:
<add name="iFinity.FriendlyUrl" type="iFinity.DNN.Modules.FriendlyUrl.DNNFriendlyUrlProvider,
iFinity.FriendlyUrlProvider" includePageName="true" regexMatch="[^\+a-zA-Z0-9 _-]"
urlFormat="HumanFriendly" redirectUnfriendly="true" doNotRedirect="SearchResults;"
checkForDupUrls="true" forceLowerCase="true" redirectWrongCase="false" replaceSpaceWith="-"
logCacheMessages="false" pageExtensionUsage="never" />
The rewrite is working fine, except one problem. On pages that have a space, for example we have a page titled, "Who We Are" I want the URL to be who-we-are, and the URL is generating as whoweare. What do I need to add in order to change that? I've been digging all morning and can't find anything about it.
Thank you in advance for any help, it's much appreciated!
The iFinity Friendly URL functionality has been merged into the DNN core and is no longer updated.
http://www.ifinity.com.au/2013/07/22/DNN_71_and_Url_Master
The above post explains how to transition to the new provider.
I uninstalled the iFinity controll, and then used instructions from this page to change the space character:
http://www.christoc.com/Tutorials/All-Tutorials/aid/6

Need guidance in debugging this DNN issue

I'm a beginner with DotNetNuke and am having trouble debugging this problem. We are using DNN version 5.
On our local development machines our DNN site renders just fine. But we recently deployed to our test server and on there the site only renders fine when logged in as the Host. When viewing the site as just a normal visitor, all the styles are messed up -- it is just a white page with images gone and menus stacked vertically.
Clues / Notes:
We recently added a new .ascx and module
There are javascript errors, but it hard to tell what is causing them
You may ask about the Log Viewer screen. I looked there and I see exceptions, but I think the exceptions there are unrelated ( will look into this)
Works fine in our local dev environment
In server, only renders fine when logged on as Host
What are some steps I can take to try to debug this? Where else can I look besides the Event Viewer to see what is going on here?
Thanks!
What is the "new .ascx" that you deployed? Is that a skin page?
If something is wrong in the skin page and it is the default site page (under Admin > Site Settings), that would explain why non-admin users have issues, but Admin/Host users (where the site's Edit skin is working) don't have issues.
This solved it:
https://stackoverflow.com/a/3831419/614263
Due to permission settings it looks like IIS was blocking requests from the root to javascripts and css files. When looking at the Network traffic in FireFox I noticed that 404 errors were coming from "login.aspx?ReturnURL=../../blahblah.css"
Thanks for all your help and suggestions.

Tomcat 6 Hot Deploy issue

I am using Java 6 64-bit and STANDALONE Tomcat 6.0.18 on Vista 64-bit. I am working on a web application with struts 1.3.10 and tiles. Now when I make changes to my java or jsp files, they are not visible when I reload the page. I have to manually reload the web application in Tomcat Manager to see the changes. My web app configuration is as follows:
$CATALINA_BASE/conf/Catalina/localhost/dashboard.xml
<Context docBase="D:/mydata/projects/PatchworkSystems/development/Dashboard/webapp"
path="/dashboard"
reloadable="true" antiJARLocking="true" antiResourceLocking="true" debug="1" />
Any help is greatly appreciated.
Thanks
Quadir
Ah, this old chestnut.
I hit this snag on a project back last summer.
It's because of a side effect with having antiResourceLocking="true" set on your context. If you read the documentation on Tomcat here:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
"Please note that setting this to true
has some side effects, including the
disabling of JSP reloading in a
running server: see Bugzilla 37668."
which is here:
https://issues.apache.org/bugzilla/show_bug.cgi?id=37668
There is no workaround as far as I know, if you remove the attribute it will allow you automatic loading of yor JSP's again. We set a deploy time subtitution to put the attribute back in for production. Boo, hiss! Anyways if you remove the antiResourceLocking attribute it will solve the problem you're experiencing.
Provide a workaround Apache !!!

Resources