Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Re TYpe mismatch

Reply
Thread Tools

Re TYpe mismatch

 
 
Paul
Guest
Posts: n/a
 
      11-08-2005
Hello, i an not sure if this is the rihgt place for this question, if not
could someome point me to the correct newsgroup please.

For a number of years i have been designing sites and hosting them using a
reseller account. For various reasons i am now going over to VPS server
using Windows Server 2003 with iis 6 installed. This is a large leap for me
and its getting me quite confused.

One problem i have is i am getting this error when testing a page

Provider error '80020005'

Type mismatch

The line in question is a currency field and the data that it is attempting
to be written is £200.00, if i try it without the £ sign it works fine,
what i dont understand is that it works fine on the existing site with or
without the £ sign.

Can anybody point me in the right direction, i dont really want to have to
write code to remove the £ sign if thers no need too.

Thanks in advance

Paul
 
Reply With Quote
 
 
 
 
MyndPhlyp
Guest
Posts: n/a
 
      11-08-2005

"Paul" <> wrote in message
news:Xns9708B09257172pcb007gmailcom@207.46.248.16. ..
> Hello, i an not sure if this is the rihgt place for this question, if not
> could someome point me to the correct newsgroup please.
>
> For a number of years i have been designing sites and hosting them using a
> reseller account. For various reasons i am now going over to VPS server
> using Windows Server 2003 with iis 6 installed. This is a large leap for

me
> and its getting me quite confused.
>
> One problem i have is i am getting this error when testing a page
>
> Provider error '80020005'
>
> Type mismatch
>
> The line in question is a currency field and the data that it is

attempting
> to be written is £200.00, if i try it without the £ sign it works fine,
> what i dont understand is that it works fine on the existing site with or
> without the £ sign.
>
> Can anybody point me in the right direction, i dont really want to have to
> write code to remove the £ sign if thers no need too.


Regional settings at the server perhaps? The currency settings can be
adjusted in the Regional Options on the Control Panel.


 
Reply With Quote
 
 
 
 
Paul Bromley
Guest
Posts: n/a
 
      11-08-2005
Hi Thanks for that quick reply, it sounded logical but ubfortunately
after the settings to the UK its still producing the same problem on
this machine.

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a
 
      11-08-2005
I think the right way would be to do it without the £ sign anyway. A simple
"Replace()" function could strip it out of the input, there is no large
amount of code required to do that. I never consider including the $ for US
currency,...the databse already displays it in the field based on the
Datatype of the field,...the only thing you put in is the number.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/IS...cessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/t...dance/2004.asp
http://www.microsoft.com/isaserver/t...dance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
-----------------------------------------------------



"Paul Bromley" <> wrote in message
news:%...
> Hi Thanks for that quick reply, it sounded logical but ubfortunately
> after the settings to the UK its still producing the same problem on
> this machine.
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
MyndPhlyp
Guest
Posts: n/a
 
      11-08-2005

"Paul Bromley" <> wrote in message
news:%...
> Hi Thanks for that quick reply, it sounded logical but ubfortunately
> after the settings to the UK its still producing the same problem on
> this machine.


What if you were to test the string with IsNumeric() or tried a conversion
with CDbl()? You might have to shave off the currency symbol to process it
as a number.


 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      11-09-2005
"Phillip Windell" <@.> wrote in
news:#:

> I think the right way would be to do it without the £ sign anyway. A
> simple "Replace()" function could strip it out of the input, there is
> no large amount of code required to do that. I never consider
> including the $ for US currency,...the databse already displays it in
> the field based on the Datatype of the field,...the only thing you put
> in is the number.
>


Yes i agree with you, that to use the replace function would solve the
problem, but as stated in my original post, i am trying to have to avoid
rewriting code. If it was just this 1 page and 1 site thats exactly what i
would have done, but there are numerours sites that i would have to do that
in, and if i missed any out, sites that are working now may stop working
properly, thats why i am trying to avoid that route. Especially as the
sites are working fine on the other server, surely it has to be down to a
setting or something like that.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL Type Mismatch error indexed name returns a value whose type does not match programmingzeal VHDL 0 05-06-2012 06:38 AM
type mismatch error amitbadgi@gmail.com ASP .Net 3 08-12-2005 11:23 AM
data type mismatch error amitbadgi@gmail.com ASP .Net 1 08-10-2005 01:04 PM
WORD shutdown - microsoft visual basic Run Time Error 13 - Type Mismatch frodo Computer Support 0 05-20-2004 05:39 PM
Type mismatch using Mozilla ActiveX in place of Microsoft WebBrowser? Noozer Firefox 0 05-19-2004 08:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57