Смегрант, у моего филипинского тютора с 25 годами стажа и работой на гавермент не пошел вот этот код, зип архив прилагается. Я начал кодить 2 месяца назад и у меня все работает. Вечный вопрос, что делать?
http://www.gday.ru/forum/attachments...-stockfile.zip
У меня Win 8.1 и Visual Studio 2017. Вот мой лог:
Вот его ошибки:
http://www.gday.ru/forum/attachments...-stockfile.zip
У меня Win 8.1 и Visual Studio 2017. Вот мой лог:
'SkillageIT_XML.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\StockFile\SkillageIT_XML\SkillageIT_XML\bin\Debug\SkillageIT_XML.exe'. Symbols loaded.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\System.Windows.Forms.resources.dll'. Module was built without symbols.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
The program '[13512] SkillageIT_XML.exe' has exited with code 0 (0x0).
'SkillageIT_XML.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\StockFile\SkillageIT_XML\SkillageIT_XML\bin\Debug\SkillageIT_XML.exe'. Symbols loaded.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\System.Windows.Forms.resources.dll'. Module was built without symbols.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.
'SkillageIT_XML.exe' (CLR v4.0.30319: SkillageIT_XML.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
The program '[13512] SkillageIT_XML.exe' has exited with code 0 (0x0).
Вот его ошибки:
Hi Student,
I tried to run the program but I got a compile error as below.
Regards, Eldred
Severity Code Description Project File Line Suppression State
Error CS1528 Expected ; or = (cannot specify constructor arguments in declaration) SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1003 Syntax error, '[' expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1026 ) expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1003 Syntax error, ',' expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1003 Syntax error, ']' expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1002 ; expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1513 } expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0119 'DataGridView' is a type, which is not valid in the given context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0119 'DataGridView' is a type, which is not valid in the given context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 155 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 160 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 161 Active
Error CS0127 Since 'xmlFormView.btnXml_Click(object, EventArgs)' returns void, a return keyword must not be followed by an object expression SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 169 Active
Error CS0149 Method name expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 171 Active
Warning CS0162 Unreachable code detected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 171 Active
I tried to run the program but I got a compile error as below.
Regards, Eldred
Severity Code Description Project File Line Suppression State
Error CS1528 Expected ; or = (cannot specify constructor arguments in declaration) SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1003 Syntax error, '[' expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1026 ) expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1003 Syntax error, ',' expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1003 Syntax error, ']' expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1002 ; expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS1513 } expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0119 'DataGridView' is a type, which is not valid in the given context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0119 'DataGridView' is a type, which is not valid in the given context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 152 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 155 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 160 Active
Error CS0103 The name 'dgView' does not exist in the current context SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 161 Active
Error CS0127 Since 'xmlFormView.btnXml_Click(object, EventArgs)' returns void, a return keyword must not be followed by an object expression SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 169 Active
Error CS0149 Method name expected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 171 Active
Warning CS0162 Unreachable code detected SkillageIT_XML F:\Assessment\Student-PROG_201704\StockFile\SkillageIT_XML\SkillageIT_XML\XMLForm.cs 171 Active
Comment