Getting "The data is invalid." error when attempting to run project

Answered

Hi all,

 

I just updated to Rider 2017.1 RC and I can no longer run (or debug) one of my projects in the solution. I get this at the console:

and this in the Event Log:

 

Does anyone have the same issues?

 

1
5 comments
Avatar
Permanently deleted user

Do you run your app into external console mode or not?

0
Avatar
Permanently deleted user
0
Avatar
Permanently deleted user

@Vadim Lomshakov - no, no external console

 

@Ivan Shakhov - forgot to mention that I've tried this before posting here, it didn't work

0

Note: This issue was fixed in RTM (171.4456.2169)

I've found that <repository with a project>/.idea/config/applicationhost.config file contains a little bit weird symbol:

<binding protocol="http" bindingInformation="*:&#xA;    :localhost" />

As I noticed applicationhost.config is overwritten every project run and to fix it I had to make applicationhost.config file readonly and change "&#xA;    " (HTML Encoded Line Feed) to the desired port number:

<binding protocol="http" bindingInformation="*:8080:localhost" />

I guess I will have to edit this file manually to add another run configuration in the future (and bind Rider's Run Configuration with IIS Express by project name)

Update 1:

I've found the issue. Select Project -> Right Click -> Properties -> Web -> SSL Port contained those symbols for some reason

I've defined port there and now it generates correct applicationhost.config file:

<binding protocol="http" bindingInformation="*:8080:localhost" />

 

2

Please sign in to leave a comment.