Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Message="Value does not fall within the expected range."

Message="Value does not fall within the expected range."

Scheduled Pinned Locked Moved C#
csharphelpquestiondatabasesql-server
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahchoo
    wrote on last edited by
    #1

    Hi, I have a problem with the exception "Value does not fall within the expected range" and I haven't quite figured out what is wrong in my code. I have a store procedure that has a declared char for input. The store procedure is used by a Crystal Report filename. I want to pass a char from C# application that calls the Crystal report and passes a character to it. Somehow, I got the exception. I wonder if the character type in VS .Net 2005 is not compatible with a character type in SQL Server 2000. Any help? Thanks. Kyah:confused:

    J A 2 Replies Last reply
    0
    • A ahchoo

      Hi, I have a problem with the exception "Value does not fall within the expected range" and I haven't quite figured out what is wrong in my code. I have a store procedure that has a declared char for input. The store procedure is used by a Crystal Report filename. I want to pass a char from C# application that calls the Crystal report and passes a character to it. Somehow, I got the exception. I wonder if the character type in VS .Net 2005 is not compatible with a character type in SQL Server 2000. Any help? Thanks. Kyah:confused:

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      It's really impossible to tell without first seeing some code. You should at least try running the software under the debugger and see where the error is occurring. When you find that, post some of that code here--just the relevant pieces--and we should be able to better diagnose your problem.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: I luv teh choco The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      1 Reply Last reply
      0
      • A ahchoo

        Hi, I have a problem with the exception "Value does not fall within the expected range" and I haven't quite figured out what is wrong in my code. I have a store procedure that has a declared char for input. The store procedure is used by a Crystal Report filename. I want to pass a char from C# application that calls the Crystal report and passes a character to it. Somehow, I got the exception. I wonder if the character type in VS .Net 2005 is not compatible with a character type in SQL Server 2000. Any help? Thanks. Kyah:confused:

        A Offline
        A Offline
        ahchoo
        wrote on last edited by
        #3

        the code is very simple. void proc() { ... callreport(1, 'o'); ... } void callreport(int a, char b) { reportJob = new ExReport() //The ExReport is a Crystal Report connected to // SQL Server 2000 reported by a store //procedure with one input type char reportJob.SetParameterValue(0,b); //"The error happened at this line ... } That's all. The code looks simple but it gave me a lot of headache. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups