Solved

Server.Createobject("project1.Class1.1")

Posted on 2001-07-10
8
385 Views
Last Modified: 2008-02-01
How can I explicit the create an object with specific version in ASP?? I got two application but they are refering to the same COM but different version.
one refer 1.0, one refer 2.0
how can I control it in ASP?
I found that some MSDN sample got some sample like
set obj=server.createobjectServer.CreateObject("Membership.Verifusr.1")
what is the ".1" at the end? I can't find any document about using this method. is it not for version control?
How can I make use of this ?
0
Comment
Question by:LCP
  • 4
  • 3
8 Comments
 

Accepted Solution

by:
amit12345 earned 50 total points
ID: 6272377
ya .1 is for version only. If you don't specify .1 or .2 then by defaults it takes the latest version of that component registered in ur comp, but if you know particular version number and u want to use that then you can can specify .1 or whatever with that
0
 
LVL 1

Author Comment

by:LCP
ID: 6273066
You mean this is ASP build in method so that I can create object with the specifid version no. ?
How about the case if my application is using minor version only? e.g two version of 1.01 and 1.02 ?
How can I explicit the minor version?
0
 

Expert Comment

by:amit12345
ID: 6273092
what ever versions are there in your machine u can use that. if 1.01 is there u can use..u can check this in ur registry setting..
0
 

Expert Comment

by:amit12345
ID: 6273344
what ever versions are there in your machine u can use that. if 1.01 is there u can use..u can check this in ur registry setting..
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:LCP
ID: 6273753
How about minor version?
e.g. my com got two version 1.01 and 1.02 ? how to specify this when createobject?
Is it a build in feature of ASP?
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6274382
LCP,

I was helping someone on here a couple of weeks ago and I initially thought that you could only create an object with it's high level version number, but I was wrong.

You can create an object with it's minor version...

set obj=server.createobjectServer.CreateObject("Membership.Verifusr.1.02")
0
 

Expert Comment

by:amit12345
ID: 6276873
ya dave is right,
LCP you see the registry what ever name ufind there u can use that in ur ASP. If there are more then 1 version u will find all those versions in Registry
0
 
LVL 1

Author Comment

by:LCP
ID: 6309302
Sorry for response late. Don't know why I can't get this question from my question history so wasting some time to dig this question out from my mails. May be it is EE bugs.
:>
thx for your ans.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query Join 9 61
ASP Sessions Being Cleared/Modified 6 65
ASP SQL Syntax Duplicate Key 7 93
document.getElementById not worj with 2 IDs with the same name 10 22
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now