strict="true" - Not working in asp.net 2 and VS2005 ??

I

ianakapilotlight

We are in the process of moving from .net 1.1 to 2.0 and I dont seem to
be able to resolve this problem.

In VS2003 the Option Strict was swtiched on in the options menu and
this was stored in a project file.

In VS2005 there is no project file so this is now stored in the
web.config. My web.config shows this :-

<compilation debug="true" strict="true" explicit="true">

This should ofcourse prevent such lines in the code behind like below
from occuring.

dim x as int32
x = "12"

However the IDE seems to ignore this option altogether.

Can anyone shed some light on what I am doing wrong?

In desparation I have to put Option Strict On at the top of each class,
but surely there is a better way of doing this?
 
S

Saturn

In the IDE.
On the Tools menu, choose Options.
Expand Projects and Solutions node.
Choose VB Defaults.
Modify the Option Strict setting
 
R

roncli

Hi.

I have the same problem. Changing the VB Defaults so that Option
Strict is On does not resolve the problem. Any suggestions?

-roncli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top