|
Home > Archive > Microsoft Content Management Server > July 2006 > MCMS - Resources Cannot be Found
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
MCMS - Resources Cannot be Found
|
|
| Nibushi 2006-07-23, 1:17 pm |
| Hi,
I have been reading quite a lot about this issue and not getting very
far at all. I am having a problem with file paths once the site is
deployed.
Basically I have created an MCMS 2002 project on my XP development
machine that works fine and dandy. I have followed the development
methods outlined in Building Websites with MCMS.
The problem comes when I deploy the site on to a windows 2003 server.
On the XP Machine I have the following setup:
In site Manager the MCMS site is setup as:
Channels
->sitename
In IIS I have created a virtual directory to the site which can be
accessed via:
//localhost/sitename
I have created my templates and associated them with the relevant
template files which are in subdirectory called "Templates" . When you
associate the template files using VS the TemplateFile property of the
template is set to:
/sitename/Templates/templatename.aspx
As I said this all works fine on my development machine the problem is
when I try to deploy the site.
First of all I copied my VS project across to the Windows 2003 server
with the exact same structure that is on my development machine. I then
create a new website in IIS pointing at the folder I have just created
and set up host headers and map channel names. The host header is set
up as www.sitename.com.
I then go into site manager on my server and change the channel name
from site name to www.sitename.com. All the users are set up and access
is not a problem. The problem is that when I type in www.sitename.com
to browse the site i get the following error:
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: /sitename/Templates/FrontPage.aspx
Now i can get round this by going back to my development machine and
removing /sitename/ from the TemplateFile property and then recopy my
files across but this then means that my test site no longer functions.
But from what I have read online and in the book you shouldn't need to
do this the site should automatically reference the templates properly.
What am I doing wrong? This is driving me nuts. Any help would be
appreciated.
As I said I have already spent a go while trawling this group and other
sites trying to figure this out.
| |
| William Cornwill 2006-07-24, 1:18 am |
| The solution will need to be deployed to the same virtual directory name on
each environment.
Dev.
Virt. Dir Default Web Site \ sitename
Url http://localhost/sitename
Channel /Channels/sitename
SCA Map Channel Names to Host Headers - false
Production
Virt. Dir www.mysite.com \ sitename
Url http://www.mysite.com
Channel /Channels/www.mysite.com
SCA Map Channel Names to Host Headers - true
Regards,
William Cornwill
"Nibushi" wrote:
> Hi,
>
> I have been reading quite a lot about this issue and not getting very
> far at all. I am having a problem with file paths once the site is
> deployed.
>
> Basically I have created an MCMS 2002 project on my XP development
> machine that works fine and dandy. I have followed the development
> methods outlined in Building Websites with MCMS.
> The problem comes when I deploy the site on to a windows 2003 server.
>
> On the XP Machine I have the following setup:
>
> In site Manager the MCMS site is setup as:
> Channels
> ->sitename
>
> In IIS I have created a virtual directory to the site which can be
> accessed via:
> //localhost/sitename
>
> I have created my templates and associated them with the relevant
> template files which are in subdirectory called "Templates" . When you
> associate the template files using VS the TemplateFile property of the
> template is set to:
> /sitename/Templates/templatename.aspx
>
> As I said this all works fine on my development machine the problem is
> when I try to deploy the site.
>
> First of all I copied my VS project across to the Windows 2003 server
> with the exact same structure that is on my development machine. I then
> create a new website in IIS pointing at the folder I have just created
> and set up host headers and map channel names. The host header is set
> up as www.sitename.com.
>
> I then go into site manager on my server and change the channel name
> from site name to www.sitename.com. All the users are set up and access
> is not a problem. The problem is that when I type in www.sitename.com
> to browse the site i get the following error:
>
> 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: /sitename/Templates/FrontPage.aspx
>
> Now i can get round this by going back to my development machine and
> removing /sitename/ from the TemplateFile property and then recopy my
> files across but this then means that my test site no longer functions.
> But from what I have read online and in the book you shouldn't need to
> do this the site should automatically reference the templates properly.
>
> What am I doing wrong? This is driving me nuts. Any help would be
> appreciated.
>
> As I said I have already spent a go while trawling this group and other
> sites trying to figure this out.
>
>
| |
| Nibushi 2006-07-25, 1:18 pm |
| Cheers I will give that a try. Thanks for the reply.
|
|
|
|
|