Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iis blowup complaining about web.config

Status
Not open for further replies.

thefrstgatsby

Technical User
May 8, 2004
113
CA
I am getting this error after I renamed an aspx file in a VS .net project

Server Error in '/CanadaVC' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The data at the root level is invalid. Line 1, position 1.

Source Error:


Line 1: vti_encoding:SR|utf8-nl
Line 2: vti_timelastmodified:TR|12 Nov 2004 14:51:08 -0000
Line 3: vti_extenderversion:SR|4.0.2.7802


Source File: c:\inetpub\ Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Does anyone know how to fix it?

it occurs no matter what page I load on the localhost
 
.net framework 1.1

And I was already working in it. A coworker asked me to rename an aspx file, and after I did and tried to run it, this happened, but for any application on my localhost.

I also looked at web.config to see if I needed to change anything in there, but I didn't.
 
Did you recompile the webapp?

I am guessing you didn't and the .dll is now out of date.

Rob

 
I did recompile it. Even if I create a blank solution and try to add a new project to it, I get this error.

The web server reported the following error when attempting to create or open the web project located at the following url: " 500 Internal Server Error'.
 
I am not faimlure with the "vti_encoding:SR|utf8-nl"
so really don't know if it can be causing your problem..

Have you tried rebooting you computer?

I have seen this fix some wierd issues before..

Rob
 
I did all the standard troubleshooting steps. It seems to be a global file that's causing the problems.
 
What file do all aspx files use, because it's obviously a global file that has changed.
 
Ok this is going to be one of those learning experiences for me.

What I have found out from doing a quick search for
vti_encoding:SR
in my inetpub dir was that "ALL" .aspx files contain just the 3 lines you showed in the first post...

The error is VERY VERY similar to one I got when I first installed .net 2.0

How I fixed it was to DELETE the bin directory and then recomplile the webapp.

Until the delete/recomplie I kept seeing a similar error.

My guess is try the delete/then recompile..

What happens if you press F5 and start debugging?

Rob




 
it doesn't load, no projects on my localhost will load everything I try to load gives the same error.
 
If I try to add a project in .net now, I get


The Web server reported the following error when attempting to create or open the Web project located at the following URL: ' 'HTTP/1.1 500 Internal Server Error'.
 
The error means the XML is malformed
Just check the Root and make sure is not mailformed

Good luck


What would you attempt to accomplish if you knew you would not fail?

Prayers are like junk mail, hardly looked at.
 
if you dont have any custom XML files check your web.config file

Good luck


What would you attempt to accomplish if you knew you would not fail?

Prayers are like junk mail, hardly looked at.
 
Is the web.config specific to each virtual directory or is it global? Because if it's specific, then that won't work as the problem is global.
 
Just for the heck of it, have you tried to reinstall asp.net

aspnet_regiis.exe

it should be in your windows system direcotry..

 
I uninstalled and reingstalled 1.1 prior to this, but I will run the command line version
 
Ok, new info, I can load regular html, but once I try to load asp pages that's when I get the encoding error
 
uninstalling / reinstalling .net would have removed the aspx .dlls (this should be obvious if it the case by looking at teh properties of your webapp in iismanager and file mappings (applicaion maybe)

you should need to do the aspnet_regiis [red]/i[/red] to get itto work..

I think the /i is requried, but do a search in google.


Rob
 
I fixed the problem, in case you're wondering how I did it... After some searching on the web, I discovered that if you put a web.config file in the directory, it will override all other web.config files, this was the "global" file I was trying to find.

After having deleted the web.config from the directory, the problem cleared up. Thanks for your help though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top