Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I solve this problem? : The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

It is working file in my local PC but when I publish in Web Server its not working.

Regards,
Afzal
Posted

1 solution

A simple google search of the error will give you lots of ways to fix this.

One possible issue is that IIS could be set to run as .Net 3.5 or earlier and you have .Net 4 items in your web.config. Since there are many things that can cause it, you'll need to go through each of the possibilities and figure it out.

Since it works on your PC my guess is you have the wrong .Net version set in IIS.
 
Share this answer
 
Comments
afzalkarani 21-Oct-14 8:33am    
I have tried googling but got no exact solution. My Webserver is .Net 4.0.
ZurdoDev 21-Oct-14 8:35am    
Right. But you have to look in IIS to see what version of .Net your application pool is running.
afzalkarani 21-Oct-14 8:38am    
Thanks Ryan.
ZurdoDev 21-Oct-14 8:55am    
You're welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900