473,776 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Protection levels after Conversion Wizard

Hi

I've got a project I've just run through the conversion wizard, and it's
giving me a few headaches.

I've got a user control which has controls referrenced from its calling page
(usercontrol1.t extbox1.text etc).

All worked fine in V2003, but 2005 is giving me a "usercontro1.te xtbox1 is
inaccessible due to it's protection level" error. Obviously, with it now
being a partial class, I can't look at or edit the public/private declaration.

How do I fix this in 2k5!?

Cheers

Dan
Jan 8 '06 #1
1 1766
Hi Dan,

Welcome to MSDN newsgroup.
As for the control member variable's access level between asp.net 1.1 and
2.0 pages /usercontrols, that's a known change since the asp.net 2.0 page
now use dynamic compilation and partial class which no longer require us to
explicitly declare the control vairables in page class..... And for our
old 1.1 page or Usercontrol, if we use public member variable to expose
control instances, we'd recommend change them by defining some public
properties that wrapper those control members. Also, here is a tech article
covers the most changes when upgrading asp.net 1.x project to asp.net 2.0
application also the best practice of how to modify them:

#Common Web Project Conversion Issues and Solutions
http://msdn.microsoft.com/asp.net/re...default.aspx?p
ull=/library/en-us/dnaspp/html/conversionissue sasp_net.asp
Also, the dev team have just published a update on the VS IDE's web project
upgrade wizard:

#Microsoft Visual Studio 2005 - Update to the Web Project Conversion Wizard
http://www.microsoft.com/downloads/d...652-FC04-4EF8-
A28A-25C5006677D8&di splaylang=en

So please feel free to post your feedback or requests to our MSDN feedback
center:

http://lab.msdn.microsoft.com/produc...k/default.aspx

we'll be more than happy to recieve more and more feedback from our users,
and the dev guys can also try improving them from those requests and
comments.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Protection levels after Conversion Wizard
| thread-index: AcYUWJule66h5cj cRO+NSqf75QAh7Q ==
| X-WBNR-Posting-Host: 172.203.227.195
| From: "=?Utf-8?B?bXVzb3NkZXY =?=" <mu*******@comm unity.nospam>
| Subject: Protection levels after Conversion Wizard
| Date: Sun, 8 Jan 2006 05:37:02 -0800
| Lines: 19
| Message-ID: <07************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3693 02
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi
|
| I've got a project I've just run through the conversion wizard, and it's
| giving me a few headaches.
|
| I've got a user control which has controls referrenced from its calling
page
| (usercontrol1.t extbox1.text etc).
|
| All worked fine in V2003, but 2005 is giving me a "usercontro1.te xtbox1
is
| inaccessible due to it's protection level" error. Obviously, with it now
| being a partial class, I can't look at or edit the public/private
declaration.
|
| How do I fix this in 2k5!?
|
| Cheers
|
|
|
| Dan
|

Jan 9 '06 #2

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

Similar topics

75
8277
by: Massimo | last post by:
I'm planning to develop a .NET application using C#, in order to sell it as a shareware and/or as a full package, so I'll need a good way to protect it against piracy. I know some ways to protect it (activation, serial keys, etc.), but my concern is: how can any copy protection mechanism work when you can always disassemble it and read the source code? Even if I use a native C++ DLL for my copy protection, the point where it's called from...
0
1725
by: Charles Atwood | last post by:
I am trying to use the Java Language Conversion Assistant 2.0 with Visual Studio .NET 2003 on Windows 2000 Server SP4 and .NET framework 1.1 to convert some java files to C#. I go through all the steps in the wizard to setup the conversion and start the conversion. Soon after the conversion starts, I see a Java Language Conversion Assistant Wizard Error saying "Conversion failed: Cannot initiate conversion process". I cannot find any...
3
3788
by: Mark | last post by:
Hi... Maybe I'm just being especially obtuse today, but I've been perplexed by how some of the protection levels have been working with nested classes in C#. I have a parent class that wants to be able define sub-object to return to consumers but wants to really clamp down on how much is exposed to the consumer - for example, I wanted to make consumers unable to instantiate the sub-objects on their own. Originally, i'd hoped...
0
1193
by: VB Programmer | last post by:
Simple ASP.NET 1 site. Opened solution in beta 2 of 2.0. Ran thru conversion wizard and it states: "Conversion Complete. There were some errors during conversion." I view the conversion log and for the project there is 1 error... http://localhost/Watersmark/ Conversion Issues - http://localhost/Watersmark/: ERROR: Failed to backup website http://localhost/Watersmark/
2
1836
by: Jim Benson | last post by:
Where is the .NET conversion Wizard. I'm told when trying to open a Vb6 app that the Wizard isn't installed but can't find it on the installation CDs. I would like to see what kind of a job it does on some old apps.
7
3843
by: guy | last post by:
Has anyone any experience of the conversion wizard for VB6 to VB2005? if so how good is it? also how does it handle database related conversions i.e is ADO converted to ADO.NET etc. the project is approx 60 forms with so approx 180 to 240 classes The back end was and remains S!L Server 2000
0
1298
by: =?Utf-8?B?RWFjaHVz?= | last post by:
I've made several attempts to upgrade an application from asp.net 1.1 to 2.0. I open the web site by selecting the vbproj file, by selecting the solution file, or by selecting the web application. VS 2005 opens the conversion wizard, backs up the files, makes a brief show of shuffling bits around, and announces that the conversion is complete. If it produces a conversion report, the report either says that one file was converted (the vbproj...
0
1004
by: Marchand | last post by:
Hi, after the Visual Studio 2005 vb6 to vb.Net conversion wizard end execution, the projet does not load properly in the solution. The error is file not found. But when I look in the directory it is realy there. If I then try to load it manualy Visual Studio restarts the conversion wizard and then it gives up. But when I open the .vbproj with texpad I find a missing name: <Reference Name = "" ...
0
1874
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized creation, modification and deletion of database objects. It provides flexibility through various protection types and granularity at different protection levels. CodeSecure comes with a full-featured auditing tool that keeps track of all changes...
0
9627
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9462
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10060
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9922
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8951
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6721
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5492
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.