Posts

Showing posts from 2014

Server At 100% CPU By Simply Browsing Using Shared Folder

  A IT (desktop support) found that having the little side bar open in the windows explorer that shows all the folder in one of the folder shares was causing a server to repeatedly index on an employee's computer.  This causes the server to go to 100% CPU and take very long to respond to anyone's request for documents.  By having that employee keep that section closed the CPU usage is at an average of 5% to 25%.  If anything this seems like a misconfiguration with windows.  The IT desktop support guy will be looking into how to fix that issue. Edit: Turns out there was a misconfiguration in Windows with a Sync program. 

Updating DotNetNuke (DNN)

1)       Download the latest version. it will be a zip file. 2)       Extract it to a folder. 3)       Now you need to make backups of files that will be overwritten by the DNN upgrade.   If there are a important changes you will have to merge them. a.       Files that were customized. b.       Ex: Login ascx page in the DesktopModules/Authentication/DNN folder which I customized it so that the page would fit on mobile devices. 4)       The upgrade may influence the look of the page with the skin.   You may have to modify the skin, Eg:Powerful.   Find that in the Portals/default/Powerful/skin.ascx folder.   5)       Make a backup of the database, and a copy of the existing website folder on the website, in case it screws up.   We have experienced complete corruption of the install before so this step is important. a.       If you need to restore, take the DNN db offline/disconnect all users before restoring otherwise it will not work.   Then bring it back online.

Sql Server 2008: Kill Active Connections To Resolve "database is in use"

Could not restore the db due to the database being in use.  Found the following script worked on sql server 2008 when others failed. http://stackoverflow.com/questions/11620/how-do-you-kill-all-current-connections-to-a-sql-server-2005-database USE master GO SET NOCOUNT ON DECLARE @DBName varchar(50) DECLARE @spidstr varchar(8000) DECLARE @ConnKilled smallint SET @ConnKilled=0 SET @spidstr = '' Set @DBName = 'dbnamer' IF db_id(@DBName) < 4 BEGIN PRINT 'Connections to system databases cannot be killed' RETURN END SELECT @spidstr=coalesce(@spidstr,',' )+'kill '+convert(varchar, spid)+ '; ' FROM master..sysprocesses WHERE dbid=db_id(@DBName) IF LEN(@spidstr) > 0 BEGIN EXEC(@spidstr) SELECT @ConnKilled = COUNT(1) FROM master..sysprocesses WHERE dbid=db_id(@DBName) END

DNN: Access Login Page as Admin or Host

Image
To modify the login page as an admin you can access it via Page Management page. Once you find the login page, right click and click "View Page".  I needed to add a custom page container, and this worked.

TortoiseSVN: Show Files Not in Repository

Image
Right click in project, TortoiseSVN->Check For modifications -> click "unversioned" for all files that are not in project. http://stackoverflow.com/questions/613485/how-can-i-get-tortoisesvn-to-get-a-list-of-files-that-are-not-in-the-repository

Media Queries - Powerful skin

If you wish to change the width for when the menu changes from the side Megamenu to the Standard menu you must modify the media queries in the skin.css file in the root of the skin folder.

Good free icons

flaticon.com Can download many at once. Can select a size for all of them. Can select a file type.

SVN “previous operation has not finished”? Cannot Update/Commit

Could not update, could not commit.  Clean did not work at any level either.   Below were some of the things I tried.  Finally deleting the whole project folder and checking out the entire project again fixed the problem. http://stackoverflow.com/questions/10128201/subversion-stuck-due-to-previous-operation-has-not-finished

Dnn Error Cannot Rename Page

When in Page Management I encountered a situation where one page could not be renamed to a specific page name.  The reason behind it is because there is probably another page with the same name.  In my case I had to clear out the Recycle Bin in order to name the page to a certain name.

"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.