Can anyone?
-
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
-
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
-
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
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.
-
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
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**
**
-
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.
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**
**
-
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**
**
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