Solved

Project works great in Visual Studio but when I move it to local IIS I get XML Parsing Error

Posted on 2014-04-21
2
383 Views
Last Modified: 2014-05-12
So I had a simple project that runs great when I hit play in Visual Studio 2013. Everything works fine. However, i built it and moved all the files over into inetpub\wwwroot\myproj
but now when try to navigate to

file:///C:/inetpub/wwwroot/myproj/ProcessDataFiles.asmx

i get an error:

XML Parsing Error: not well-formed
Location: file:///C:/inetpub/wwwroot/myproj/ProcessDataFiles.asmx
Line Number 1, Column 2:<%@ WebService Language="C#" CodeBehind="ProcessDataFiles.asmx.cs" Class="ProjServer.DataFiles" %>
-^


I have no idea what this means and can't seem to find anything wrong. Can someone point me in the right direction?
0
Comment
Question by:Jay Redd
2 Comments
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 40013823
Register iis with the version of .net framework (.net 4.0 or .net 3.5 etc.)
Find aspnet_regiis.exe for the version you want to install .  for example C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis –i ( it will register iis version)
aspnet_regiis -k W3SVC  (it will Remove all scriptmaps to any version of ASP.NET from the  specified path, recursively (not supported on Windows Vista  and higher versions).
aspnet_regiis -s W3SVC  (it will Install scriptmaps for this version at the specified path,  recursively.)
http://forums.iis.net/t/892423.aspx?XML+Parsing+Error+No+Well+Formed+

Michael
0
 
LVL 7

Expert Comment

by:Utkarsh Kulkarni
ID: 40014426
If you have configured website / application under IIS, you should not access the file like file:///C:/inetpub/wwwroot/myproj/ProcessDataFiles.asmx
but, you should access like http://localhost[:<port Number>]/ProcessDataFiles.asmx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now