473,661 Members | 2,494 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 1077
Hi Roy,

1) Sure you can.
2) Both versions, 1.0 & 1.1, include an utiltity named aspnet_regiis.e xe.
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.co m> wrote in message
news:k5******** *************** *********@4ax.c om...
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"?>
<configuratio n>
<startup>
<supportedRunti me version="v1.0.3 705"/>
<requiredRuntim e version="v1.0.3 705"/>
</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"?>
<configuratio n>
<startup>
<supportedRunti me version="v1.1.4 322"/>
<supportedRunti me version="v1.0.3 705"/>
<requiredRuntim e version="v1.0.3 705"/>
</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\Micr osoft.NET\Frame work\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.co m> wrote in message
news:k5******** *************** *********@4ax.c om...
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 -->
<configuratio n>
<startup>
<supportedRunti me version="v1.1.4 322"/>
<supportedRunti me version="v1.0.3 705"/>
<requiredRuntim e version="v1.0.3 705"/>
</startup>
<appSettings>
<add key="subject_we lcome" value="Henry's Crawfish Club - Welcome" />
<add key="subject_re move" value="Henry's Crawfish Club - Remove" />
<add key="subject_pa ssword" 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\micros oft.net\framewo rk\v1.0.3705\Co nfig\machine.co nfig Request for the permission of type
System.Security .Permissions.St rongNameIdentit yPermission, mscorlib, Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed. (c:\winnt\micro soft.net\framew ork\v1.0.3705\C onfig\machine.c onfig)
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.Configur ation.Configura tionException: Error loading XML file
c:\winnt\micros oft.net\framewo rk\v1.0.3705\Co nfig\machine.co nfig Request for the permission of type
System.Security .Permissions.St rongNameIdentit yPermission, mscorlib, Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed. (c:\winnt\micro soft.net\framew ork\v1.0.3705\C onfig\machine.c onfig)

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:
[ConfigurationEx ception: Error loading XML file c:\winnt\micros oft.net\framewo rk\v1.0.3705\Co nfig\machine.co nfig Request for the permission
of type System.Security .Permissions.St rongNameIdentit yPermission, mscorlib, Version=1.0.330 0.0, Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9 failed. (c:\winnt\micro soft.net\framew ork\v1.0.3705\C onfig\machine.c onfig)]
System.Configur ation.Configura tionRecord.Open XmlTextReader(S tring configFileName) +425
System.Configur ation.Configura tionRecord.Load (String filename) +205
System.Configur ation.DefaultCo nfigurationSyst em.System.Confi guration.IConfi gurationSystem. Init() +164
System.Configur ation.Configura tionSettings.Se tConfigurationS ystem(IConfigur ationSystem configSystem) +117
System.Configur ation.Configura tionSettings.Ge tConfig(String sectionName) +114
System.Configur ation.Configura tionSettings.ge t_AppSettings() +16
CrawfishClub.Gl obal.Applicatio n_Start(Object sender, EventArgs e) in c:\documents and
settings\roy\vs webcache\henry. sohotech.biz\cr awfishclub\glob al.asax.cs:78


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.370 5.288; ASP.NET Version:1.0.370 5.288

On Fri, 7 May 2004 20:05:32 -0700, "Hayato Iriumi" <hi*****@hotmai l.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>
<supportedRunti me version="v1.0.3 705"/>
<requiredRuntim e version="v1.0.3 705"/>
</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>
<supportedRunti me version="v1.1.4 322"/>
<supportedRunti me version="v1.0.3 705"/>
<requiredRuntim e version="v1.0.3 705"/>
</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\Mic rosoft.NET\Fram ework\v1.1.4322

aspnet_regii s -i

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

Hope it helps.
"Roy Chastain" <ro*@kmsys.co m> 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
1994
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 your web site? TIA -- | Just another PHP saint | Email: rrjanbiah-at-Y!com
9
2793
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 get this error when I try to save them.. "The character set defined in your document does not match the encoding format you selected in the Save As Dialog" (even though I don't do Save As, just save..) and sometimes doesn't let me save them...
4
4124
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 people would back me up on this. The design basically uses a pool of memory, allocated as a character array. Pointers into the array are retured by the allocated function. Isn't this very dangerous, as a char has very lenient memory alignment...
16
1729
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 where it uses the address of EmailNotify below: ThreadNotify.IsBackground = True ThreadNotify.Start()
3
1118
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 reports? Anyone help? Thanks, Derek
1
1584
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 and you stop the run after the change but before running, the system crashes. 2. Add a new class and stop the run and the system crashes. During debug, in the new system, you can add and delete code. You might expect this to work, I'll add...
2
1310
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 to seek your help to show me how can I have a link in my webpage to view this file by reading from the database? Your feedback/help is very much appreaciated. Regards,
14
1548
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 are is simply (..\include). For the life of me, I can't get VC7 to 'grok' the headers during a build. This is how I set the additional includers (someone correct me if I'm doing something wrong):
1
1466
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 have to fire 5 queries and finally all the required fields are populated in a Temporary table. Please let me know whats the best option to do this.I have tried to implement it using nested cursors but its giving errors.Please let me know how to...
0
8856
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5653
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.