error finding "email-a-friend/1108.aspx'"

May 7, 2009 at 2:01 PM
Hiya,

I've installed Umbracov4 and the latest CWS
I get an error when I try and click on the "email a friend" linkon the “about.aspx” page.

<<
No umbraco document matches the url 'http://localhost/email-a-friend/1108.aspx'
>>

I've done a bit of digging, and I can confirm the following:

I can see the settings --> templates --> master --> email a friend
It’s also in the documentTypes section.
However, I  notice that this page isn’t visible at all in the “content” section.

I’m logged in as an admin user, so I know that it can’t be hidden due to my permissions?

Any ideas?

Many thanks,

yogi
May 8, 2009 at 8:38 AM

Hello Yogi,
This page does not physically exist inside umbraco it is using a URL rewriting rule.

http://localhost/email-a-friend/1108.aspx which is actually going to this url
http://cws2.xeed.co.uk/email-a-friend.aspx?nodeID=1108

When installing CWS2 the URL rewrting config should be installed and setup for you.

Open up /config/UrlRewriting.config and make sure this rule is inside the file.

<add name="CWS_emaiAFriendID" virtualUrl="^~/email-a-friend/(.[0-9]*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/email-a-friend.aspx?nodeID=$1" ignoreCase="true" />

I hope this helps you out.
Warren

May 8, 2009 at 11:19 AM
Edited May 8, 2009 at 12:58 PM

hiya Waren,

Ta for the reply.I checked the "config/UrlRewriting.config", but it only contained commented out sections, none of them similar to the one that you supplied.

So, I copied the section you supplied inside the <rewrites> tag and saved the changes, but I still get the same error.

<<
No umbraco document matches the url 'http://localhost/email-a-friend/1108.aspx'   
>>

OR

<<
No umbraco document matches the url 'http://localhost/email-a-friend/1109.aspx'   
>>

#1 I'm assuming that the change was picked up in the new app domain, and there's no xmlCaching / anything that I need to specifically refresh?

The other configs, eg, "formHandlers.config" contain uncommented values...so they seem ok.

#2 So, I'm guessing something went wrong in the install, a problem that specifically prevented the "UrlRewriting.config"  from being properly configured?

At this stage I'm still fairly new, and would be happy to unistall and re-install, then  re-install the package.Of course, any comment on the above would be nice, so that I can understand why it did't work.

 

Many thanks,

yogi

 

 

 

May 8, 2009 at 11:33 AM

OK it looks like the install failed to update urlrewriting config file.

Have you tried browsing to the querystring version at all, does this work?
http://localhost/email-a-friend.aspx?nodeID=1108

Thanks,
Warren

May 8, 2009 at 2:01 PM
Edited May 8, 2009 at 5:31 PM

hiya Warren,

 

Sorry, I should have mentioned that I had already tried that.

I noticed that there were 2x CWS packages in the "developer-->packages --> installed packages" section, so I uninstalled both of them.

 

I've subsequently tried to re-install he CWS2 package, but am now running into other errors.

 

I think I'll just uninstall umbraco by:

1) deleteing the database

2) deleting the umbraco files on wwwroot.

 

#1 Is the above the cleanest way of uninstalling ubraco?

 

I don't have any pre-v4 versions.

I just want my machine as clean as possible so that I can cleanly install umbraco v4 + CWS2.02

 

#2 You mentioned  that  <<the install failed to update urlrewriting config file.>>

I take that to mean:

1) The initial umbraco installation will create the urlrewriting config file.

2) The subsequent installation of the CWS2 package will update the existing urlrewriting config file.

 

many thanks for any replies,

 yogi

 

May 8, 2009 at 4:18 PM

OK the uninstall for my package is not working currently with umbraco and is something i need to look into and fix.

I recommend you do what you said and do a clean install of Umbraco.

Delete the files from wwwroot and delete the SQL database (using the same db without deleting will cause errors still) and start over again from fresh.

In regards to the urlrewriting config in the install of umbraco (the zip folder) in the /config folder the empty commented out file exists but when you install my package a package action should update the urlrewriting config with the updated rule.

Let me know how you get on.

Warren

May 11, 2009 at 11:00 AM
Edited May 11, 2009 at 3:00 PM

hiya Warren.

 

I had a few goes at trying to uninstall then re-instal Umbraraco + CWS2.

Now, the CWS2 is displayed in the Developer section as "installed packages", yet it doesn't appear in the content section.

I've been looking thru all the articles and I can see that the following config does contain values for CWS:

C:\Inetpub\wwwroot\data\packages\installed\installedPackages.config

Also, I can successfully install the "BlogForUmbraco4"

This thread is already moving away from its title.

I'm quite happy to let this thread lie until I try another install in a few days if that's ok.

many thanks,

yogi

 

May 11, 2009 at 2:16 PM

Yogi what datbase provider are you using for this?
SQL, MySQL or VistaDB?

Warren :)

May 11, 2009 at 3:35 PM

Yogi I deleted your post for security reasons as you copied the web.config in that message this contained your SQL DB username and password in the connection string.

This is very strange that it is not installing correctly.

After installing CWS2.0.2 and Umbraco 4.0.1 (clean).

Check the following:
Do you get any errors on install of CWS2?
http://localhost (what is displayed here - the CWS2 site?)
Goto the content section in Umbraco after the CWS2 install - are any nodes in this section?
In the Developer section are there any Macros and XSLT files in these folders?
In the settings section are there any templates, Stylesheets and DocumentTypes in this section?
Check inside the media folder (on disk, not in the umbraco section) is there an Assets folder inside?

I hope we can get to the bottom of this.

Warren

May 11, 2009 at 3:51 PM

hiya,

 

It's only a local install but you're right, better safe than sorry!

Ok, I'll delete database and all code.I'll then:

1) install umraco Umbraco 4.0.1  (without instaling runway)

2) install CWS2

Just to confirm.

yogi

May 11, 2009 at 4:59 PM
Edited May 12, 2009 at 1:20 PM

hiya, this is what I did:

<<Do you get any errors on install of CWS2?  >>

I get a Timeout error, even though I didn’t browse away from the page.

<<http://localhost (what is displayed here - the CWS2 site?)>>

 

 No,I get the following message:

Looks like there's still work to do

You're seeing the wonderful image above because your website doesn't contain any published content yet.

<<Goto the content section in Umbraco after the CWS2 install - are any nodes in this section? >>

Yes, the nodes for the Blog package, though I didn't install it this time.

<<In the settings section are there any templates, Stylesheets and DocumentTypes in this section?

yes, email a friend etc

<<In the Developer section are there any Macros and XSLT files in these folders>>

yes, the .net contact form etc

 

<<Check inside the media folder (on disk, not in the umbraco section) is there an Assets folder inside?>>

yes, photos and placeholder photos etc.


yogi

 

May 12, 2009 at 1:11 PM

I am not sure why it would timeout is your SQL server have a good connection. Is it on the same local machine or remote?

It does not sound like you are deleting the database and creating a new database from fresh.
It seems like you are re-using the old database, as Umbraco knows about blog4umbraco package which you did not install this time around. Did you definately delete the database and all files in wwwroot and copy over the files from the 4.0.1 zip folder?

If you are using XP or Vista you could use the Microsoft Web Platform Installer to help you install & configure Umbraco which may help you.
http://www.microsoft.com/web/gallery/Umbraco.aspx

Could you try CWS2.0.0 as this does not use a particular package action as this does not include a particular package action which may be causing the problem.
http://umbracocws.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24242

Thanks,
Warren

May 12, 2009 at 1:39 PM

hiya,

 

#1  It's a local sqlConnection.

<<Did you definately delete the database and all files in wwwroot and copy over the files from the 4.0.1 zip folder?>>

#2 Yes I deleted database and files. No I didn't copy over files, because I'm using Xp, so I use the wpiLauncher.

 

yogi

May 12, 2009 at 2:12 PM

This is getting very strange. Considering you originally had CWS2.0.2 to be installed now you can't install it all !!
This seems to be very odd!

I am not sure what to recommend now. Apart from trying on another machine possibly?

Warren

May 12, 2009 at 2:24 PM

aye, it seems very strange.

I can't install on another machine as I don't have one.I think the issue is that it is "installed", but not "published".

Don't worry about it. I'll have a think about it.Ta for trying though.

yogi