|
Home > Archive > Microsoft Content Management Server > April 2005 > Mixed mode site ASP.NET template compilation error
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 |
Mixed mode site ASP.NET template compilation error
|
|
|
| Hello -
I'm trying to incorporate a .NET template into a CMS 2002 mixed mode site.
This is the only ASP.NET template we're currently using - the rest of the
site is running in ASP. After creating a posting for a page which is using
the new template, I'm receiving the following error:
BC30289: Statement cannot appear within a method body. End of method assumed
I know it's coming from the ASPUtils.inc file, and after doing some further
research into the error message, it seems this file has some ASP code which
is being embedded within an ASP.NET page, which I believe you can't do,
correct? Does a .NET version of the include file need to be created? Any
suggestions?
Thanks!
| |
|
| Also, if you can point me in the right direction to some instructions on how
to incorporate a .NET template into a mixed-mode site, that would be helpful
to make sure I have followed all the steps. Thank you!
"Jen" wrote:
> Hello -
>
> I'm trying to incorporate a .NET template into a CMS 2002 mixed mode site.
> This is the only ASP.NET template we're currently using - the rest of the
> site is running in ASP. After creating a posting for a page which is using
> the new template, I'm receiving the following error:
>
> BC30289: Statement cannot appear within a method body. End of method assumed
>
> I know it's coming from the ASPUtils.inc file, and after doing some further
> research into the error message, it seems this file has some ASP code which
> is being embedded within an ASP.NET page, which I believe you can't do,
> correct? Does a .NET version of the include file need to be created? Any
> suggestions?
>
> Thanks!
| |
| Stefan [MSFT] 2005-04-27, 7:55 am |
| Hi Jen,
no ASP cannot be included in an ASP.NET template.
You need to have separate modules for the ASP and for the ASP.NET templates.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Jen" <Jen@discussions.microsoft.com> wrote in message
news:3186CF12-1A4C-4BE2-ADAE-65FB82516581@microsoft.com...
> Hello -
>
> I'm trying to incorporate a .NET template into a CMS 2002 mixed mode site.
> This is the only ASP.NET template we're currently using - the rest of the
> site is running in ASP. After creating a posting for a page which is
using
> the new template, I'm receiving the following error:
>
> BC30289: Statement cannot appear within a method body. End of method
assumed
>
> I know it's coming from the ASPUtils.inc file, and after doing some
further
> research into the error message, it seems this file has some ASP code
which
> is being embedded within an ASP.NET page, which I believe you can't do,
> correct? Does a .NET version of the include file need to be created? Any
> suggestions?
>
> Thanks!
| |
| Stefan [MSFT] 2005-04-27, 7:55 am |
| Hi Jen,
very simple:
- create a new MCMS web application project on the server
- create the template file (without referencing any ASP code)
- assign the template file to a template gallery item
- create your postings based on the template file.
There is no difference to an ASP.NET only site as there is no interaction
between the ASP code and the ASP.NET code.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Jen" <Jen@discussions.microsoft.com> wrote in message
news:170954DE-313B-4B93-908B-FE892E4D46ED@microsoft.com...
> Also, if you can point me in the right direction to some instructions on
how
> to incorporate a .NET template into a mixed-mode site, that would be
helpful[vbcol=seagreen]
> to make sure I have followed all the steps. Thank you!
>
> "Jen" wrote:
>
site.[vbcol=seagreen]
the[vbcol=seagreen]
using[vbcol=seagreen]
assumed[vbcol=seagreen]
further[vbcol=seagreen]
which[vbcol=seagreen]
Any[vbcol=seagreen]
| |
|
| Makes sense. Thanks Stefan!
"Stefan [MSFT]" wrote:
> Hi Jen,
>
> no ASP cannot be included in an ASP.NET template.
> You need to have separate modules for the ASP and for the ASP.NET templates.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "Jen" <Jen@discussions.microsoft.com> wrote in message
> news:3186CF12-1A4C-4BE2-ADAE-65FB82516581@microsoft.com...
> using
> assumed
> further
> which
>
>
>
|
|
|
|
|