Invalid Parameter Used

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    Invalid Parameter Used

    I have several projects that have an item listed in the taks list that says
    "Invalid parameter used". It points to the first line of a class definition,
    "Public Class pPreview", but doesn't cause an error or give me any
    indication of what the problem could be.

    The class is defined by:

    Public Class pPreview
    Inherits System.Windows. Forms.Form

    ' other stuff here

    End Class

    Thanks in advance for your help

    Dave


  • Kevin Yu [MSFT]

    #2
    RE: Invalid Parameter Used

    Hi Dave,

    First of all, I would like to confirm my understanding of your issue. From
    your description, I understand that you are getting a "Invalid parameter
    used" prompt in the task list. If there is any misunderstandin g, please
    feel free to let me know.

    Based on the code you have provided, I didn't see anything wrong. So I
    suggest you try to rebuild the project to see if the prompt message in the
    task list goes away. Does it cause any compile time error?

    Kevin Yu
    =======
    "This posting is provided "AS IS" with no warranties, and confers no
    rights."

    Comment

    • Dave

      #3
      Re: Invalid Parameter Used

      No compile errors Kevin. And you have it right. When I double click the item
      in the task list it sends me to the beginning of the line that contains
      Public Class pPreview.

      Doesn't seem to cause any trouble but I can't get rid of it.

      Dave

      "Kevin Yu [MSFT]" <v-kevy@online.mic rosoft.com> wrote in message
      news:l2yKZq3LFH A.3476@TK2MSFTN GXA02.phx.gbl.. .[color=blue]
      > Hi Dave,
      >
      > First of all, I would like to confirm my understanding of your issue. From
      > your description, I understand that you are getting a "Invalid parameter
      > used" prompt in the task list. If there is any misunderstandin g, please
      > feel free to let me know.
      >
      > Based on the code you have provided, I didn't see anything wrong. So I
      > suggest you try to rebuild the project to see if the prompt message in the
      > task list goes away. Does it cause any compile time error?
      >
      > Kevin Yu
      > =======
      > "This posting is provided "AS IS" with no warranties, and confers no
      > rights."
      >[/color]


      Comment

      • Kevin Yu [MSFT]

        #4
        Re: Invalid Parameter Used

        Hi Dave,

        This tast might be a user created task. You can try the following steps to
        show the build errors only.

        1. Right click on the Tast list.
        2. Select Show tasks/Build Errors

        Does it get away after doing so?

        Kevin Yu
        =======
        "This posting is provided "AS IS" with no warranties, and confers no
        rights."

        Comment

        • Dave

          #5
          Re: Invalid Parameter Used

          Still there Kevin. Is it possible that I've done something 'within' the
          class definition that would cause this?

          Dave
          "Kevin Yu [MSFT]" <v-kevy@online.mic rosoft.com> wrote in message
          news:lFyNc5EMFH A.2504@TK2MSFTN GXA03.phx.gbl.. .[color=blue]
          > Hi Dave,
          >
          > This tast might be a user created task. You can try the following steps to
          > show the build errors only.
          >
          > 1. Right click on the Tast list.
          > 2. Select Show tasks/Build Errors
          >
          > Does it get away after doing so?
          >
          > Kevin Yu
          > =======
          > "This posting is provided "AS IS" with no warranties, and confers no
          > rights."
          >[/color]


          Comment

          • Kevin Yu [MSFT]

            #6
            Re: Invalid Parameter Used

            Hi Dave,

            Did you see any error or warning messages that might be associated with
            this task? It's weird that the task remains there if there is no error or
            warning messages. You can also try to check if the project has been built
            during the whole build process by right clicking on the solution in the
            solution explorer and select properties. In the left pane, select
            Configuration Properties/Configuration. In the right pane, check the build
            checkbox of the project that generates the task.

            It's hard to troubleshoot on this issue, since I cannot repro it on my
            machine. So I suggest you just leave as it is, if it doesn't affect the
            building process.

            Kevin Yu
            =======
            "This posting is provided "AS IS" with no warranties, and confers no
            rights."

            Comment

            • Dave

              #7
              Re: Invalid Parameter Used

              Ok Kevin, thanks for your help. I'll check the configuration properties and
              if I can't get rid of it after that I won't worry too much about it. It's
              not really causing me any trouble that I'm aware of.

              Dave

              "Kevin Yu [MSFT]" <v-kevy@online.mic rosoft.com> wrote in message
              news:aCrJD9NMFH A.560@TK2MSFTNG XA03.phx.gbl...[color=blue]
              > Hi Dave,
              >
              > Did you see any error or warning messages that might be associated with
              > this task? It's weird that the task remains there if there is no error or
              > warning messages. You can also try to check if the project has been built
              > during the whole build process by right clicking on the solution in the
              > solution explorer and select properties. In the left pane, select
              > Configuration Properties/Configuration. In the right pane, check the build
              > checkbox of the project that generates the task.
              >
              > It's hard to troubleshoot on this issue, since I cannot repro it on my
              > machine. So I suggest you just leave as it is, if it doesn't affect the
              > building process.
              >
              > Kevin Yu
              > =======
              > "This posting is provided "AS IS" with no warranties, and confers no
              > rights."
              >[/color]


              Comment

              • Kevin Yu [MSFT]

                #8
                Re: Invalid Parameter Used

                You're welcome, Dave. Thanks for sharing your experience with all the
                people here. If you have any questions, please feel free to post them in
                the community.

                Kevin Yu
                =======
                "This posting is provided "AS IS" with no warranties, and confers no
                rights."

                Comment

                Working...