[mono-vb] Help with code blocks inside html tags in .Aspx files
davideveloper
davidtrholmes at hotmail.com
Wed Jun 11 10:55:42 EDT 2008
HI,
The error occurs even in version 1.9.1, I reviewed the vb code generated by
the VBCodeGenerator class, the lines 189 and 193 are not well formed (see
code below), the first parameter for the ExternalSource directive must be a
stringLiteral, the vbnc fails when parsing this parameter, the token
@@inner_string@@ is not accepted by the compiler, oddly the compiler does
not fails when parsing the token /Default.aspx, I think he should. It seems
the error comes from the VBCodeGenerator class when generating the code from
the aspx page.
Line 189: #ExternalSource(/Default.aspx, 11)
Line 193: #ExternalSource(@@inner_string@@, 1)
Rolf Bjarne Kvinge-2 wrote:
>
> Hi,
>
>> I have no problems running the application on windows, but on mono
>> every code block inside a tag causes an error:
>>
>> Description: Error compiling a resource required to service this
>> request.
>> Review your source file and modify it to fix this error.
>>
>> Compiler Error Message:
>> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(191,1) : error
>> VBNC30037: Symbol is not valid.
>> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(204,1) : error
>> VBNC30037: Symbol is not valid.
>> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(212,1) : error
>> VBNC30037: Symbol is not valid.
>>
>> Source Error:
>>
>> Line 189:
>> #ExternalSource(/srv/www/htdocs/payswitch/PFCLIENT/Default.aspx, 11)
>> Line 190:
>> __output.Write(""&Microsoft.VisualBasic.ChrW(10)&"
>> "&Microsoft.VisualBasic.ChrW(10)&" <div id=""H")
>> Line 191: #End ExternalSource
>> Line 192:
>> Line 193: #ExternalSource(@@inner_string@@, 1)
>>
>
> Which version of mono are you using?
>
> This should be fixed in newer versions, it is in 1.9 for sure, might be in
> slightly older versions too (can't remember exactly when I fixed it).
>
> Rolf
>
>>
>> if I remove the code blocks located inside tags, the application runs
>> ok,
>> any other way produces this error.
>>
>> The problem is that in the actual application I'm working on this is is
>> used
>> heavily, so I would like to know if there's any way to work around this
>> problem.
>>
>> Any suggestions or ideas are very welcome!
>>
>> Thanks in advance for your time and cooperation,
>> Alberto León
>>
>>
>> --
>> View this message in context: http://www.nabble.com/Help-with-code-
>> blocks-inside-html-tags-in-.Aspx-files-tp17679428p17679428.html
>> Sent from the Mono - VB mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Mono-vb mailing list
>> Mono-vb at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-vb
>>
>> No virus found in this incoming message.
>> Checked by AVG.
>> Version: 8.0.100 / Virus Database: 270.0.0/1484 - Release Date:
>> 04/06/2008 16:40
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>
>
--
View this message in context: http://www.nabble.com/Help-with-code-blocks-inside-html-tags-in-.Aspx-files-tp17679428p17779815.html
Sent from the Mono - VB mailing list archive at Nabble.com.
More information about the Mono-vb
mailing list