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
390 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Michael Fowler 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 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