473,320 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error: Option strict disallows late binding

Hi All,

I've just converted a solution from .Net v1.1 to v2.0, by allowing
Visual Studio 2005 to do the conversion.

Since doing so, I am getting a compilation error as follows:

"Option Strict On disallows late binding."

This references line 1, which is my page directive:

<%@ Page Language="vb" AutoEventWireup="false" Inherits="perf_man.sbp3"
Trace="True" CodeFile="sbp3.aspx.vb" %>

Any ideas?

Thanks!
Simon.

Oct 3 '06 #1
1 2339
it refers to line one because it cames from sbp3.aspx.vb file and that file
is in line 1

so the problem is inside that file

Late Binding means a lot of things, for example using arrays (like old vb6)

dim a as array
a = split( myString, " ")

if you use

something = a(0)

you will get that error, because you are binding the index 0 of the array
after seting it up, I know it's crazy, but now I understand the concept
under vb.net 2.0 (after long hours searching for an answer)

late binding means also like:

dim myObject

myObject = new String

you are binding the myObject as a String after you set it.
you need to look to your code and see what in the code could be wrong, if
you use strict on on that .vb file and if you are using Visual Studio 2005
it will point out the error in Warnings/Errors in the Error List menu (Ctrl
+ E)

--

Bruno Alexandre
København, Danmark

"a portuguese in Denmark"
"Adotek" <ad****@adotek.co.ukescreveu na mensagem
news:11**********************@e3g2000cwe.googlegro ups.com...
Hi All,

I've just converted a solution from .Net v1.1 to v2.0, by allowing
Visual Studio 2005 to do the conversion.

Since doing so, I am getting a compilation error as follows:

"Option Strict On disallows late binding."

This references line 1, which is my page directive:

<%@ Page Language="vb" AutoEventWireup="false" Inherits="perf_man.sbp3"
Trace="True" CodeFile="sbp3.aspx.vb" %>

Any ideas?

Thanks!
Simon.

Oct 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PatLaf | last post by:
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
1
by: Karl Lang | last post by:
Hi I've created a new configuration section in Web.Config to hold the connection string for my database. If I have Option Strict On I get a message "Option Strict On disallows late binding" when I...
12
by: Daniel Klein | last post by:
I think I've done my homework and checked around on Google Groups but this seems to be a situation not yet covered. Here is the scenario... There are two classes, Foo and Bar (actually there...
7
by: CodeMonkey | last post by:
Hi All the following code generates an error with option strict on - Option strict disallows late binding. Can someone please help with what needs to be changed: Dim sweep, totalsweep As...
4
by: Heinz | last post by:
Hi all, I use VB.net 2003 and want to export data to Excel. Target PCs still have Office 2000 so I could not use Microsofts PIAs. Instead I use the included Excel 10 COM DLL from Microsoft....
7
by: Owen Mortensen | last post by:
(This code was working in asp.net 1.1 VS2003. After upgrade to VS2005, chokes): in the aspx file: <ItemTemplate> <asp:datagrid id="dg_instr" runat="server" AutoGenerateColumns="False"...
7
by: Lynn | last post by:
Hello, I have a website that is working fine. I have just turned on "option strict" and am getting an error with the parts of my code. I have fixed everything but this section, which has me...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.