Posts

Showing posts from October, 2014

"dnn.dom is undefined" or "'attachEvent' of undefined"

I would get this " TypeError: dnn.dom is undefined" error and see it in using firebug in the dotnetnuke 7 (dnn) website on a page.  In the  page I would later get  "Uncaught TypeError: Cannot read property 'attachEvent' of undefined" after clicking an html button that would run some javascript.  What is strange is that I am not missing an jquery files either, the "Net" section shows that I properly get all of them.   It boiled down to the site being 4.0 and there being a 3.5 reference in the ascx module.  Once I commented out the line below that error disappeared.    <!--<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>-->

Woff files not found in browser

http://stackoverflow.com/questions/4015816/why-is-font-face-throwing-a-404-error-on-woff-files?rq=1 Solution that worked for me was to add the MIME type in the web config. <system.webServer> <staticContent> <remove fileExtension = ".woff" /> <!-- In case IIS already has this mime type --> <mimeMap fileExtension = ".woff" mimeType = "application/x-font-woff" /> </staticContent> </system.webServer>

Viewstate MAC Validation Errors and DNN

In our log we have an awful lot of viewstate mac validation errors.  Verifying the state of the viewstate is a good security feature, this page documents possible causes and fixes. http://support2.microsoft.com/kb/2915218. However none of the causes seem to fit our case. ----------- Cause 1: The web application is running in a farm (multi-server environment)   We are not in a web farm.  Cause 2: The worker process uses the IIS 7.0 application pool identity   We are using IIS 7.5, and in that version it is not an issue. Cause 3: The application pool is configured by using LoadUserProfile=false   That setting is set to true for our app pool. Cause 4: The Page.ViewStateUserKey property has an incorrect value   Nothing we are doing is modifying this.     Cause 4 made me think about the CMS DNN.  So I googled the error and DNN. http://blog.janjonas.net/2013-04-18/dotnetnuke-workaround-validation-viewstate-failed-exception-dnn_7-login-form/comment-page-1#comment-3885

SVN: Unable to upgrade ... at line 1740

Image
When attempting to upgrade the working copy of a folder in a svn project, I get an odd error "Unable to upgrade (foldername) at line 1740".   The 1740 is curious because I have been getting this error on multiple different folders and none of the files in the folder are near that number of lines.  To get past this I deleted the hidden svn folder in the folder then added the folder and committed, and it went through fine.

DNN 7 where is the Login module

site~/DesktopModules\AuthenticationServices\DNN The css in the module is the default.css.  I modified module using styles..a bit afraid of modifying the default.css for the entire site.  I just needed to make the controls be closer to the left so that they would not go off the screen on mobile devices.  example of disaplying the username left <div class="dnnLabel" style="padding-right: 0px;text-align: left; width: 16.075%;">        

DataGrid's ImageButton's RowCommand Does Not Fire

ref: http://www.wiktorzychla.com/2008/01/imagebutton-in-templatefield-does-not.html When converting an asp.page from vb.net to c# one imagebutton in a templatefield would not fire the rowcommand.  Converting the imagebutton to a linkbutton with an image inside worked perfectly and looked exactly the same.

Why shrinking a DB won't help

http://www.sqlskills.com/blogs/paul/why-you-should-not-shrink-your-data-files/ http://thomaslarock.com/2009/03/when-to-use-auto-shrink/