IIS web.config - element system.web > child element 'rewrite' is not valid.

Berk

berkibap#4233
Developer
Oct 17, 2015
863
190
Hey.
So far, I've restarted the server and now CloudFlare is giving 502 error which is I think from web.config file, because:
286b3b14ee534e3b22025e8a15fb1c0a.png

I have no clue why it did this. It was working well before.
That happened when I've restarted the VPS.
Yeah, I've tried googling and come up with this, but it didn't work because there is no such file that is pointed in tutoral.
 

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
Hey.
So far, I've restarted the server and now CloudFlare is giving 502 error which is I think from web.config file, because:
286b3b14ee534e3b22025e8a15fb1c0a.png

I have no clue why it did this. It was working well before.
That happened when I've restarted the VPS.
Yeah, I've tried googling and come up with this, but it didn't work because there is no such file that is pointed in tutoral.
Y u no nginx

Ontopic i have no idea but, apparently some people fixed it by reinstalling VS 2017/2012/2015?
sources:


Or perhaps you have a duplicate web.config? Or a screwed tag?
source:



Otherwise it'd probably help to post your error log with the following command in an elevated command prompt:
devenv /log
 

Berk

berkibap#4233
Developer
Oct 17, 2015
863
190
Or perhaps you have a duplicate web.config? Or a screwed tag?
source:

Tried those already, there is no xsd file in xml/schemes folder. That could be the issue but idk?
 

Berk

berkibap#4233
Developer
Oct 17, 2015
863
190
Care to post your web.config file?
Seems like the issue is pretty obvious if it's a child element inside your web.config
There you go,

the <rewrite> is underlined with a blue line and saying the error that i gave at screenshot.
 

Berk

berkibap#4233
Developer
Oct 17, 2015
863
190
Post your web.config and insure your .net surpasses version 4
Well, the .Net version is v4.0.30319 .
Web.config currently:

( i didn't delete the <handlers> becuase it gave me iis error.)
 
Oh.
Okay. I've reinstalled the VS Community 17 And The blue line doesn't exist and it doesn't give any error.
But now, it keeps giving 502 error.
What?
 

Users who are viewing this thread

Top