Products » Support Forums 

Support Forums

 
iFinity Support ForumiFinity Support ForumGeneralGeneralGeneralGeneralGetting Error with iFinity.FriendlyUrlProviderGetting Error with iFinity.FriendlyUrlProvider
Previous Previous
 
Next Next
New Post
 5/15/2009 8:11 PM
 
 Modified By ashish shukla  on 5/15/2009 8:11:34 PM

Hello,

I have downloaded the iFinity.FriendlyUrlProvider from

http://www.ifinity.com.au/Downloaded/Product/iFinity.FriendlyUrlProvider/?link=downloads/iFinity.FriendlyUrlProvider_05.00.04_Install.zip&pg=399&md=1046 .

Then I follow the following steps

Step 2: Copy the iFinity.FriendlyUrlProvider.dll in to the /bin directory.

Step 3: Backup your existing web.config

Step 4: Replace this entry:

<add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules.UrlRewrite"/>

with this entry:

<add name="UrlRewrite" type="iFinity.DNN.Modules.FriendlyUrl.UrlRewriteModule, iFinity.FriendlyUrlProvider"/>

Step 5:   Add this entry to the  existing "friendlyUrl" provider section:

<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="false" redirectWrongCase="false" replaceSpaceWith="_" logCacheMessages="false"/>

This set of options will change an 'old' DNN friendly Url like this:
mysite.com/MyTestPage/tabId/65/MyParam/MyValue/default.aspx
to this:
mysite.com/My_Test_Page/MyParam/MyValue.aspx

This set of options is a good starting point for most websites.

Step 6: Change the entry for <friendlyUrl defaultProvider="DNNFriendlyUrl"> to <friendlyUrl defaultProvider="iFinity.FriendlyUrl">

Step 7: Try it out! Note that you may have to restart your application to get the Friendly Url provider working properly.  Also note you must have your 'Friendly Urls' option in the Host Settings page switched On.

And Now my site is give following message on my DotnetNuke website.

An error has occurred.
An error has occurred.

 

Am I missing any configuration?

Please Help it is very urgent, because I am not able to see even a home page of my website.

Thanks in advance,

Ashish Shukla

New Post
 5/15/2009 10:49 PM
 

To restore your site, just restore your web.config from the backup you took.

It's likely that you have an invalid entry in your web.config file, which is causing an error.  However, you will have to find out what that error is.  Have a look in the DNN event log, and the windows event log, and see if you can find out what the error is.  I can't diagnose the error without more information.

I would also repeat all the steps again, taking care to make sure that when you create the web.config entries, you get them in the correct place and close all the xml elements and attributes correctly.

 

New Post
 5/16/2009 4:34 PM
 

Hi,

Thanks a lot. I have restored my site and  site is working now.

After that from from my Admin tab I opened Event Viewer and check the event log.

I had done my settings as suggested  in the Installation documents.

But i got following error in event logs :

AssemblyVersion: 04.09.02
PortalID: 0
PortalName: My Website
UserID: -1
UserName:
ActiveTabID: 37
ActiveTabName: Home
RawURL: /DNN/Default.aspx?tabid=37&error=The+type+initializer+for+'DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider'+threw+an+exception.&content=0
AbsoluteURL: /DNN/Default.aspx
AbsoluteURLReferrer: http://localhost/DNN/Default.aspx?tabid=37&error=The+type+initializer+for+'DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider'+threw+an+exception.&content=0
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 9b7430a3-0d58-4b99-b6e5-40cabac49d1f
InnerException: The type initializer for 'DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider' threw an exception.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Framework.Reflection.CreateObject
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The type initializer for 'DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, Boolean UseCache) at DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider.CreateProvider() at DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider..cctor() --- End of inner exception stack trace --- at DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider.Instance() at DotNetNuke.Common.Globals.NavigateURL(Int32 TabID, Boolean IsSuperTab, PortalSettings settings, String ControlKey, String Language, String[] AdditionalParameters) at DotNetNuke.Common.Globals.NavigateURL(Int32 TabID, Boolean IsSuperTab) at DotNetNuke.Entities.Tabs.TabInfo.get_FullUrl() at DotNetNuke.UI.Skins.Controls.BreadCrumb.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: AQUA

Thanks in advance,

Ashish Shukla

New Post
 5/17/2009 9:55 PM
 

That error is most likely an error in the sitemap entry, or perhaps a missing or wrongly named DLL.   Please check to see you have correctly copied the files in the install package to the correct locations.  Also consider using the Url Master module, as this automates all these steps for you, and is more suitable if you are not confident in manually configuring files and web.config entries.

Previous Previous
 
Next Next
iFinity Support ForumiFinity Support ForumGeneralGeneralGeneralGeneralGetting Error with iFinity.FriendlyUrlProviderGetting Error with iFinity.FriendlyUrlProvider

Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.