CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Compiler Error Message: BC30277: Type character '&' does not match declared data type 'String'.
- Article ID:
209 - Date Created
Sunday, November 29, 2015 - This Article Has been Viewed
2186 times - Short Desc
When working with VB.NET, some ASP Classic coding does not work, and must be substituted with other characters. - Details
The following error occurs when classic asp code is used in the wrong context with VB.NET.Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30277: Type character '&' does not match declared data type 'String'.
Source Error:
Line 319: lblText1.Text = "[image:"&strcs&"/" & Convert.ToString(getfile) & "]" - Recreate Issue
To reproduce this error
lblText1.Text = "[image:"&strcs&"/" & Convert.ToString(getfile) & "]"
As you can see, the & markup is what is causing the error to occur. - Resolve Issue
To correct this error.
lblText1.Text = "[image:"+strcs+"/" & Convert.ToString(getfile) & "]"
As you can see above, we have replaced the & Symbol with a + symbol.
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825