Operator & is not defined for types St
Author
Topic Search Topic Options
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options
Thanks(0)
Quote Reply
Topic: Operator & is not defined for types St Posted: 31 October 2003 at 10:51am
Can somebody please tell me what this error means and how i can fix it?
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: BC30452: Operator '&' is not defined for types 'String' and 'System.Version'.Source Error:
Line 18: Connection.Open()
Line 19:
Line 20: cmd = new OleDbCommand("Insert Into log(ActiveXcontols, AOL, BackGroundSounds, Beta, Browser, CDF, ClrVersion, Cookies, Crawler, EcmaScriptVersion, Frames, JavaApplets, Javascript, MajorVersion, MinorVersion, MSdomversion, Platform, Tables, Type, VBScript, Version, W3CdomVersion, Win16, Win32, REMOTE_ADDR, Hostname) Values ('" & request.browser.ActiveXcontrols & "', '" & request.browser.AOL & "', '" & request.browser.Backgroundsounds & "', '" & request.browser.Beta & "', '" & request.browser.browser & "', '" & request.browser.CDF & "', '" & request.browser.ClrVersion & "', '" & request.browser.Cookies & "', '" & request.browser.Crawler & "','" & request.browser.EcmaScriptVersion & "', '" & request.browser.Frames & "', '" & request.browser.JavaApplets & "','" & request.browser.JavaScripts & "', '" & request.browser.MajorVersion & "', '" & request.browser.MinorVersion & "', '" & request.browser.MSdomVersion & "', '" & request.browser.Platform & "', '" & request.browser.Tables & "', '" & request.browser.Type & "', '" & request.browser.VBscript & "', '" & request.browser.Version & "', '" & request.browser.W3Cdomversion & "', '" & request.browser.Win16 & "','" & request.browser.Win32 & "', '" & request.ServerVariables("REMOTE_ADDR") & "', '" & Hostname & "')", Connection)
Line 21: cmd.ExecuteNonQuery()
Line 22: Connection.Close()
Source File: c:\inetpub\wwwroot\log.aspx Line: 20
Show Detailed Compiler Output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5 f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c56 1934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.50 00.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f1 1d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e 089\system.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__ b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561 934e089\system.xml.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\root\2135a508\8d69a834\assembly\dl2\99501036\00799a83_ cb73c301\dotnetcharting.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\root\2135a508\8d69a834\q4tzkqef.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\root\2135a508\8d69a834\assembly\dl2\f3fccb86\d0d458a9_ c190c301\piechart.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\root\2135a508\8d69a834\assembly\dl2\264e0838\82daef6c_ 919dc301\netdb.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\1yfqmi_7.dll" /debug- "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\1yfqmi_7.0.vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
c:\inetpub\wwwroot\log.aspx(20) : error BC30452: Operator '&' is not defined for types 'String' and 'System.Version'.
cmd = new OleDbCommand("Insert Into log(ActiveXcontols, AOL, BackGroundSounds, Beta, Browser, CDF, ClrVersion, Cookies, Crawler, EcmaScriptVersion, Frames, JavaApplets, Javascript, MajorVersion, MinorVersion, MSdomversion, Platform, Tables, Type, VBScript, Version, W3CdomVersion, Win16, Win32, REMOTE_ADDR, Hostname) Values ('" & request.browser.ActiveXcontrols & "', '" & request.browser.AOL & "', '" & request.browser.Backgroundsounds & "', '" & request.browser.Beta & "', '" & request.browser.browser & "', '" & request.browser.CDF & "', '" & request.browser.ClrVersion & "', '" & request.browser.Cookies & "', '" & request.browser.Crawler & "','" & request.browser.EcmaScriptVersion & "', '" & request.browser.Frames & "', '" & request.browser.JavaApplets & "','" & request.browser.JavaScripts & "', '" & request.browser.MajorVersion & "', '" & request.browser.MinorVersion & "', '" & request.browser.MSdomVersion & "', '" & request.browser.Platform & "', '" & request.browser.Tables & "', '" & request.browser.Type & "', '" & request.browser.VBscript & "', '" & request.browser.Version & "', '" & request.browser.W3Cdomversion & "', '" & request.browser.Win16 & "','" & request.browser.Win32 & "', '" & request.ServerVariables("REMOTE_ADDR") & "', '" & Hostname & "')", Connection)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
c:\inetpub\wwwroot\log.aspx(20) : error BC30456: 'JavaScripts' is not a member of 'System.Web.HttpBrowserCapabilities'.
cmd = new OleDbCommand("Insert Into log(ActiveXcontols, AOL, BackGroundSounds, Beta, Browser, CDF, ClrVersion, Cookies, Crawler, EcmaScriptVersion, Frames, JavaApplets, Javascript, MajorVersion, MinorVers
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options
Thanks(0)
Quote Reply
Posted: 31 October 2003 at 11:19am
wtf?
you may want to break that up a bit using string concatination and see if you have an extra/are missing a ampersand sign
becuase as posted, that pretty damn hard to help out
Contribute to the working anarchy we fondly call the Internet
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options
Thanks(0)
Quote Reply
Posted: 31 October 2003 at 1:35pm
Sorry about that , i dont think im missing any or have extra ampersands. but i thought it was a typing error (not a typo like herllo) because of:
Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and 'System.Version'.
Mart.
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options
Thanks(0)
Quote Reply
Posted: 01 November 2003 at 8:16am
Ive fixed it now, i just made it a little tider then found that i have to use request.browser.ToString().
Thanks, Mart.
Forum Jump
-- Select Forum --
Network Status and Announcements
Web Wiz Hosting Services Pre-Sales Questions
Web Wiz Hosting Support Forums
Web Wiz Hosting Support Ticket System
Web Wiz Forums
- Web Wiz Forums Modifications
- Web Wiz Forums Skins
- Web Wiz Forums Language Files
- Web Wiz Forums Suggestions
Web Wiz Forums Demo
Web Wiz NewsPad
Web Wiz CAPTCHA
Web Wiz Rich Text Editor (RTE)
General Discussion
Web Design Discussion
ASP.NET Discussion
Classic ASP Discussion
PHP Discussion
Database Discussion
Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
Forum Software by Web Wiz Forums® version 12.08 Copyright ©2001-2026 Web Wiz Ltd.
About Web Wiz |
Contact Web Wiz |
Terms & Conditions |
Cookies |
Privacy Notice
Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.
Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.
Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.