IIS running .NET 2.__ instead of .NET 1.__

IIS running .NET 2.__ instead of .NET 1.__

am 05.12.2007 23:12:11 von Nook

Hi,

We are getting the error below from an aspx page built with Visual Studio
2003, running in IIS 6 on Windows Server 2003 SP2. The application is set
to run under ASP .NET version 1.1.4322. At the bottom, you see:

"Version Information: Microsoft .NET Framework Version:2.0.50727.832;
ASP.NET Version:2.0.50727.832 "

This does not make sense. We have seen this error ("Type of value has a
mismatch with column type ") before when the application was accidentally
set to run under .NET 2.____

IIS was restarted, and that did not reset anything that would make the error
go away. The machine was restarted and that did not help either.

Thanks in advance for any pointers! :)

Regards,
Jim
Server Error in '/test/production/vbrc' Application.
------------------------------------------------------------ --------------------

Type of value has a mismatch with column type
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.ArgumentException: Type of value has a mismatch
with column type

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:


[ArgumentException: Type of value has a mismatch with column type]
System.Data.Common.ObjectStorage.Set(Int32 recordNo, Object value) +971
System.Data.DataColumn.set_Item(Int32 record, Object value) +34

[ArgumentException: Type of value has a mismatch with column typeCouldn't
store

in genome_seq Column. Expected type is SqlDataReader.]
System.Data.DataColumn.set_Item(Int32 record, Object value) +71
System.Data.DataRow.set_Item(DataColumn column, Object value) +276
System.Data.DataRow.set_Item(Int32 columnIndex, Object value) +26
SNF_jr.SNF_DatabaseProxy.executeSQLAndReturnData(String queryText, String
databaseName) +831
VBRC.getNtSeq.getNtSeq() in
V:\Inetpub\test\production\vbrc\getNtSeq.aspx.vb:65
VBRC.getNtSeq.PopulatePageWithInitialData() in
V:\Inetpub\test\production\vbrc\getNtSeq.aspx.vb:24
SNF_jr.SNF_SimpleNavPage.Page_Load(Object sender, EventArgs e) +55
System.Web.UI.Control.OnLoad(EventArgs e) +80
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3745





------------------------------------------------------------ --------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832

Re: IIS running .NET 2.__ instead of .NET 1.__

am 05.12.2007 23:42:22 von David Wang

How did you "set the application to run under ASP.NET 1.1".

Users are responsible for choosing and configuring IIS to use the
proper ASP.Net version for their application, as well as ensure that
only one version of .Net Framework is run in any Application Pool.
Unless you ensure those two things, you can be using any ASP.Net
version installed on your server.

aspnet_regiis.exe under the appropriate Framework version is the
easiest way to set the ASP.Net version.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//




On Dec 5, 2:12 pm, "Jim" wrote:
> Hi,
>
> We are getting the error below from an aspx page built with Visual Studio
> 2003, running in IIS 6 on Windows Server 2003 SP2. The application is set=

> to run under ASP .NET version 1.1.4322. At the bottom, you see:
>
> "Version Information: Microsoft .NET Framework Version:2.0.50727.832;
> ASP.NET Version:2.0.50727.832 "
>
> This does not make sense. We have seen this error ("Type of value has a
> mismatch with column type ") before when the application was accidentally
> set to run under .NET 2.____
>
> IIS was restarted, and that did not reset anything that would make the err=
or
> go away. The machine was restarted and that did not help either.
>
> Thanks in advance for any pointers! :)
>
> Regards,
> Jim
> Server Error in '/test/production/vbrc' Application.
> ------------------------------------------------------------ --------------=
-------
>
> Type of value has a mismatch with column type
> 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.ArgumentException: Type of value has a mismatch
> with column type
>
> 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:
>
> [ArgumentException: Type of value has a mismatch with column type]
> System.Data.Common.ObjectStorage.Set(Int32 recordNo, Object value) +971=

> System.Data.DataColumn.set_Item(Int32 record, Object value) +34
>
> [ArgumentException: Type of value has a mismatch with column typeCouldn't
> store
> C-AACTGGCTCTCGCTGCTTTGCTAATGGAGAATTAGTCAAAACAGTAAATGCTACTAAT GTGCCAGCAGAAGTCT=
G-CGTGAAAGATGATATATCAATAATTAAGTCTAACGGAGAACATTATAAAAAAGACAAT AATATTGGCGCTGTAG=
T-TAAATATTATCGGCTGTATCAAATAAAAGATTGGGCTACTTGCAATCCTATTTTAGAT ACGCATGGAACATTCA=
T-GCTCCTGGATATAGATAATACAGGGATGTTAATTCCCAAAATGCATACTTGCCGTGTA GAATGCGATATAACAC=
T-CAACAAAGATACAGCAGAAATAATATTAAATTCATATAGATTAAACCATTATAGGATA TCCGGCTCAATGCATA=
T-ATCTGGATGGTTCAAGAATAAAATAGATATTCCTTTAGAAAATACTTGTGAAACTATC GATGTCACATGTGGCT=
T-AAAGACAATATCGTTTCATGCTTGTTTCCATACACATAAATCTTGCACTAGGTACTTC AAAGGTTCCGTGTTGC=
C-GGAGATAACAATAGAATCTATGTGCCAGAATATCGAATTAATTATTATTGGCTCTGCT ATATTCTTTGGTTCAA=
T-ATTCCTGATAATACTAACTAAGACTTATATTGTGTATCTTTTTATACCGATATTCTAT CCATTTGTCAAGATAT=
A-TGCAATACTATACAACAGGTATTTCAAATTGTGCAAGAAATGTCTTCTTGCAGTCCAT CCTTTCACAAACTGTC=
C-TACAACCTGTATCTGCGGTATGTCATATGGCAATACAGAATCACTTAGATTACATAGA TTATGTAAAACTTGTG=
A-TGGCTATAAGGCACTACCTAAAGCTAGAAGATTATGTAAAAGCAAAGTGAGTAACATA ATACTATGCACATGCA=
G-TGCGTTAATATTCTTCTCATTCATTACTCCTATCAATGCAGAATGCT...>
> in genome_seq Column. Expected type is SqlDataReader.]
> System.Data.DataColumn.set_Item(Int32 record, Object value) +71
> System.Data.DataRow.set_Item(DataColumn column, Object value) +276
> System.Data.DataRow.set_Item(Int32 columnIndex, Object value) +26
> SNF_jr.SNF_DatabaseProxy.executeSQLAndReturnData(String queryText, Stri=
ng
> databaseName) +831
> VBRC.getNtSeq.getNtSeq() in
> V:\Inetpub\test\production\vbrc\getNtSeq.aspx.vb:65
> VBRC.getNtSeq.PopulatePageWithInitialData() in
> V:\Inetpub\test\production\vbrc\getNtSeq.aspx.vb:24
> SNF_jr.SNF_SimpleNavPage.Page_Load(Object sender, EventArgs e) +55
> System.Web.UI.Control.OnLoad(EventArgs e) +80
> System.Web.UI.Control.LoadRecursive() +49
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3745=

>
> ------------------------------------------------------------ --------------=
-------
>
> Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.N=
ET
> Version:2.0.50727.832

Re: IIS running .NET 2.__ instead of .NET 1.__

am 06.12.2007 00:20:14 von Nook

Thank you for the reply, David.

In the IIS Manager, right-clicking on the application, selecting
"Properties" and looking at the "ASP .NET" tab, the choices are
1.1.4322 (selected) and 2.0.50727
The last time we had this error, we found it set to 2.__ and when we changed
it to 1.__ that appeared to make the error go away.

I have found aspnet_regiis.exe under the 1.x and 2.x versions on that
server. I ran the 1.x aspnet_regiis.exe, using no options and the ASPX
works fine now. I will look further into the utility's options, as needed

Thanks again, David!

--Jim

"David Wang" wrote in message
news:043d328f-0adf-4793-8770-6d774fd85ff6@s12g2000prg.google groups.com...
How did you "set the application to run under ASP.NET 1.1".

Users are responsible for choosing and configuring IIS to use the
proper ASP.Net version for their application, as well as ensure that
only one version of .Net Framework is run in any Application Pool.
Unless you ensure those two things, you can be using any ASP.Net
version installed on your server.

aspnet_regiis.exe under the appropriate Framework version is the
easiest way to set the ASP.Net version.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//




On Dec 5, 2:12 pm, "Jim" wrote:
> Hi,
>
> We are getting the error below from an aspx page built with Visual Studio
> 2003, running in IIS 6 on Windows Server 2003 SP2. The application is set
> to run under ASP .NET version 1.1.4322. At the bottom, you see:
>
> "Version Information: Microsoft .NET Framework Version:2.0.50727.832;
> ASP.NET Version:2.0.50727.832 "
>
> This does not make sense. We have seen this error ("Type of value has a
> mismatch with column type ") before when the application was accidentally
> set to run under .NET 2.____
>
> IIS was restarted, and that did not reset anything that would make the
> error
> go away. The machine was restarted and that did not help either.
>
> Thanks in advance for any pointers! :)
>
> Regards,
> Jim
> Server Error in '/test/production/vbrc' Application.
> ------------------------------------------------------------ ---------------------
>
> Type of value has a mismatch with column type
> 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.ArgumentException: Type of value has a mismatch
> with column type
>
> 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:
>
> [ArgumentException: Type of value has a mismatch with column type]
> System.Data.Common.ObjectStorage.Set(Int32 recordNo, Object value) +971
> System.Data.DataColumn.set_Item(Int32 record, Object value) +34
>
> [ArgumentException: Type of value has a mismatch with column typeCouldn't
> store
>
> in genome_seq Column. Expected type is SqlDataReader.]
> System.Data.DataColumn.set_Item(Int32 record, Object value) +71
> System.Data.DataRow.set_Item(DataColumn column, Object value) +276
> System.Data.DataRow.set_Item(Int32 columnIndex, Object value) +26
> SNF_jr.SNF_DatabaseProxy.executeSQLAndReturnData(String queryText,
> String
> databaseName) +831
> VBRC.getNtSeq.getNtSeq() in
> V:\Inetpub\test\production\vbrc\getNtSeq.aspx.vb:65
> VBRC.getNtSeq.PopulatePageWithInitialData() in
> V:\Inetpub\test\production\vbrc\getNtSeq.aspx.vb:24
> SNF_jr.SNF_SimpleNavPage.Page_Load(Object sender, EventArgs e) +55
> System.Web.UI.Control.OnLoad(EventArgs e) +80
> System.Web.UI.Control.LoadRecursive() +49
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3745
>
> ------------------------------------------------------------ ---------------------
>
> Version Information: Microsoft .NET Framework Version:2.0.50727.832;
> ASP.NET
> Version:2.0.50727.832