BrowserLink VS2013 not connecting - browser-link

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.

Related

Office Add-ins Caching my HTML file

For god knows what reason, Office Add-ins on my local word client is Caching a html file that I dynamically load in (through angular) and refuses to give me a way to remove it from the cache. My only solution is to rename the file and force it to look for a new one.
I know it's a caching issue and not a code issue because when I load the app up inside the web-client it always gets the new version and not the old version.
Please help, renaming files every time I change them is stupid and time consuming
I had the same, not with Angular but JS add office add ins, cut off my webserver and still was able to load the HTML!
For me what worked was the "Clear" button under Trust Centre -> Trusted Add-in catalogues.
Perhaps this is HTML5 - something to do with you manifest, something like this in your HTML, or the equivalent automatically occurring?
`<html.... manifest="/manifest.appcache">
There are loads of suggestion for how to prevent this I haven't tried it yet, but this looks like it contains reasonable examples to test - if imparted in an unusual manner!
http://alistapart.com/article/application-cache-is-a-douchebag
Second option which is now working a treat for me!
In internet Explorer go to Internet Options -> General tab -> Settings -> Temporary Internet files -> tick "Every time I visit the webpage". Naturally this only works for locally hosted sideloading apps.
Oddly enough IE seems to be the object loaded in Office 2016, not Edge, although I have had an Edge message appear in my side-load space, I'll try and grab a shot of it next time I see it (it was during an error it appeared!).
There are a few tricks that might work like this:
What does appending "?v=1" to CSS and Javascript URLs in link and script tags do?
Or in CSS like this:
https://css-tricks.com/can-we-prevent-css-caching/
Today (Win 10 1903 and newest Office 2016) Office AddIns are using Edge as WebViewHost. The WebViewHost seems to store the cached files here:
dir /s %LOCALAPPDATA%\Packages\Microsoft.Win32WebViewHost_cw5n1h2txyewy\AC\#!123\INetCache\
In our case we are using Azure App Service (IIS) as backend for our Office AddIn.
And we added the following web.config setting to let the client re-validate all cached files on each access:
...
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="0.00:00:00" cacheControlCustom="must-revalidate" />
</staticContent>
...
Of course, the cacheControlMaxAge may be adjusted to your needs.
Hitting Ctrl + Shift + F5 helped for me.
An easy workaround for this would be to append some random query string at the end of the url, thus making sure your browser has a cache miss.
For example, instead of getting the file http://myaddin/myfile.html, append a big enough random query string parameter so that you instead query for http://myaddin/myfile.html?cache=s98sj398nf03984jf3498n.

Silverlight got http302 error after login successfully in iframe

I have one silverlight 4 application which contains one iframe to show aspx pages. The silverlight app and the application in iframe, both are hosted in the same web server.
First, there are two login.aspx pages. One is in silverlight app, other is in another site which is embedded in iframe. My silverlight app will be loaded first and login successfully for silverlight app.
Then, in my silverlight app, there is one link button to load the aspx page into iframe.
When I access the aspx page in the iframe at the first tim, it will go to its login.aspx and login successfully. After that, I go back to the silverlight app, i immediately get the http 302 error. But the duration between i access aspx page and the silvelight app, not bigger than the time of session timeout.
So could anyone be able to figure out what can make the error?
P.S. It only occures after aspx page logins successfully. If I do not touch the aspx pages in iframe, just acces the silverlight pages, it will have no error.
Today found the root cause and resolved it. It is due to the two applications are placed into same machine. Then, the second login will overwrote the authentication cookie of the first login. (It meant to call the sencond's FormsAuthentication.SetAuthCookie() will overwrite the first ones.) So the solution is very easy. Just to make their authentication cookie name different:
`
<authentication mode="Forms">
<forms name=".SecondAuthCookie" loginUrl="login.aspx"
defaultUrl="default.aspx" />
</authentication>
`

DNN module doesn't include css/js when in view mode

I have a DNN module that I wrote that includes the css/js for the jquery fancybox plugin like so:
<%# Control Language="C#" AutoEventWireup="true" CodeBehind="View.ascx.cs" Inherits="DotNetNuke.Modules.WebPortfolio.View" %>
<%# Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<dnn:DnnCssInclude runat="server" priority="10" FilePath="DesktopModules/WebPortfolio/Scripts/Fancybox/jquery.fancybox.css" />
<dnn:DnnJsInclude runat="server" priority="10" FilePath="DesktopModules/WebPortfolio/Scripts/Fancybox/jquery.fancybox.pack.js" />
When I'm in Edit mode, everything is fine and dandy, but when I switch to View mode, the css and js are not included. This seems fairly simple, so I guess I'm missing something, but what? Why aren't the scripts loading in View mode?
DNN version is 6.2.4
Edit: I've been fighting with this all last night and this morning. The script loads every time in Edit mode, but when in View mode or logged out, it loads maybe once or twice, then fails to load. Interestingly, I added a server side timestamp to the module's view control and disabled all caching (browser, DNN host settings) and the file is still being cached. This occurs on both my local machine (IIS Express) and our staging server (IIS 7.5).
If I bounce the web server and clear the Portals/0/Cache directory, the script occasionally loads the first time, but fails after that. I've finally resorted to a client side check which loads the script dynamically if necessary, but that circumvents the goodness of the client resource management API, so I'd really like to figure out a proper solution.
This sounds like an issue that I just logged (DNN-20363), where resources registered with the Client Resource Management Framework aren't included when the module is cached. I was running into this when the module had module caching on. Does your module have a default cache time set in its module definition? You might try turning that off and then adding a new instance (to make sure that the caching setting itself isn't getting cached).

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 !!!

dotnetnuke and dotimage problem

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"

Resources