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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Query performance - SQL Server 20 84
Problem to packaging 1 98
Visual Studio: built-in keystroke automation 2 71
Why is "packages element is not declared"? 2 318
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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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