This project is read-only.
1

Resolved

Custom url short still no go

description

My DNN is CE 7.0.3, WatchersNET.UrlShorty 01.03.04, ASP.NET is 4.0, IIS 7.5 and I still get messages that the custom URL I made is already used while it is not.
I tried different configuration options but the dreaded message is still up.

The built-in shorty url's are working all right while the custom ones are not.

Pity.

comments

tha_watcha wrote Apr 14, 2013 at 11:25 AM

Sorry for the late reply. I checked it under DNN 7 with IIS 7 and custom errros do work for me.

Did you set up the Module correctly? In iis 7 you need add the htttperrors node(subnocde system.webServer) to the web.config
 <httpErrors errorMode="Custom">
        <remove statusCode="404" subStatusCode="-1" />
        <error statusCode="404" prefixLanguageFilePath="" path="/DotNetNuke/DesktopModules/WatchersNET.UrlShorty/Redirect.aspx" responseMode="ExecuteURL" />
    </httpErrors>
 </system.webServer>

Greg_Greensky wrote Apr 14, 2013 at 4:51 PM

As I have IIS 7.5 maybe your http errors node is not applicable because I get:

Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /DotNetNuke/DesktopModules/WatchersNET.UrlShorty/Redirect.aspx


Besides what's there in the module settings to set up wrong?

One more info: I have localized pages (pl-PL). Maybe this is the culprit?

tha_watcha wrote Apr 15, 2013 at 12:18 PM

As I have IIS 7.5 maybe your http errors node is not applicable because I get:
you need to adjust the folder. My installation is localhost/dotnetnuke = path="/DotNetNuke/DesktopModules/WatchersNET.UrlShorty/Redirect.aspx".

I guess in your case it would be
 <httpErrors errorMode="Custom">
        <remove statusCode="404" subStatusCode="-1" />
        <error statusCode="404" prefixLanguageFilePath="" path="/DesktopModules/WatchersNET.UrlShorty/Redirect.aspx" responseMode="ExecuteURL" />
    </httpErrors>
 </system.webServer>

Greg_Greensky wrote Apr 15, 2013 at 3:38 PM

That's just it. Should have thought of that beforehand. Thanks.

tha_watcha wrote Apr 16, 2013 at 1:21 AM

Did it also solve the problem with the custom urls, or not?

Greg_Greensky wrote Apr 16, 2013 at 6:28 AM

Yep, both the custom and the built-in urls work as they should. My path is "/DesktopModules/WatchersNET.UrlShorty/Redirect.aspx" so your hint helped. Thanks again.