Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I tried to use the following code that was provided:

XML
Imports System.Security.Permissions
<PermissionSet(SecurityAction.Demand, Name:="FullTrust")> _
<System.Runtime.InteropServices.ComVisibleAttribute(True)> _


and I got the error:

XML
Compiler Error Message: BC32035: Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement.

Source Error:

Line 8:  Imports System.Security.Permissions
Line 9:  <PermissionSet(SecurityAction.Demand, Name:="FullTrust")> _
Line 10: <System.Runtime.InteropServices.ComVisibleAttribute(True)> _
Line 11:
Line 12: Public Class Default_Page


Did I do something wrong? What am I missing?

I have never had to use VB.NET code inside a javacript tags. The one place where <% %> tags never work.

It is critical for me that I find a way to make this work. In PHP this would never be a problem.

Please help! I've been trying everywhere.

Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900