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. Web Development
  3. ASP.NET
  4. Can anyone?

Can anyone?

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studioasp-netdotnetgraphics
6 Posts 4 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.
  • L Offline
    L Offline
    learningman
    wrote on last edited by
    #1

    I get this error Server Error in '/WebSite16' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block. Source Error: Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim classifieds As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0) Line 11: Line 12: ' For new categories, images are JPGs... Source File: C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb Line: 10 Show Detailed Compiler Output: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Code.kgxnjivk.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web_dfz-mkmz.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.S

    J C J 3 Replies Last reply
    0
    • L learningman

      I get this error Server Error in '/WebSite16' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block. Source Error: Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim classifieds As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0) Line 11: Line 12: ' For new categories, images are JPGs... Source File: C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb Line: 10 Show Detailed Compiler Output: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Code.kgxnjivk.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web_dfz-mkmz.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.S

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      What dont you get? "Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block."

      1 Reply Last reply
      0
      • L learningman

        I get this error Server Error in '/WebSite16' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block. Source Error: Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim classifieds As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0) Line 11: Line 12: ' For new categories, images are JPGs... Source File: C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb Line: 10 Show Detailed Compiler Output: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Code.kgxnjivk.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web_dfz-mkmz.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.S

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        The error means what it says. Specifically: 1 - VB was designed for stupid people. It's not case sensitive. classifieds and Classifieds in VB would refer to the same thing. So would CLASSIFIEDS and cLassIfIEds. 2 - using case difference to create two different variables in the one block is even nastier than having a dataset called DataSet1. If you want your code to be unreadable, there are programs that do that for you AFTER you wrote the human readable version.

        Christian Graus Driven to the arms of OSX by Vista.

        J 1 Reply Last reply
        0
        • L learningman

          I get this error Server Error in '/WebSite16' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block. Source Error: Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim classifieds As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0) Line 11: Line 12: ' For new categories, images are JPGs... Source File: C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb Line: 10 Show Detailed Compiler Output: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Code.kgxnjivk.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web_dfz-mkmz.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.S

          J Offline
          J Offline
          JMummery
          wrote on last edited by
          #4

          Hi, Please can you tell us what you are trying to do? Also can you post some more code as this may help. At a guess line 9 and 10 have very similar variable names. You should not do that because it is confusing the issue. Try calling them different names e.g. Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim laClassifieds_PictureID As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim lsClassifieds_Advert As DataSet1.ClassifiedsRow = laClassifieds(0)

          Regards Julian Mummery
          Please Visit my FREE Bug / Fault Logging Website at FaultLogger.com**


          **

          L 1 Reply Last reply
          0
          • C Christian Graus

            The error means what it says. Specifically: 1 - VB was designed for stupid people. It's not case sensitive. classifieds and Classifieds in VB would refer to the same thing. So would CLASSIFIEDS and cLassIfIEds. 2 - using case difference to create two different variables in the one block is even nastier than having a dataset called DataSet1. If you want your code to be unreadable, there are programs that do that for you AFTER you wrote the human readable version.

            Christian Graus Driven to the arms of OSX by Vista.

            J Offline
            J Offline
            JMummery
            wrote on last edited by
            #5

            Hi Christian, Sounds like you like flaming VB, you must be in the C camp then. I disagree VB was not designed for stupid people. I know C and VB, i use both almost every day. Personally I prefer VB as it looks less messy to the reader. Self documenting code (well almost). Its all about using coding standards in this case and the variables have not been properly thought about, a very easy mistake for someone hat is still learning the basics or has had no real life commercial experience.

            Regards Julian Mummery
            Please Visit my FREE Bug / Fault Logging Website at FaultLogger.com**


            **

            1 Reply Last reply
            0
            • J JMummery

              Hi, Please can you tell us what you are trying to do? Also can you post some more code as this may help. At a guess line 9 and 10 have very similar variable names. You should not do that because it is confusing the issue. Try calling them different names e.g. Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim laClassifieds_PictureID As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim lsClassifieds_Advert As DataSet1.ClassifiedsRow = laClassifieds(0)

              Regards Julian Mummery
              Please Visit my FREE Bug / Fault Logging Website at FaultLogger.com**


              **

              L Offline
              L Offline
              learningman
              wrote on last edited by
              #6

              All I am trying to do is get the picture from the database to appear in the gridview I built a dal and a bll and stored procedure to insert ,delete ,select,and update. All works i can insert and it will show in the database and show in the gridview everything except the picture or image. all that shows is a box with a red x where the picture should be

              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