Need to convert to web application before converting website project
See original GitHub issueSteps to reproduce
- In Visual Studio 2019 open up a Web Application project that contains VB code.
- Run the “Convert to C#” command
- See error
Error message shown
#error Cannot convert ClassBlockSyntax - see comment for details
/* Cannot convert ClassBlockSyntax, CONVERSION ERROR: Object reference not set to an instance of an object. in ‘Partial Class index_createM…’ at character 206
at ICSharpCode.CodeConverter.CSharp.HandledEventsAnalyzer.CreateEventContainer(EventContainerSyntax p, SemanticModel semanticModel)
at ICSharpCode.CodeConverter.CSharp.HandledEventsAnalyzer.<>c__DisplayClass11_0.<HandledEvent>b__2(MethodStatementSyntax _, HandlesClauseItemSyntax e)
at System.Linq.Enumerable.<SelectManyIterator>d__233.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__17
2.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
Details
- Product in use: VS Extension
- Version in use: 9.1.1.0
Issue Analytics
- State:
- Created 8 months ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Converting a Web Site Project to a Web Application Project
This posting explains how to convert an existing Web Site Project to a Web Application Project in Visual Studio 2010.
Read more >Converting a Web Site Project to a Web Application ...
Open the existing solution. In the File menu, click Open Web Site, and then click Web Site. The Open Web Site dialog box...
Read more >How to convert ASP.NET website to ASP.NET web ...
Right click the project solution explorer and select Convert to Web Application. There are quite a few small differences, such as the App_Code ......
Read more >How to Convert Web Site To Web Application
How to Convert Web Site To Web Application · Create a branch from the team project your WSP located in. · Create a...
Read more >How to convert a web application to Software-as-a-Service
The other way is to transform an existing web application into a SaaS platform. This article takes a look at the second way....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, that’d be an interesting approach. Kind of a conversion only assembly.
On Wed, Jan 11, 2023 at 3:43 AM Graham @.***> wrote:
Sure, this is a sample file. It’s from an old school ASP.NET Website project. createMap.aspx.zip