.ASP Compiler error (Message: BC30456)

Asked By 10 points N/A Posted on -
qa-featured

Can someone please help me with the following error message I encounter. I can’t go ahead with the error. It seems to be a compiler error:
Compiler Error Message: BC30456: 'Data' is not a member of 'String'.
Source Error:
Line 168: dbParam_system.ParameterName = "@System"
Line 169: dbParam_system.Value = system
Line 170: dbParam_system.DbType = System.Data.DbType.String
Line 171: dbCommand.Parameters.Add(dbParam_system)
Line 172:
Although I have Googled it the efforts were in vein. Thanks for reading this and your help is greatly appreciated.

SHARE
Best Answer by Yolada Bron
Best Answer
Best Answer
Answered By 0 points N/A #152587

.ASP Compiler error (Message: BC30456)

qa-featured

 

Yes that seems to be a compiler error and that a runtime error that occurs during the execution for the program. Once the String is mismatched for the data present, the system is giving the error. The erroneous entries are updated to the up limit that none of the procedures perform the task to the optimum. In fact the Compiler supported language is defined to itself. But here is a contradiction that says that the Browsers may not support some specifications. As such use a standard version of browser that is latest and updated. The matter is related to the Compatibility of browsers working environment.

Answered By 5 points N/A #152588

.ASP Compiler error (Message: BC30456)

qa-featured

Hi,

The system.Data.DBType cannot be converted to string and this is creating the problem. Rest part of the connection string is looking fine. Change the System.Data.DBtype.string to just System.Data.DBType. Leave rest of the code as it is. You will find it working. Hope this solves the problem.

Waters Magner

Related Questions