Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

RenderAspScript error

$
0
0
RenderAspScript error
Web Connection 5.0
RenderAspScript error
May. 17, 2013
02:14 am
3SC04SIOAShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Stein Goering

Why are you using this method in a Web application? Can't you use ExpandTemplate/Script to do this?

Yes something has changed there and it's broken code that runs outside of a Web Connection server or where the Response object is not in scope or not used directly.

+++ Rick ---


I'm calling your wrapper function in wwUtils - which in turn creates a wwScripting object and calls its RenderAspScript method...

What are you doing exactly? How are you calling RenderAspScript? It's not a function but a method...

+++ Rick ---


I'm getting Property Not Found errors when trying to execute this line of code:
lcHT = RenderASPScript(Config.cHTMLPagePath+lcTemplate)

The errors are coming from wwscripting and reference Response.Status and Response.RenderHttpHeader

IF (llResponseCreated)IFthis.lError Response.Status = "500 Server Error" Response.ContentType = "text/html"ENDIF _Out = Response.RenderHttpHeader() + _OutENDIF

This code has been in place for years and was working prior to upgrading to WC 5.66. Did something change in the scripting engine?

FWIW, I don't have problems rendering wcs pages when calling them directly - just when trying to render from within another method.

--stein







Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles