Deploy solidity contract with c#

Deploy solidity contract with c#

I am developing an application on&nbsp;<strong><em>Ethereum</em></strong>&nbsp;blockchain. I use&nbsp;<strong><em>Solidity</em></strong>&nbsp;for contract and&nbsp;<strong><em>Nethereum c#</em></strong>&nbsp;library to connect to the contract. I am somehow new in Ethereum and it is my first app in blockchain!! I want to deploy my app in one&nbsp;<strong><em>TESTChain</em></strong>&nbsp;first,

I am developing an application on Ethereum blockchain. I use Solidity for contract and Nethereum c# library to connect to the contract. I am somehow new in Ethereum and it is my first app in blockchain!! I want to deploy my app in one TESTChain first,

The problem is that The C# code does not reply anything after send request for deploying of contract. here is my code

the contract is created well on remix and in running tab it works

  public class DeploymentTest : ContractDeploymentMessage
        {
      public static string BYTECODE = @"0x....";// removed it because of long string

  public DeploymentTest() : base(BYTECODE) { }
    }

  public async Task ConnectToTest()
        {
            var url = "https://github.com/Nethereum/TestChains";
            var pass = "0xb5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7";
            var acc = new Account(pass);
            var chain = new Web3(acc, url);
            var deploymentMessage = new DeploymentTest();
            var deploymentHandler =  chain.Eth.GetContractDeploymentHandler&lt;DeploymentTest&gt;();

             // this point just waited and does not return anything
            var transactionReceipt = await deploymentHandler.SendRequestAndWaitForReceiptAsync(deploymentMessage);
            var contractAddress = transactionReceipt.ContractAddress;

            }

Can any one help me, I don't insist in deploying with code, it can be happened by anyway but after deploying I need to connect it and call some functions. Thanks

EDITED

I downloaded the TESTChain network for windows and it works fine, it seems the default port is 8545 for http:localhost. but it still does not connect to chain

    var web3test = new Web3(); // also tried new Web3(http://localhost:8545);
    var isMining = await web3test.Eth.Mining.IsMining.SendRequestAsync();
    var accounts = await web3test.Eth.Accounts.SendRequestAsync();

is that problem with my connection? I disabled my MacAfee firewall completely.

EDITED 2

I changed my machine and it works on my another laptop, I cannot find the problem. I do not know if I just Uninstall the mcaffe will it be ok or not? has anybody any idea about the firewall prolems or other issues?


blockchain solidity altcoins

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

5 Blockchain Applications That Have Transformed the World of Technology

The blockchain is the decentralized database of the blocks of information, which gets recorded in the chain format and linked in a secured crypto graphical manner. This technology ensures proper safety of the data due to its secure nature, and it totally changes how people carry out transactions. It also brings about a faster and secure process of validating information needed to establish reliability.

What Is The Difference Between Blockchain And Bitcoin?

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

What Makes a Blockchain Secure?

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

Revolutionary Application of Blockchain Technology

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

The Future Of Blockchain Technology And Cryptocurrency Applications

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects