Home All Groups Group Topic Archive Search About
Author
13 Mar 2007 8:08 AM
Ragu
Hi

I have installed 1.1 and 2.0 framework in my machine.

Now i have developed an asp.net application with 2.0 as framework and when i
created a set up for my application and installed it, it took 1.1 as the
default framework and i had to go to IIS and changed the Framework version to
2.0 for this application.

Is there any way that i could specify that this application should use 2.0
while creating setup for this project even though 1.1 is the default in that
server ?

Thanx in advance

Ragu

Author
13 Mar 2007 3:05 PM
VJ
I believe this can be done using the Web.Config, what ever you change in IIS
is also changing Web.Config. You can place a web.config in the application's
root virtual directory and include the below to load 2.0. This web.config
you can deploy with the MSI.

VJ

Show quote
"Ragu" <R***@discussions.microsoft.com> wrote in message
news:8CECC74B-6C80-4294-8737-ADD4B6712BA4@microsoft.com...
> Hi
>
> I have installed 1.1 and 2.0 framework in my machine.
>
> Now i have developed an asp.net application with 2.0 as framework and when
> i
> created a set up for my application and installed it, it took 1.1 as the
> default framework and i had to go to IIS and changed the Framework version
> to
> 2.0 for this application.
>
> Is there any way that i could specify that this application should use 2.0
> while creating setup for this project even though 1.1 is the default in
> that
> server ?
>
> Thanx in advance
>
> Ragu
>
>
>
Author
14 Mar 2007 4:58 AM
Ragu
Hi VJ

Thanxs for your reply.

What should i add in the web.config file to do that

Regards
Ragu

Show quote
"VJ" wrote:

> I believe this can be done using the Web.Config, what ever you change in IIS
> is also changing Web.Config. You can place a web.config in the application's
> root virtual directory and include the below to load 2.0. This web.config
> you can deploy with the MSI.
>
> VJ
>
> "Ragu" <R***@discussions.microsoft.com> wrote in message
> news:8CECC74B-6C80-4294-8737-ADD4B6712BA4@microsoft.com...
> > Hi
> >
> > I have installed 1.1 and 2.0 framework in my machine.
> >
> > Now i have developed an asp.net application with 2.0 as framework and when
> > i
> > created a set up for my application and installed it, it took 1.1 as the
> > default framework and i had to go to IIS and changed the Framework version
> > to
> > 2.0 for this application.
> >
> > Is there any way that i could specify that this application should use 2.0
> > while creating setup for this project even though 1.1 is the default in
> > that
> > server ?
> >
> > Thanx in advance
> >
> > Ragu
> >
> >
> >
>
>
>
Author
14 Mar 2007 1:48 AM
jacky kwok
Ragu wrote:
Show quote
> Hi
>
> I have installed 1.1 and 2.0 framework in my machine.
>
> Now i have developed an asp.net application with 2.0 as framework and when i
> created a set up for my application and installed it, it took 1.1 as the
> default framework and i had to go to IIS and changed the Framework version to
> 2.0 for this application.
>
> Is there any way that i could specify that this application should use 2.0
> while creating setup for this project even though 1.1 is the default in that
> server ?
>
> Thanx in advance
>
> Ragu
>
>
>

You can call the command in

http://www.asp.net/faq/SideBySide.aspx?tabindex=0&tabid=1#2

to switch the target framework. The above link is for dotnet1.0/1.1 but
the command works for dotnet2.0. Just change the path to the dotnet2.0 path.


--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk

AddThis Social Bookmark Button