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
379 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 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