Problem Upgrading for DNN 4.9.5 to DotNetNuke 6x

During an update from DNN 4.9.5 to DNN 6x we experienced:

All pages with HTML blank when logged out, but show this error logged in.

image

Error: Services is currently unavailable.DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for ‘DotNetNuke.Modules.Html.DataProvider’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘DotNetNuke.Modules.Html.DataProvider’ threw an exception. —> System.InvalidCastException: Unable to cast object of type ‘DotNetNuke.Modules.HTML.SqlDataProvider’ to type ‘DotNetNuke.Modules.Html.DataProvider’. at DotNetNuke.Modules.Html.DataProvider.CreateProvider() — End of inner exception stack trace — at DotNetNuke.Modules.Html.WorkflowStateController.GetWorkflows(Int32 PortalID) at DotNetNuke.Modules.Html.HtmlTextController.GetWorkflow(Int32 ModuleId, Int32 TabId, Int32 PortalId) at DotNetNuke.Modules.Html.HtmlModule.OnInit(EventArgs e) — End of inner exception stack trace —

Solution

In our case, the upgrade left 2 things behind that DNN 6 did not like.

  1. in the app_code directory, we deleted the ‘HTML’ folder (since it does not seem that it was in use anymore and was potentially conflicting with new html module code)
  2. in web.config, I removed the following line in the <Codesubdirectories> section
    <add directoryName="HTML" />

Save and you are done.

DotNetNuke 6 running in .Net 4.0 Server Error in ‘/’ Application Version=3.5.0.0 Version=4.0.0.0

image

We had a requirement today to run a DotNetNuke Website in .Net 4.0 as some code we are using as part of the Microsoft CRM 2011 SDK require .Net 4.0.

Problem is that with many of the DotNetNuke websites, they have some references that will cause this error when you flip your website worker process to 4.0. in IIS.

image

This will give you an error that looks like this:

 

image

Generates an error:

Server Error in ‘/’ Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1703: An assembly with the same identity ‘System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ has already been imported. Try removing one of the duplicate references.
Source Error:

[No relevant source lines]

Source File: Line: 0

Show Detailed Compiler Output:

 

Interestingly too the reference to Version=4.0.0.0 initially said Version-3.5.0.0 until the second page refresh on the error.

The Problem

The problem in our case, and it may differ with others, related to an older file for Microsoft Ajax.

There is a file called: System.Web.Extensions.dll

in the \bin    folder.

We renamed this to: System.Web.Extensions.dll.bak

And our problem was fixed.

This is due to an older way that Microsoft handled Ajax vs the new way in .Net 4.0.

 

DotNetNuke Support Services

We do offer DotNetNuke support services and would be happy to assist others with this or other DNN problems that need professional support services with.

http://www.interactivewebs.com/Services/DotNetNukeSupport.aspx

Migrate from IIS 7.0 to IIS 7.5 in a new Windows 2008 R2 Server

image

Moving from one IIS 7.0 server to IIS 7.5 is relatively easy and there are a number of tools that can assist you. Probably the best is the Web Deploy tool mentioned here:

This tool can allow you to package up and migrate the entire web sites, including configuration and database files etc.

Because our IIS 7 server is almost dead, it prevented us from configuring the tool. The install files see .Net 2.0 as required, and although it was installed we were unable to get the server to see it as installed. Anyway we tried all sorts of things, and finally gave up. (Good opportunity to rag on Microsoft, but we will leave that alone).

So now we find a need to migrate without the good tools.

Migration

We shared the IIS root folder on the source server. Then pulled all the folders containing websites across from that server to the same location on the new server.

In IIS manager, you need to export the config from the already-configured server. In IIS manager, click the Server node, and go to Shared Configuration under Management.

image

We then clicked to Export – on the right.

image

Enter the path you’d like to export the config to, and set an encryption key password:

image

Note: One thing here that is a real BITCH is that they make you select a pass that is so complex you absolutely have to write it down. We never suggest writing down passwords but they are out of control in what they make you do with this.

Copy administration.config, applicationHost.config, and configEncKey.key to your new server to a temp location.

On the new server, go back to the “Shared Configuration” section and check “Enable shared configuration.” Enter the location in physical path and click “Apply.” It should prompt for the encryption password that you had set. Enter it, and reset IIS.

image

After resetting IIS (command prompt “iisreset”), go back to Shared Configuration and uncheck “Enable shared configuration.” Click apply. You should see this:

image

Click YES and it will import all of the settings from your Shared Config into the local config on your new IIS server.

At this point, all you should need to do is change your server-specific site bindings, and it should be good to go.

Bindings

How to add binding information to a site
  1. Open Internet Information Services (IIS) Manager:
    • If you are using Windows Server 2008 or Windows Server 2008 R2:
      • On the taskbar, click Start, point to Administrative Tools, and then clickInternet Information Services (IIS) Manager.
    • If you are using Windows Vista or Windows 7:
      • On the taskbar, click Start, and then click Control Panel.
      • Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.
  2. In the Connections pane, expand the server name, expand Sites, and then click the Web site on which you want to configure the bindings.
  3. In the Actions pane, click Bindings…
  4. In the Site Bindings dialog box, click Add..

image

 

5. In the Add Site Binding dialog box, add the binding information, and then click OK.

image

CRM 2011 Server Error 404 – File or directory not found

Cannot Access CRM 2011 site 404

Something strange that we have encountered with CRM 2011 is a 404 – File or directory not found error.

What is particularly strange about this one is that the error happens from IE 9 on one computer, but the same URL and site loads correctly with another browser on another computer AND loads correctly to the authentication screens on the same computer but with a different browser.

Go figure right!

image

 

Microsoft show it as:

image

So what is the Solution?

We tried a number of things that did not work, and we will not bother to list them all, but interesting the clearing the browser history and cache etc does not fix it but is needed to fix it.

1. Clear history and cache in the browser:
imageimage

2. Close the Browser entirely

3. Navigate to C:\Windows\Temp and delete everything in that directory.

4. From this screen, got to browser history settings:
image

Then View Files:

image

5. Takes you to this location: C:\Users\XXUSERXX\AppData\Local\Microsoft\Windows\Temporary Internet Files

6. Close Outlook and IE.

7. Delete Everything in that folder that it will allow you to delete. Some files are in use and not able to be deleted.

8. Start IE, and away you go.. you should be able to access the site again.

Rant!

IE really does suck as a browser, it is a real same and the worst thing about CRM 2011 is that they make you use this junk browser.

Setting Mushroom Lite Template for DNN 6x Default Skin

DotNetNuke 6x has a great looking default skin called DarkKnight, and the skin design has previously caused some layout issues with the Mushroom Light Module Templates.

To correct this, we have created two new templates that are designed specifically to work with the DarkKnight skin in DotNetNuke.

Called:

  • DarkKnight-Small
  • DarkKnight-Large

They produce the following results…

image

With the Large template being the content on the left, and the bottom right showing the content of the small template.

This makes the module perfect for use with DotNetNuke 6x our of the box.

 

How to Set the Templates

The templates are selected through the normal RSS Template Tab in the module.

1. Select Load Template Button

image

2. Select the appropriate template and press the select button.

image

That will load the new templates and be ready to use on your site.

Professional DotNetNuke Support Services

Professional Web Support Services

InteractiveWebs Support Services

image

At InteractiveWebs we have years of experience with DotNetNuke, with more published modules on SnowCovered than any other module developer in the store. (And we don’t publish all our modules.)

  • We have our own full time employed team of DNN developers.
  • We have our own full time employed Server Administrators.
  • We have our own Data Centres with our own equipment.
  • We have Years of Professional DotNetNuke Development Experience.

Quite literally there is no one who is more experienced with everything dotnetnuke.

We Offer Paid Support Services for DotNetNuke

We offer paid support services for DotNetNuke in an easy and covenant process.

  1. You advise us of the issue you are facing.
  2. We estimate an up front cost and advise you.
  3. If you decide to accept the quote, we will request that you buy the equivalent number of support tickets from our store.
  4. We will then complete the support job.

Purchasing Support Tickets

You only need to purchase support tickets if we have advise you how many tickets you will need to purchase upfront for the particular job.

You can purchase support tickets from our Support Store Here.

Supporting our Modules Free VS Charged

All of our DotNetNuke Modules are supported free of charge. We will work to resolve issues that our modules cause, or problems directly related to our modules not working as they should.

Sometimes we have clients who need our modules to be configured in a complex environment, or would like them to work with another conflicting product, or they may just want the people who made the module to set them up for them.

In these instances, we are happy to identify work that goes above an beyond “product support” and provide a quote for the additional work. You will find that we are very reasonable both about the price and what we cover for free.

Purchase Support Tickets Here

Apple iOS5 Cards App Asking Please Enter Your CVV

image

Apple has released the iOS 5 and new Apple App Cards.

image

The Cards App is an exciting and easy way to send a card to someone anywhere in the world.

One thing that did surprise me was the App asked me to: Please Enter Your CVV

This is asking you to enter the Credit Card CVV number:

image

Either 3 or 4 digit number depending if you have an AMEX card or not.

Why I was surprised  was that apple usually make things incredibly easy to follow, but in this case I suspect that not everyone would know that the number on the back of your card are called CVV Numbers (Card Verification Value). Hence this post.

What to do?

Easy… if asked for the CVV number while using the Cards App. Just enter the number as you previously provided with the credit card on file with your iTunes account. That is all there is to do.

Why Do They Ask?

This is just anther way to verify that you are indeed you. It is a low level security check that the person who put the card on file is using the App.

Outlook Hangs (stops responding) Opening Email Messages Sent from PayPal

Outlook hangs caused by PayPal messages template fault

imageIn just the last few days, I have started experiencing some issues with Outlook when opening messages sent from PayPal.

This is happening with the recent versions of Outlook, including Outlook 2010 and Outlook 2007.

image

Some of the indications of the problem include.

  • Outlook taking longer than normal to open.
  • Outlook with “Reading Pane” on
  • Outlook Stops Responding when clicking on an email from PayPal.
  • If you wait a long time, it will come good, and even show the email message.
  • If you are impatient and cancel out of outlook, your reading pane is gone when you next open it.

When loading Outlook you receive a message about and address: Contacting: \\102.112.207.net\b\ss\paypalglobal\1\G.4-NS

image

Background information

It appears that the cause of this is some malformed tracking cookies being sent from PayPal.

While it could be argued that Outlook should handle this invalid link much better than it does… We all know that Microsoft is responsible for Outlook, so really we should not expect too much in the way of “graceful error handling”. (After 20+ years of Windows system events, they still don’t have an online library of error codes and meanings.)

At the bottom of the message, there is a hidden tracking image. Instead of this image pointing to a web server, it is pointing to a non-existing network share. As it is pointing to a network share and not to a web server, Outlook’s “Internet picture blocking” functionality doesn’t kick in and tries to retrieve the content.

So what to do what to do?

First, I know for a fact that PayPal is aware of this issue, and while it is literally a 10 min fix for the right person, we know that finding the right person probably means contacting the dev team out of India that they hired last month, and asking them to fix their crap!

Oh I have been doing this too long!

Really… what to do!

  1. Nothing… If you are patient when opening email messages from PayPal while this issue happens, then they will open.
  2. Delete all recent messages from PayPal permanently form both your inbox and deleted items.
  3. Turn off the reading pane in Outlook.
  4. Turn your Outlook into plain text preview
    image
  5. Redirect the invalid call using a modification to hosts

    1. Start Notepad as an administrator.
      You can do this by right clicking on the Notepad shortcut in the Start Menu and choosing “Run as administrator”. If you don’t see this option, hold SHIFT while right clicking on it.
    2. Choose File-> Open… and open the following file;
      C:\Windows\System32\drivers\etc\hosts
    3. Add the following line at the bottom.
      127.0.0.1        102.112.2o7.net
    4. Save the file and close Notepad.

    image
    4. Save the file.

  6. This will basically route 2o7.net request back to your computer, which will reject it, allowing you to read your emails quickly and in peace once again.
    This fix will work on 32/64 bit versions of both Vista and Win 7


If you still have a problem

In Microsoft Windows, use the command ipconfig /flushdns to flush the DNS resolver cache. Open the command prompt and type the following:

C:>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

image

Corporate solution for all computer clients at once

If you are in a corporate network, your system administrators can fix this for everyone at once by adding a Forward Lookup Zone (Primary Zone) for the 102.112.2o7.net domain. Then add an A host record without a name and have it resolve to 127.0.0.1.

After PayPal fix the issue.

The invalid link when fixed will not fix messages already sent with the issue. So unless you permanently delete message with the problem, you will see the trouble each time outlook references them for reading. This is because the reference is totally invalid, not just temporarily down.

Activity Email Updated to DotNetNuke 6x

image

Today we are please to announce that the Activity Emailer Module for DotNetNuke, will support and run on DNN 6x.

This single package will now run on all DNN versions from 04.05.05 and later, including DNN 5x (all versions) and DNN 6x.

 

To Understand the Module

To understand the best use for this module, it is necessary to understand the type of situation it was designed for…

Any business that has a membership database, for example a gym, club or association, church etc. Who currently have an in office database of membership details, and want to run a website that allows members to update their details online, will need a way to have the databases linked from the website back to the membership database in the office.

In many cases we develop custom modules that feed and sync data to a “backend database” to meet specific needs. However sometimes clients simply cannot afford the expense of a customized application that links membership databases.

This module is the cost effective solution. This module sends a simple email to a configured email address with a list of the changes that members who have logged into their website have made. This email can then manually be entered into the “backend database” by staff in the office.

Example

  • A local gym with 500 members has a database to manage membership and billing information in the office.

  • The office database is proprietary software and although a connection module is possible, the cost of development is prohibitive.

  • Membership details are exported from the office to the web.

  • Members of the gym are encouraged via promotions etc. to keep their details up to date on the login area of the gyms DNN website.

DotNetNuke Bulk Emailer URL’s Broken

 

image

If you are using the Advanced Email Module for DotNeTNuke, called bulk emailer, and you find that the links you place in your emails are not working when they arrive as an email. Then the fix is simple.

In the Bulk Emailer Settings Menu

image

Click on the option to Update Link

image

This will force the module to operate on the URL that you are currently working with on the site. It is necessary when you install the module in a dev URL and then try to operate through another URL such as a final domain name url.

The help for the item reads:

If you change the domain name that this module is operating on, then you should click ‘Update Links’ to reset the base URL for Email Tracking, Unsubscription and View Online.

DNN Image Module Template Modifications

image

With our DotNetNuke Image Module, the module comes with several templates. It is possible to modify any of the templates and create images and looks to suite your needs.

The original lightheads template that we use the following html for the thumbnail:

     <div class="iwebs-pic " style="background: url(‘$item.image’) no-repeat scroll 50% 50% transparent;">

     That means the raw image will be used as background image for the thumbnail rectangle. Since the background image will not be cropped or resized, you can only see part of the whole pic.

I You can change the template <div class="iwebs-pic " style="background: url(‘$item.imageresize‘) no-repeat scroll 50% 50% transparent;">

However, in order to keep the proportion, there will be some blank area for each thumbnail.

image

If you do not care about distortion of the thumbnail and want to fill the blank area any way he can use <div class="iwebs-pic " style="background: url(‘$item.thumbnail’) no-repeat scroll 50% 50% transparent;">

http://www.interactivewebs.com/mushroom-image/Demo/LightBoxEffect.aspx

Other DNN Modules