|
Unterminated string constant |
Posted by Peter Duray-Bito on Dec-04-2011 09:16 |
|
Hi,
I get Unterminated string constant on all test pages located in http://localhost/mywebsite/VBNetASP. The file netchartdir.dll is located in http://localhost/mywebsite/bin. This is a Frontpage web running under Microsoft-IIS/5.1.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C)
Timestamp: Sun, 4 Dec 2011 01:12:24 UTC
Message: Unterminated string constant
Line: 6
Char: 2
Code: 0
URI: http://localhost/mywebsite/VBNetASP/simplepie.aspx
Thanks for your help,
Peter |
Re: Unterminated string constant |
Posted by Peter Kwan on Dec-05-2011 17:37 |
|
Hi Peter Duray-Bito,
The error occurs because your web server does not support ASP.NET at all, or the web server it is not configured to support ASP.NET on the directory /mywebsite/VBNetASP. (It is possible to configure the web server to support ASP.NET only on some directories and not others.)
As the web server does not support ASP.NET, it does not know what is ASPX, so it just passed the contents to the browser as plain text/html. The browser, of course, cannot understand the code either, as ASPX is server side code. So the browser produces the error message.
Note that the sample code in VBNetASP is for ASP.NET, not classical ASP. To use VBNetASP, your web server need to support ASP.NET. Have you verified that your server did support ASP.NET (that is, it supports file with extension ASPX and with code written in an ASP.NET language)?
May be you can try the following "Hello World code". Please save the followings in a file called "abc.aspx". Then put it in the directory /mywebsite/VBNetASP, and then access "http://localhost/mywebsite/VBNetASP/abc.aspx". Does this work? (The screen should show the text "Hello World".)
<%@ Page Language="VB" Debug="true" %>
<%
Dim s As String = "Hello World"
%>
<HTML>
<BODY>
<%=s%>
</BODY>
</HTML>
If your intention is to use classical ASP, not ASP.NET, please download "ChartDirector for ASP/COM/VB" instead.
Hope this can help.
Regards
Peter Kwan |
Re: Unterminated string constant |
Posted by Peter Duray-Bito on Dec-09-2011 12:42 |
|
Thanks for your response Peter. In order to support ASP.NET is it just a matter of downloading dotnet framework to the server? I aleady have pages rendering charts in old ASP and am trying to re-write and test in ASPX.
Thanks,
Peter |
Re: Unterminated string constant |
Posted by Peter Kwan on Dec-10-2011 04:15 |
|
Hi Peter Duray-Bito,
Basically, you just need to install ASP.NET to your server as according to Microsoft documentation.
From my experience, if you install any .NET framework in a computer which has IIS running, ASP.NET will automatically be installed. If at the time of installing the .NET framework, the IIS is not running, the ASP.NET will not be automatically installed. You need to manually "register" the ASP.NET (please refer to Microsoft documentation for details).
Also, in some recent Microsoft Windows or IIS or .NET framework, even if the ASP.NET is installed, it is disabled by default for security reasons. (I think too many people automatically enabled ASP.NET without knowing about it, so Microsoft have decided to disable it by default in some recent versions of Windows or .NET framework.) You may need to use the Internet Services Manager to enable it after installation.
In any case, after installing ASP.NET, please write a "Hello World" ASPX web page to test it is working first, before trying to use ChartDirector for .NET.
Hope this can help.
Regards
Peter Kwan |
|