?
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
Medium Priority
?
407 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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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: …

741 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