Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Error converting Vb.net MVC project to C#

$
0
0

Hi ,

I am trying to comvert VB.net MVC project to C#.

The whole project seems to be converted fine except for one controller where it throws up below error

 C:\santosh\Work\BHI 3 - Asbestos 2016 c#\BHI.Web\Controllers\AccountController.vb is not converted:
Parser found 1 error(s)
-- line 136 col 28: this symbol not expected in EndOfStmt

 

and that line is

Dim result As Microsoft.AspNet.Identity.IdentityResult = Await UserManager.RemoveLoginAsync(User.Identity.GetUserId(), New UserLoginInfo(loginProvider, providerKey))

Can you please help in resolving this.
Also is there a tool which can convert vbhtml to cshtml ?
Because at the moment it doesn't seem to convert those and I am not sure if the project will work fine when a "*.cs" controller will have "*.vbhtml" view linked to it.Please advise ?
Thanks,
Santosh 

Viewing all articles
Browse latest Browse all 1764

Trending Articles