Solved

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

Posted on 2001-07-10
8
381 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Author Comment

by:LCP
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

10 Experts available now in Live!

Get 1:1 Help Now