<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting error while writing hello world program in c# in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51879#M6855</link>
    <description>Hi 

I am just trying to write hello world program in Blue Prism  following instructions  &lt;A href="https://portal.blueprism.com/customer-support/knowledge-base/how-do-i-use-c-code-blue-prism" target="test_blank"&gt;https://portal.blueprism.com/customer-support/knowledge-base/how-do-i-use-c-code-blue-prism&lt;/A&gt;

we are getting below 2 errors for below code snippet

public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}

1 ) Initialise	Stage1	Error	Validate	Compiler error at top section line 43: Type or namespace definition, or end-of-file expected	No 
2) Initialise	Stage1	Error	Validate	Compiler error at top section line 7: Identifier expected	No


Any help is appreciated</description>
    <pubDate>Mon, 27 Jun 2016 10:00:00 GMT</pubDate>
    <dc:creator>venkata_parvata</dc:creator>
    <dc:date>2016-06-27T10:00:00Z</dc:date>
    <item>
      <title>Getting error while writing hello world program in c#</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51879#M6855</link>
      <description>Hi 

I am just trying to write hello world program in Blue Prism  following instructions  &lt;A href="https://portal.blueprism.com/customer-support/knowledge-base/how-do-i-use-c-code-blue-prism" target="test_blank"&gt;https://portal.blueprism.com/customer-support/knowledge-base/how-do-i-use-c-code-blue-prism&lt;/A&gt;

we are getting below 2 errors for below code snippet

public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}

1 ) Initialise	Stage1	Error	Validate	Compiler error at top section line 43: Type or namespace definition, or end-of-file expected	No 
2) Initialise	Stage1	Error	Validate	Compiler error at top section line 7: Identifier expected	No


Any help is appreciated</description>
      <pubDate>Mon, 27 Jun 2016 10:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51879#M6855</guid>
      <dc:creator>venkata_parvata</dc:creator>
      <dc:date>2016-06-27T10:00:00Z</dc:date>
    </item>
    <item>
      <title>VP - the default language is</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51880#M6856</link>
      <description>VP - the default language is VB.Net, so first make sure you've switched to C#. I don't think you can write to the console like that, maybe a better test would be to use MessageBox, or even just create an output from you code stage that assigns a message value to a data item.</description>
      <pubDate>Mon, 27 Jun 2016 16:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51880#M6856</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2016-06-27T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Hi Carter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51881#M6857</link>
      <description>Hi Carter
Modified the language type to C# and code is written in Global code section in Initialize page , even if we tried to put hello world code snippet in other pages still we are getting below error (Attached screenshot for your reference} , request to provide your updates
Action 1	Code1	Error	Validate	Compiler error at line 0: } expected , when we put } the code is valid but at execution time we are getting  erorr
Thanks
VP</description>
      <pubDate>Tue, 28 Jun 2016 08:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51881#M6857</guid>
      <dc:creator>venkata_parvata</dc:creator>
      <dc:date>2016-06-28T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Hi John</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51882#M6858</link>
      <description>Hi John
Request to provide your updates on the above comments
Thanks
Venkata Parvatam</description>
      <pubDate>Wed, 29 Jun 2016 14:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51882#M6858</guid>
      <dc:creator>venkata_parvata</dc:creator>
      <dc:date>2016-06-29T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Did you also try to save it</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51883#M6859</link>
      <description>Did you also try to save it to a data item on some other page as an output? BluePrism does not really display any console. At least I have not seen it. As John Carter suggested before, try using a data item or MessageBox for displaying it. I do not understand the new error, because why do you get an error that states you need to } when you really have not started with the code yet (on line 0). But I think you need to separate the Constructor and the Method. Try adding
public class Hello1
{
}
and then begin with the Method.</description>
      <pubDate>Wed, 29 Jun 2016 15:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51883#M6859</guid>
      <dc:creator>GertLõhmus</dc:creator>
      <dc:date>2016-06-29T15:44:00Z</dc:date>
    </item>
    <item>
      <title>Hi Gert</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51884#M6860</link>
      <description>Hi Gert
With above taught implemented  , still we are facing the same issue , do you have a simple code stage that could be run on C# , Does anyone able to successfully execute c# or vb code in Blue Prism where I take instructions as mentioned in the said url &lt;A href="https://blueprism.knowledgeowl.com/help/article/link/how-do-i-use-c-cod" target="test_blank"&gt;https://blueprism.knowledgeowl.com/help/article/link/how-do-i-use-c-cod&lt;/A&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51884#M6860</guid>
      <dc:creator>venkata_parvata</dc:creator>
      <dc:date>2016-06-30T16:41:00Z</dc:date>
    </item>
    <item>
      <title>I use a lot of VB code. But</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51885#M6861</link>
      <description>I use a lot of VB code. But could you copy all of the code here. So I could check it for any mistakes.</description>
      <pubDate>Fri, 01 Jul 2016 11:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51885#M6861</guid>
      <dc:creator>GertLõhmus</dc:creator>
      <dc:date>2016-07-01T11:14:00Z</dc:date>
    </item>
    <item>
      <title>I am not really familiar with</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51886#M6862</link>
      <description>I am not really familiar with C# coding, but I did the following and it worked:
On the Initialise page I added reference to System.Windows.Forms.dll and added namespace System.Windows.Forms
This is my global code:
class Hello
{
	static void Main()
	{
	}
	public static string HelloWorld()
	{
		return ""Hello World!"";
	}
}
On another page I added a code stage and this is the code inside it:
MessageBox.Show(Hello.HelloWorld());
When ran, it shows the Hello World! message as expected. You can try to reproduce this.</description>
      <pubDate>Fri, 01 Jul 2016 12:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51886#M6862</guid>
      <dc:creator>ArchiveUser</dc:creator>
      <dc:date>2016-07-01T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Hi  Gert</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51887#M6863</link>
      <description>Hi  Gert
Kindly find attached screenshots for your references and suggest me 
Where have Global Code in Initialization page and subsequent code stage in other page
appreciate your response</description>
      <pubDate>Fri, 01 Jul 2016 12:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-error-while-writing-hello-world-program-in-c/m-p/51887#M6863</guid>
      <dc:creator>venkata_parvata</dc:creator>
      <dc:date>2016-07-01T12:54:00Z</dc:date>
    </item>
  </channel>
</rss>

