11-23-05 12:50 PM
Hi Nithya,
in which line do you get the problem?
Which type is strSitePath dim'ed to?
I would suggest to retrieve each element separatly into a string variable to
see which element causes the problem or debug the code below using VS.NET.
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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Nithya" <nithya.baskaran@gmail.com> wrote in message
news:1132692538.976537.228160@g44g2000cwa.googlegroups.com...
> Hi,
> When i am trying to access cmshttpcontext.current i am getting the
> invalidcastexception error. Please help.
>
> Dim oContext As CmsHttpContext = CmsHttpContext.Current
> strSitePath = oContext.Current.RootChannel.Path &
> System.Configuration.ConfigurationSettings.AppSettings.Get(BASEEASTMAN)
>
> TIA
> Nithya
>
[ Post a follow-up to this message ]
|