Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to share VB code across multiple pages?

Reply
Thread Tools

How to share VB code across multiple pages?

 
 
antonyliu2002@yahoo.com
Guest
Posts: n/a
 
      09-29-2005
Juan T. Llibre wrote:
> re:
> > That said, I have downloaded and installed the ASP.20
> > Visual Web Developer kit and issued aspnet_regiis.exe -i.

>
> From which .Net Framework directory ?
> From the 1.1 .Net Framework dir, or from the 2.0 directory ?


I issued the aspnet_regiis.exe -i from the v2.0.50215 folder.

> Also, did you change your application's directory so it runs
> the 2.0 ASP.NET version, or is it still running the 1.1 version ?


No, I did not. Do you mean that applications for ASP.NET 2.0 must
reside in a directory different from those of ASP.NET 1.1?

> If the ASP.NET tab is available in the IIS Manager, change
> the target .Net Framework version to the appropiate one.


Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
"Allowed". Do you mean that I should "prohibit" v1.1.4322?

> If it's not available, download Denis Bauer's ASP.NET Version Switcher
> and change the ASP.NET version for you app withj that :
>
> http://www.denisbauer.com/NETTools/A...nSwitcher.aspx
>
> Remember that now that you're running two versions of ASP.NET that,
> at least, all 1.1 apps will need to be in one AppPool and all 2.0 apps
> will need to be in a different AppPool.
>
>
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> ======================================


 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      09-29-2005
re:
> No, I did not. Do you mean that applications for ASP.NET 2.0
> must reside in a directory different from those of ASP.NET 1.1?


You can't have the same application running under both
1.1 and 2.0 in the same physical, or virtual, directory.

Also, they must run in a different Application Pool.

re:
> Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> "Allowed". Do you mean that I should "prohibit" v1.1.4322?


No.

Only that your 1.1 apps must run in a different AppPool than 2.0's.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<> wrote in message
news: oups.com...
Juan T. Llibre wrote:
> re:
> > That said, I have downloaded and installed the ASP.20
> > Visual Web Developer kit and issued aspnet_regiis.exe -i.

>
> From which .Net Framework directory ?
> From the 1.1 .Net Framework dir, or from the 2.0 directory ?


I issued the aspnet_regiis.exe -i from the v2.0.50215 folder.

> Also, did you change your application's directory so it runs
> the 2.0 ASP.NET version, or is it still running the 1.1 version ?


No, I did not. Do you mean that applications for ASP.NET 2.0 must
reside in a directory different from those of ASP.NET 1.1?

> If the ASP.NET tab is available in the IIS Manager, change
> the target .Net Framework version to the appropiate one.


Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
"Allowed". Do you mean that I should "prohibit" v1.1.4322?



 
Reply With Quote
 
 
 
 
antonyliu2002@yahoo.com
Guest
Posts: n/a
 
      09-29-2005
Juan T. Llibre wrote:
> re:
> > No, I did not. Do you mean that applications for ASP.NET 2.0
> > must reside in a directory different from those of ASP.NET 1.1?

>
> You can't have the same application running under both
> 1.1 and 2.0 in the same physical, or virtual, directory.
>
> Also, they must run in a different Application Pool.


I don't have a concept of Application Pool. So, will my 1.1
application run well with ASP.NET 2.0?

Also, will the problem be resolved if I disable 1.1.4322? It did not,
I tried.

>
> re:
> > Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> > "Allowed". Do you mean that I should "prohibit" v1.1.4322?

>
> No.
>
> Only that your 1.1 apps must run in a different AppPool than 2.0's.
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> ======================================
> <> wrote in message
> news: oups.com...
> Juan T. Llibre wrote:
> > re:
> > > That said, I have downloaded and installed the ASP.20
> > > Visual Web Developer kit and issued aspnet_regiis.exe -i.

> >
> > From which .Net Framework directory ?
> > From the 1.1 .Net Framework dir, or from the 2.0 directory ?

>
> I issued the aspnet_regiis.exe -i from the v2.0.50215 folder.
>
> > Also, did you change your application's directory so it runs
> > the 2.0 ASP.NET version, or is it still running the 1.1 version ?

>
> No, I did not. Do you mean that applications for ASP.NET 2.0 must
> reside in a directory different from those of ASP.NET 1.1?
>
> > If the ASP.NET tab is available in the IIS Manager, change
> > the target .Net Framework version to the appropiate one.

>
> Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> "Allowed". Do you mean that I should "prohibit" v1.1.4322?


 
Reply With Quote
 
antonyliu2002@yahoo.com
Guest
Posts: n/a
 
      09-29-2005
Hi, Juan,

Thank you very much. I think I need more time for ASP.NET 2.0.

I have uninstalled the 2.0 version and will stay with 1.1 for now. The
vbc compiler worked when I compiled the source under the v1.1.4322
folder where the msvcr71.dll resides.

But then I have a VB code problem:

******************************************
vbc : error BC30420: 'Sub Main' was not found in 'MyClass'.
f:\inetpub\wwwroot\test\MyClass.vb(1) : error BC30183: Keyword is not
valid as an identifier.

Public Class MyClass
~~~~~~~
******************************************

I am new to VB. I am a Java man. Does this mean that each VB class
must have a Sub Main? This sounds weird. Also, why isn't MyClass a
valid identifier?


Juan T. Llibre wrote:
> re:
> > No, I did not. Do you mean that applications for ASP.NET 2.0
> > must reside in a directory different from those of ASP.NET 1.1?

>
> You can't have the same application running under both
> 1.1 and 2.0 in the same physical, or virtual, directory.
>
> Also, they must run in a different Application Pool.
>
> re:
> > Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> > "Allowed". Do you mean that I should "prohibit" v1.1.4322?

>
> No.
>
> Only that your 1.1 apps must run in a different AppPool than 2.0's.
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> ======================================
> <> wrote in message
> news: oups.com...
> Juan T. Llibre wrote:
> > re:
> > > That said, I have downloaded and installed the ASP.20
> > > Visual Web Developer kit and issued aspnet_regiis.exe -i.

> >
> > From which .Net Framework directory ?
> > From the 1.1 .Net Framework dir, or from the 2.0 directory ?

>
> I issued the aspnet_regiis.exe -i from the v2.0.50215 folder.
>
> > Also, did you change your application's directory so it runs
> > the 2.0 ASP.NET version, or is it still running the 1.1 version ?

>
> No, I did not. Do you mean that applications for ASP.NET 2.0 must
> reside in a directory different from those of ASP.NET 1.1?
>
> > If the ASP.NET tab is available in the IIS Manager, change
> > the target .Net Framework version to the appropiate one.

>
> Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> "Allowed". Do you mean that I should "prohibit" v1.1.4322?


 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      09-29-2005
Hi, Antony.

re:
> But then I have a VB code problem:
> vbc : error BC30420: 'Sub Main' was not found in 'MyClass'.
> f:\inetpub\wwwroot\test\MyClass.vb(1) : error BC30183:
> Keyword is not valid as an identifier. Public Class MyClass
>Does this mean that each VB class must have a Sub Main?


Are you creating a Windows Forms application ( instead of a web aplication ) ?

You don't need "Sub Main" in web applications...



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<> wrote in message
news: oups.com...
Hi, Juan,

Thank you very much. I think I need more time for ASP.NET 2.0.

I have uninstalled the 2.0 version and will stay with 1.1 for now. The
vbc compiler worked when I compiled the source under the v1.1.4322
folder where the msvcr71.dll resides.

But then I have a VB code problem:

******************************************
vbc : error BC30420: 'Sub Main' was not found in 'MyClass'.
f:\inetpub\wwwroot\test\MyClass.vb(1) : error BC30183: Keyword is not
valid as an identifier.

Public Class MyClass
~~~~~~~
******************************************

I am new to VB. I am a Java man. Does this mean that each VB class
must have a Sub Main? This sounds weird. Also, why isn't MyClass a
valid identifier?


Juan T. Llibre wrote:
> re:
> > No, I did not. Do you mean that applications for ASP.NET 2.0
> > must reside in a directory different from those of ASP.NET 1.1?

>
> You can't have the same application running under both
> 1.1 and 2.0 in the same physical, or virtual, directory.
>
> Also, they must run in a different Application Pool.
>
> re:
> > Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> > "Allowed". Do you mean that I should "prohibit" v1.1.4322?

>
> No.
>
> Only that your 1.1 apps must run in a different AppPool than 2.0's.
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> ======================================
> <> wrote in message
> news: oups.com...
> Juan T. Llibre wrote:
> > re:
> > > That said, I have downloaded and installed the ASP.20
> > > Visual Web Developer kit and issued aspnet_regiis.exe -i.

> >
> > From which .Net Framework directory ?
> > From the 1.1 .Net Framework dir, or from the 2.0 directory ?

>
> I issued the aspnet_regiis.exe -i from the v2.0.50215 folder.
>
> > Also, did you change your application's directory so it runs
> > the 2.0 ASP.NET version, or is it still running the 1.1 version ?

>
> No, I did not. Do you mean that applications for ASP.NET 2.0 must
> reside in a directory different from those of ASP.NET 1.1?
>
> > If the ASP.NET tab is available in the IIS Manager, change
> > the target .Net Framework version to the appropiate one.

>
> Yes, the tabs are visible. Both v1.1.4322 and v2.0.50215 are
> "Allowed". Do you mean that I should "prohibit" v1.1.4322?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
J2EE - How to share tomcat sessions across multiple IE windows Adam Lipscombe Java 8 10-24-2007 04:39 PM
Share VB code across multiple pages? antonyliu2002@yahoo.com ASP .Net 6 11-19-2005 12:20 PM
Share games across network =?Utf-8?B?S2VpdGg=?= Wireless Networking 1 08-29-2005 06:30 PM
Best Practice: How to share an ASP.NET webform across multiple web apps: Jheitmuller ASP .Net 1 08-02-2004 10:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57