Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > No web parts are loading now View modes: 
User avatar
Member
Member
dford-catapultrpm - 12/19/2013 11:07:48 AM
   
No web parts are loading now
I'm not sure what is causing this error because i back out of the changes i had previously made to the web config file but now no web parts are loading.

Here is the error I am getting
Unrecognized attribute 'xmlns'. Note that attribute names are case-sensitive. (C:\sites\hormel\hormel.com\wwwroot\cmswebparts\web.config line 3)

Here is the beginning of my web.config file
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<!-- Content staging BEGIN -->
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- Content staging END -->

There is no web.config file in the cmswebparts directory.

Has anyone seen this before or know how to fix it?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/19/2013 11:37:35 AM
   
RE:No web parts are loading now
Most likely not a Kentico issue, you might [url=https://www.google.com/search?q=Unrecognized+attribute+'xmlns'.+Note+that+attribute+names+are+case-sensitive&rlz=1C1XIOB_enUS525US525&oq=Unrecognized+attribute+'xmlns'.+Note+that+attribute+names+are+case-sensitive&aqs=chrome..69i57j0l2.828j0j8&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8]try Googleing the error[/url] you'll find several issues it could be related to.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/19/2013 11:39:25 AM
   
RE:No web parts are loading now
Wow that looks like bad formatting maybe try this
https://www.google.com/search?q=Unrecognized+attribute+'xmlns'.+Note+that+attribute+names+are+case-sensitive&rlz=1C1XIOB_enUS525US525&oq=Unrecognized+attribute+'xmlns'.+Note+that+attribute+names+are+case-sensitive&aqs=chrome..69i57j0l2.828j0j8&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8

User avatar
Member
Member
dford-catapultrpm - 12/19/2013 12:36:14 PM
   
RE:No web parts are loading now
Thanks for the link.

Do you have any idea why the file path would say the web.config file is in the cmswebparts directory?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/19/2013 12:50:19 PM
   
RE:No web parts are loading now
Are you using a website or a web project? As some of those post mention, it could be a web.config from the server and not specifically on the website itself. I might suggest doing an iisreset and/or recycling your app pool.

User avatar
Member
Member
dford-catapultrpm - 12/19/2013 1:05:30 PM
   
RE:No web parts are loading now
Its a website. I tried recycling the app pool, i checked the .NET version in the app pool, its v4.0.30319.

Where are the web.config files from the server located?

User avatar
Member
Member
dford-catapultrpm - 12/19/2013 1:25:06 PM
   
RE:No web parts are loading now
I found multiple web.config files. If i go to IIS Manager on the server, go to Configuration Editor then Search Configuration. I see the web.config file in the cmswebparts directory and was able to remove the line that was giving me an error.

However now, i am getting a different error from the same file.
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.


Does anyone know what could have caused this to change so that now it is giving me an error? I didnt change any settings on the server. I tried to add Entity Framework which seemed to not break anything. Then I added providerName to the connection string in the web.config and that is when i started getting the errors. I took it out but that did not fix the error.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/19/2013 2:38:09 PM
   
RE:No web parts are loading now
Do you have your web.config in version control? You might go back and compare the previous version and see what has changed. As a rule of thumb, I don't do any modifications to my web.config within IIS because it could have undesired results. I will make my changes manually or let Visual Studio update it if I add a new reference or something like that. Even then I still go back and verify it.

Have you done any updates or installs to the server lately? I'd bet you'd get a faster response from stackoverflow.com then here.

User avatar
Member
Member
dford-catapultrpm - 12/19/2013 2:44:16 PM
   
RE:No web parts are loading now
Thanks for the response. These web.config files are not in version control because i did not realize the exist. I have not made any changes to these myself.

I am taking the files from my production site and copying them to my staging site to see if that fixes it.

I appreciate your help.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/20/2013 9:26:39 AM
   
RE:No web parts are loading now
If you dont have local version control (not the versioning in Kentico but something like GIT or SVN) I'd suggest looking into it. BitBucket, GIT, etc. I use http://sourcerepo.com/ because it supports different repo types. In short, this allows you to store a copy of your source files in a different location. Some choose these cloud options, some choose a local server option. The local options are usually more involved in getting set up but also provide (IMHO) a more secure setup than a cloud setup.

User avatar
Member
Member
dford-catapultrpm - 12/20/2013 9:31:24 AM
   
RE:No web parts are loading now
I'm sorry for the confusion. We have version control, but these extra web.config files are not in version control. I did not realize that they existed on the server.

BTW, i figured out that when i used NuGet to install Entity Framework, it added a tag to the web.config file
<configSections xmlns="">
which is what was causing the error.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/20/2013 11:32:00 AM
   
RE:No web parts are loading now
Nice find! Always makes me cringe a little when I hear people aren't using version control but good thing that isn't you.