Microsoft Content Management Server - JavaScript Errors when opening a Template for a new Page

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2004 > JavaScript Errors when opening a Template for a new Page





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 JavaScript Errors when opening a Template for a new Page
Claudio

2004-02-04, 10:46 am

Xref: intern1.nntp.aus1.giganews.com microsoft.public.cmserver.general:29103

hi all

I have the following problem with MCMS 2002:

I have a development server (Windows 2000 Server) with MCMS 2002 (Ver.
5.0.1581.0) installed. I developped several templates on this server and
everything works fine. When I want to add a new page I can choose a
template, fill the placeholders and save the page. after approving the page
it appears within the web site.

On my production server (Windows 2000 Server) with MCMS 2002 (Ver.
5.0.4484.0, SP1a) this doesn't work. When I want to create a new page by
selecting a template the template doesn't load properly. I continue to get
JavaScript errors referring to "AddShiftContentReference" and
"InitializeToolbar" functions. When the template finally has loaded, after
answering to not debug the script several times when the messagebox appears,
the placeholders and the toolbar-icons for the placeholders do not appear on
the page (it looks like the pictures haven't been found).

This behaviour was the same, before installing SP1a on the production
server.

can anybody help?



Stefan [MSFT]

2004-02-04, 10:46 am

Hi Claudio,

you missed to create the CMS virtual directory when copying the project.
See here for details:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Claudio" <cs@futurecom.ch> wrote in message
news:uybwY6n5DHA.2764@TK2MSFTNGP09.phx.gbl...
quote:

> hi all
>
> I have the following problem with MCMS 2002:
>
> I have a development server (Windows 2000 Server) with MCMS 2002 (Ver.
> 5.0.1581.0) installed. I developped several templates on this server and
> everything works fine. When I want to add a new page I can choose a
> template, fill the placeholders and save the page. after approving the


page
quote:

> it appears within the web site.
>
> On my production server (Windows 2000 Server) with MCMS 2002 (Ver.
> 5.0.4484.0, SP1a) this doesn't work. When I want to create a new page by
> selecting a template the template doesn't load properly. I continue to get
> JavaScript errors referring to "AddShiftContentReference" and
> "InitializeToolbar" functions. When the template finally has loaded, after
> answering to not debug the script several times when the messagebox


appears,
quote:

> the placeholders and the toolbar-icons for the placeholders do not appear


on
quote:

> the page (it looks like the pictures haven't been found).
>
> This behaviour was the same, before installing SP1a on the production
> server.
>
> can anybody help?
>
>
>




Claudio

2004-02-04, 10:47 am

thanks for your tip

I converted the directory to a virtual directory but I still have the same
problem. Maybe the way I'm testing the site is the reason for the problem?

on the dev-server I can call the site directly, as I have a dns-mapping
(i.e. http://www.devtestsite.com/default) on the live-server I am testing by
using http://localhost/www.testsite.com/default. "Map channel names to host
header names" is switched on on both servers.

thanks

claudio


"Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
news:OU%23eMSo5DHA.2412@TK2MSFTNGP11.phx.gbl...
quote:

> Hi Claudio,
>
> you missed to create the CMS virtual directory when copying the project.
> See here for details:
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no


rights.
quote:

>
>
> "Claudio" <cs@futurecom.ch> wrote in message
> news:uybwY6n5DHA.2764@TK2MSFTNGP09.phx.gbl...
> page
get[QUOTE][color=darkred]
after[QUOTE][color=darkred]
> appears,
appear[QUOTE][color=darkred]
> on
>
>




Stefan [MSFT]

2004-02-04, 10:47 am

Hi Claudio,

yes this will not work.
Map channel to host header name is a global setting.
You need to access both server using http://www.testdevsite.com/default.
To do this you might have to create a host file entry to ensure that the
right server is hit.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Claudio" <cs@futurecom.ch> wrote in message
news:Op0bx9x5DHA.2748@TK2MSFTNGP09.phx.gbl...
quote:

> thanks for your tip
>
> I converted the directory to a virtual directory but I still have the same
> problem. Maybe the way I'm testing the site is the reason for the problem?
>
> on the dev-server I can call the site directly, as I have a dns-mapping
> (i.e. http://www.devtestsite.com/default) on the live-server I am testing


by
quote:

> using http://localhost/www.testsite.com/default. "Map channel names to


host
quote:

> header names" is switched on on both servers.
>
> thanks
>
> claudio
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
> news:OU%23eMSo5DHA.2412@TK2MSFTNGP11.phx.gbl...
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

> rights.
and[QUOTE][color=darkred]
by[QUOTE][color=darkred]
> get
> after
> appear
>
>




Claudio

2004-02-04, 10:47 am

Hi Stefan

I now created an entry in the hosts file on the live server with exactly the
same domain name as on the development server pointing to the ip address of
the live server. I also changed the name of the relevant top channel on the
live server so that it has the same name.

This still doesn't work. I still get the same error messages when I open a
template within web author.

claudio


"Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
news:uNx%23DDy5DHA.2312@TK2MSFTNGP12.phx.gbl...
quote:

> Hi Claudio,
>
> yes this will not work.
> Map channel to host header name is a global setting.
> You need to access both server using http://www.testdevsite.com/default.
> To do this you might have to create a host file entry to ensure that the
> right server is hit.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no


rights.
quote:

>
>
> "Claudio" <cs@futurecom.ch> wrote in message
> news:Op0bx9x5DHA.2748@TK2MSFTNGP09.phx.gbl...
same[QUOTE][color=darkred]
problem?[QUOTE][color=darkred]
testing[QUOTE][color=darkred]
> by
> host
project.[QUOTE][color=darkred]
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

(Ver.[QUOTE][color=darkred]
> and
the[QUOTE][color=darkred]
page[QUOTE][color=darkred]
> by
to[QUOTE][color=darkred]
production[QUOTE][color=darkred]
>
>




Stefan [MSFT]

2004-02-04, 10:47 am

Hi Claudio,

please check the IIS logfile for 404 errors.
Do you see such errors? Which files are affected?

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Claudio" <cs@futurecom.ch> wrote in message
news:eELjYI05DHA.1816@TK2MSFTNGP12.phx.gbl...
quote:

> Hi Stefan
>
> I now created an entry in the hosts file on the live server with exactly


the
quote:

> same domain name as on the development server pointing to the ip address


of
quote:

> the live server. I also changed the name of the relevant top channel on


the
quote:

> live server so that it has the same name.
>
> This still doesn't work. I still get the same error messages when I open a
> template within web author.
>
> claudio
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
> news:uNx%23DDy5DHA.2312@TK2MSFTNGP12.phx.gbl...
> rights.
> same
> problem?
dns-mapping[QUOTE][color=darkred]
> testing
> project.
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

> (Ver.
server[QUOTE][color=darkred]
a[QUOTE][color=darkred]
> the
> page
continue[QUOTE][color=darkred]
> to
loaded,[QUOTE][color=darkred]
messagebox[QUOTE][color=darkred]
> production
>
>




Claudio

2004-02-04, 10:49 am

Hi Stefan

we're almost there...

by analysing the log files I was able to find out that it was the missing
virtual directory named cms within the application virtual directory which
caused the problem. I created the directed manually and now I can open the
template and the placeholders display correctly.

what still doesn't work although ist saving the new page. the dialog for
saving the page doesn't display correctly. i.e. the pictures in the dialog
don't display and when I click the save button then there are again
javascript-errors.

To definitely correct the problem I finally installed visual studio .net on
the live server in order to let visual studio set up the project correctly.
this also doesnt work. when I want to create the MCMS Project by using the
MCMS template from within visual studio then I get the error message:

"could not create vitural directory http://localhost/myapp/cms in location
c:\program files\microsoft content management server\server\IIS_CMS\".

thanks again for your help

claudio


"Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
news:ORpPJi05DHA.3308@TK2MSFTNGP11.phx.gbl...
quote:

> Hi Claudio,
>
> please check the IIS logfile for 404 errors.
> Do you see such errors? Which files are affected?
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no


rights.
quote:

>
>
> "Claudio" <cs@futurecom.ch> wrote in message
> news:eELjYI05DHA.1816@TK2MSFTNGP12.phx.gbl...
> the
> of
> the
a[QUOTE][color=darkred]
http://www.testdevsite.com/default.[QUOTE][color=darkred]
the[QUOTE][color=darkred]
the[QUOTE][color=darkred]
> dns-mapping
to[QUOTE][color=darkred]
Newsbeitrag[QUOTE][color=darkred]
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

no[QUOTE][color=darkred]
> server
choose[QUOTE][color=darkred]
> a
approving[QUOTE][color=darkred]
(Ver.[QUOTE][color=darkred]
> continue
> loaded,
> messagebox
not[QUOTE][color=darkred]
>
>




Stefan [MSFT]

2004-02-04, 10:49 am

Hi Claudio,

the second error message indicates that your website is not the default
website. Is this correct?

About the first error: did you ensure that the CMS virtual directory is only
a virtual directory and not a web application?

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Claudio" <cs@futurecom.ch> wrote in message
news:uDDptJj6DHA.2692@TK2MSFTNGP09.phx.gbl...
quote:

> Hi Stefan
>
> we're almost there...
>
> by analysing the log files I was able to find out that it was the missing
> virtual directory named cms within the application virtual directory which
> caused the problem. I created the directed manually and now I can open the
> template and the placeholders display correctly.
>
> what still doesn't work although ist saving the new page. the dialog for
> saving the page doesn't display correctly. i.e. the pictures in the dialog
> don't display and when I click the save button then there are again
> javascript-errors.
>
> To definitely correct the problem I finally installed visual studio .net


on
quote:

> the live server in order to let visual studio set up the project


correctly.
quote:

> this also doesnt work. when I want to create the MCMS Project by using the
> MCMS template from within visual studio then I get the error message:
>
> "could not create vitural directory http://localhost/myapp/cms in location
> c:\program files\microsoft content management server\server\IIS_CMS\".
>
> thanks again for your help
>
> claudio
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
> news:ORpPJi05DHA.3308@TK2MSFTNGP11.phx.gbl...
> rights.
exactly[QUOTE][color=darkred]
address[QUOTE][color=darkred]
on[QUOTE][color=darkred]
open[QUOTE][color=darkred]
> a
> http://www.testdevsite.com/default.
> the
> the
names[QUOTE][color=darkred]
> to
> Newsbeitrag
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

> no
2002[QUOTE][color=darkred]
> choose
> approving
> (Ver.
new[QUOTE][color=darkred]
> not
>
>




Claudio

2004-02-04, 10:49 am

this is correct, it is not the default website. the default website is
stopped. within the MCMS server configuration application the default
website is not configured as a cms-site and there is only one site
configured as a cms-application.

the cms virtual directory was in fact a web application. I removed the
application and now it works perfectly.

Thank you very much for your help!

claudio



"Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
news:uDZx%23Uj6DHA.3360@tk2msftngp13.phx.gbl...
quote:

> Hi Claudio,
>
> the second error message indicates that your website is not the default
> website. Is this correct?
>
> About the first error: did you ensure that the CMS virtual directory is


only
quote:

> a virtual directory and not a web application?
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no


rights.
quote:

>
>
> "Claudio" <cs@futurecom.ch> wrote in message
> news:uDDptJj6DHA.2692@TK2MSFTNGP09.phx.gbl...
missing[QUOTE][color=darkred]
which[QUOTE][color=darkred]
the[QUOTE][color=darkred]
dialog[QUOTE][color=darkred]
> on
> correctly.
the[QUOTE][color=darkred]
location[QUOTE][color=darkred]
> exactly
> address
> on
> open
Newsbeitrag[QUOTE][color=darkred]
that[QUOTE][color=darkred]
no[QUOTE][color=darkred]
have[QUOTE][color=darkred]
the[QUOTE][color=darkred]
am[QUOTE][color=darkred]
> names
the[QUOTE][color=darkred]
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

confers[QUOTE][color=darkred]
> 2002
this[QUOTE][color=darkred]
> new
and[QUOTE][color=darkred]
do[QUOTE][color=darkred]
>
>




Stefan [MSFT]

2004-02-04, 10:49 am

Hi Claudio,

to get VS.NET working with a web site different from the default website
please follow this article:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#AF0A8BBF-1488-450F-ADD1-E555312ADEC9

Please keep in mind that only the default website is officially supported by
Microsoft when using VS.NET to develop CMS template projects.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Claudio" <cs@futurecom.ch> wrote in message
news:ONgBwnj6DHA.2404@TK2MSFTNGP12.phx.gbl...
quote:

> this is correct, it is not the default website. the default website is
> stopped. within the MCMS server configuration application the default
> website is not configured as a cms-site and there is only one site
> configured as a cms-application.
>
> the cms virtual directory was in fact a web application. I removed the
> application and now it works perfectly.
>
> Thank you very much for your help!
>
> claudio
>
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> schrieb im Newsbeitrag
> news:uDZx%23Uj6DHA.3360@tk2msftngp13.phx.gbl...
> only
> rights.
> missing
> which
> the
for[QUOTE][color=darkred]
> dialog
..net[QUOTE][color=darkred]
> the
> location
channel[QUOTE][color=darkred]
I[QUOTE][color=darkred]
> Newsbeitrag
> that
> no
> have
> the
> am
> the
>


http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#21B7B163-820E-439C-9D36-24A94BB15B30
quote:

> confers
MCMS[QUOTE][color=darkred]
> this
2002[QUOTE][color=darkred]
a[QUOTE][color=darkred]
> and
has[QUOTE][color=darkred]
placeholders[QUOTE][color=darkred]
> do
>
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com