473,508 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Versoin 1.0 or not

I created a web page or two with VS .net 2003 on an XP box. I used a 2003 server as the location of the web site. Both the boxes had
version 1.1 of .net only installed.

I installed 1.0 of the .net framework on both boxes. The 2003 server will not serve any aspx pages at this time.

I installed IIS on the XP box after installing 1.0 framework. I can run .aspx files on the XP box. If I do a copy project on the XP box to
the XP web site, VS tells me that V1.1 is not installed and that I will not be able to run web applications.

Question
1) - Can you run .aspx pages with code behind .CS pages with V1.0?
2) - If you can use V1.0, how do you tell VS 2003 that you want to develop/compile against 1.0?

Thanks
-------------------------------------------
Roy Chastain
Nov 18 '05 #1
3 1071
Hi Roy,

1) Sure you can.
2) Both versions, 1.0 & 1.1, include an utiltity named aspnet_regiis.exe.
Take a look at the it and keep in mind that they're different apps, one for
1.0 and the other one for 1.1. You should use the only corresponding to the
version of the framework you want to set a website to.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

"Roy Chastain" <ro*@kmsys.com> wrote in message
news:k5********************************@4ax.com...
I created a web page or two with VS .net 2003 on an XP box. I used a 2003 server as the location of the web site. Both the boxes had version 1.1 of .net only installed.

I installed 1.0 of the .net framework on both boxes. The 2003 server will not serve any aspx pages at this time.
I installed IIS on the XP box after installing 1.0 framework. I can run ..aspx files on the XP box. If I do a copy project on the XP box to the XP web site, VS tells me that V1.1 is not installed and that I will not be able to run web applications.
Question
1) - Can you run .aspx pages with code behind .CS pages with V1.0?
2) - If you can use V1.0, how do you tell VS 2003 that you want to develop/compile against 1.0?
Thanks
-------------------------------------------
Roy Chastain

Nov 18 '05 #2
You can't compile your application against .NET Framework 1.0, but you can
tell your application to run against .NET Framework 1.0 by using config
file.

Here it is...

<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.0.3705"/>
</startup>
</configuration>

However, I wouldn't really recommend this because you're really limiting
yourself to version 1.0 even if 1.1 is available. I would rather do this.

<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.0.3705"/>
</startup>
</configuration>

Another thing... If you install IIS after you install .NET Framework, that's
a problem right there. Run the following command from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

aspnet_regiis -i

It will install 1.1 version of ASP .NET and update scriptmaps for you.

Hope it helps.
"Roy Chastain" <ro*@kmsys.com> wrote in message
news:k5********************************@4ax.com...
I created a web page or two with VS .net 2003 on an XP box. I used a 2003 server as the location of the web site. Both the boxes had version 1.1 of .net only installed.

I installed 1.0 of the .net framework on both boxes. The 2003 server will not serve any aspx pages at this time.
I installed IIS on the XP box after installing 1.0 framework. I can run ..aspx files on the XP box. If I do a copy project on the XP box to the XP web site, VS tells me that V1.1 is not installed and that I will not be able to run web applications.
Question
1) - Can you run .aspx pages with code behind .CS pages with V1.0?
2) - If you can use V1.0, how do you tell VS 2003 that you want to develop/compile against 1.0?
Thanks
-------------------------------------------
Roy Chastain

Nov 18 '05 #3
Thank you very much.

Below is my web.config file
<!-- Web.Config Configuration File -->
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.0.3705"/>
</startup>
<appSettings>
<add key="subject_welcome" value="Henry's Crawfish Club - Welcome" />
<add key="subject_remove" value="Henry's Crawfish Club - Remove" />
<add key="subject_password" value="Henry's Crawfish Club - Password" />
</appSettings>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>

I know that it is being read because if I put something bad in it like <?xml version="1.0"?>, I get an error.

When I try to run my web page, the first time after modifying web.config gets the error below. If I run it a second time, it complains that
a object is not setup, and that object would have been setup in my global.asax. I am TRYING to host this on Earthlink hosting service.
They claim they have Windows 2000 server with version 1.0 of the framework installed. I have even go so far as to sign the assembly being
created from the code behind code.

I have the page working on my own 2003 server with both version 1.0 and 1.1 framework installed.
Error loading XML file c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Request for the permission of type
System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed. (c:\winnt\microsoft.net\framework\v1.0.3705\Config \machine.config)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationException: Error loading XML file
c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Request for the permission of type
System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed. (c:\winnt\microsoft.net\framework\v1.0.3705\Config \machine.config)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:
[ConfigurationException: Error loading XML file c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Request for the permission
of type System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 failed. (c:\winnt\microsoft.net\framework\v1.0.3705\Config \machine.config)]
System.Configuration.ConfigurationRecord.OpenXmlTe xtReader(String configFileName) +425
System.Configuration.ConfigurationRecord.Load(Stri ng filename) +205
System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.Init() +164
System.Configuration.ConfigurationSettings.SetConf igurationSystem(IConfigurationSystem configSystem) +117
System.Configuration.ConfigurationSettings.GetConf ig(String sectionName) +114
System.Configuration.ConfigurationSettings.get_App Settings() +16
CrawfishClub.Global.Application_Start(Object sender, EventArgs e) in c:\documents and
settings\roy\vswebcache\henry.sohotech.biz\crawfis hclub\global.asax.cs:78


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

On Fri, 7 May 2004 20:05:32 -0700, "Hayato Iriumi" <hi*****@hotmail.com> wrote:
You can't compile your application against .NET Framework 1.0, but you can
tell your application to run against .NET Framework 1.0 by using config
file.

Here it is...

<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.0.3705"/>
</startup>
</configuration>

However, I wouldn't really recommend this because you're really limiting
yourself to version 1.0 even if 1.1 is available. I would rather do this.

<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.0.3705"/>
</startup>
</configuration>

Another thing... If you install IIS after you install .NET Framework, that's
a problem right there. Run the following command from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

aspnet_regiis -i

It will install 1.1 version of ASP .NET and update scriptmaps for you.

Hope it helps.
"Roy Chastain" <ro*@kmsys.com> wrote in message
news:k5********************************@4ax.com.. .
I created a web page or two with VS .net 2003 on an XP box. I used a 2003

server as the location of the web site. Both the boxes had
version 1.1 of .net only installed.

I installed 1.0 of the .net framework on both boxes. The 2003 server will

not serve any aspx pages at this time.

I installed IIS on the XP box after installing 1.0 framework. I can run

.aspx files on the XP box. If I do a copy project on the XP box to
the XP web site, VS tells me that V1.1 is not installed and that I will

not be able to run web applications.

Question
1) - Can you run .aspx pages with code behind .CS pages with V1.0?
2) - If you can use V1.0, how do you tell VS 2003 that you want to

develop/compile against 1.0?

Thanks
-------------------------------------------
Roy Chastain


-------------------------------------------
Roy Chastain
Nov 18 '05 #4

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

Similar topics

2
1982
by: R. Rajesh Jeba Anbiah | last post by:
This is kind of survey like... bit off topic indeed. I'm interested to know, how many of you really use sqlite with PHP. Many people are scared of it's locking system. If you use it, how big is...
9
2779
by: Frances | last post by:
at work we switched to UTF-16 encoding and now when I open html files in HomeSite the code is all messed up, and if I turn on "enable non-ANSI file encoding" code looks fine when I open files but I...
4
4112
by: Romeo Colacitti | last post by:
I have a need to make a custom quasi-memory allocator, and I remembered a simple ons in K&R2. Looking at the code for it now, I think I notice a "fault" in the design, and I was wondering if...
16
1712
by: who be dat? | last post by:
Consider the following code which enables multithreading in an ASP.Net application I'm writing: Code in global.asx Application_start subroutine, Threadnotify is declared Globally as a new thread...
3
1113
by: D. Kennedy | last post by:
I know that .NET needs atleast Access 2000 for any Access database stuff. But does the framework need all Office 2000 products or more recent. Or can I use for example Excel 2000 to output some...
1
1574
by: rogsonl | last post by:
The latest versoin of Microsoft Visual Studio 2005 (Version 8.0.50727.42 RTM.050727-4200 Microsoft .NET Framework Version 2.0.50727) crashes very often in debug. 1. If you modify a case statement...
2
1302
by: Seok Bee | last post by:
Dear Experts, I'm using the asp.net 2.0 fileupload control to upload files into Access Database. The file types that being uploaded may be in word, excel or image format. Therefore, I would like...
14
1538
by: Bit byte | last post by:
I am pretty close to the end of my tether at the moment. I have a project which requires some header fies - which happen to be located in another folder (the relative path from where my sources...
1
1461
by: vishalz.19 | last post by:
Hi all, I am writing a Stord proc in db2 in which I am querying(select query) a table in the database and picking 2 values.These 2 values are inputs to the next select query and so on.Totally I...
0
7226
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,...
0
7125
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...
0
7328
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,...
0
7388
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...
0
5631
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,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4709
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...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.