I have a WCF Web Service that my ASP.NET app uses. It has been working fine for quite some time. I just added in a Dev Express Grid (and the Dev Express DLLs) and a new page that uses them and now I am getting parsing errors on the WSDL. But the weird part is that it works fine on my machine but fails on the web server machine. (Both are connecting to the same web services WSDL.) Here is the error message I am getting:
Server Error in '/MyWebAppWebDev' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Reference.svcmap: Failed to generate code for the service reference 'MyWebAppService'.
Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Referenced type 'WebClientApp.MyWebAppService.ReferenceUpdatesDataContract, WebClientApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' with data contract name 'ReferenceUpdatesDataContract' in namespace '[URL] cannot be used since it does not match imported DataContract. Need to exclude this type from referenced types.
XPath to Error Source: //wsdl:definitions[@targetNamespace='[URL]wsdl:portType[@name='IMyWebAppReferenceDataServiceLib']
Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='[URL]/']/wsdl:portType[@name='IMyWebAppReferenceDataServiceLib']
XPath to Error Source: //wsdl:definitions[@targetNamespace='[URL]/']/wsdl:binding[@name='MyWebAppServicesDefaultEndpoint']
Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='[URL]wsdl:binding[@name='MyWebAppServicesDefaultEndpoint']
XPath to Error Source: //wsdl:definitions[@targetNamespace='[URL]wsdl:service[@name='MyWebAppReferenceDataServiceLib']/wsdl:port[@name='MyWebAppServicesDefaultEndpoint']
I am completely stumped on this. I have checked my web.config endpoint address and it is spot on (and notably is not in the error message above).
Things I have tried:
Giving permissions to C:Windows emp to my Website user name
Giving permissions to C:Windows emp to my App pool user name
Checking to see that none of my data contracts are generic and have IsReference=true in them.
Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message:
-- <html> <head> <title>Configuration Error</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Configuration Error</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br><br> <b> Parser Error Message: </b>
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.<br><br>
<b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> Line 24: ASP.NET to identify an incoming user. Line 25: --> <font color=red>Line 26: <authentication mode="Windows"/> </font>Line 27: <!-- Line 28: The <customErrors> section enables configuration </pre></code> </td> </tr> </table> <br> <b> Source File: </b> c:inetpubwwwrootenterpriseweb.config<b> Line: </b> 26 <br><br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 </font> </body> </html> <!--
[ConfigurationErrorsException]: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
(c:inetpubwwwrootenterpriseweb.configline 26) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName) at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index) at System.Web.Configuration.RuntimeConfig.get_CustomErrors() at System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow) at System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) --> --.
Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
<br><br> <b> Parser Error Message: </b>It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> Line 24: ASP.NET to identify an incoming user. Line 25: --> <font color=red>Line 26: <authentication mode="Windows"/> </font>Line 27: <!-- Line 28: The <customErrors> section enables configuration </pre></code> </td> </tr> </table> <br> <b> Source File: </b> c:inetpubwwwrootenterpriseweb.config<b> Line: </b> 26 <br><br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 </font> </body> </html> <!--
[ConfigurationErrorsException]: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
(c:inetpubwwwrootenterpriseweb.config line 26) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName) at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index) at System.Web.Configuration.RuntimeConfig.get_CustomErrors() at System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow) at System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) --> --.
I've set-up a cruisecontrol.net server with IIS7. I want to be able to view the web dashboard. Everything has worked for me before fine in IIS6, but now it seems to be broke in IIS7.
If I browser to: http://192.168.93.133:21234/default.aspx
I get the following error: XML Parsing Error: not well-formed Location: http://192.168.93.133:21234/default.aspx Line Number 1, Column 5:.NET
It looks like ASP.NET isn't being hit when I request the page. But as far as I know the application pool of the site is set to .NET, and I don't know how to check whether ASP.NET is configured correctly with IIS7. if this a problem which can be rectified in IIS7?Has anyone test CruiseControl.NET from installation in IIS7?
I have had some web services running for some time now without any problems. Recently I tried to update the webservices in the project they run from but keep getting the error: Metadata contains a reference that cannot be resolved: 'http://server/ErrorEmails.asmx?wsdl'
When I tried adding the web reference to the project from scratch I get he following error: 'Unable to download the following files from http://server/ErrorEmails.asmx?wsdl'
Now I can see what the problem is: the 'server' part of the url is pointing to the internal server name instead of the actual url. I have not changed anything in the web services themselves or the projects which include them. If I copy the exact same webservice to a different folder on the server it can connect with no problem. This makes me believe its an issue with the directory on the server, however the server administrators say that this is not the case.
How has this error come up all of a sudden and what is the solution? .. I have read various forums on creating proxy classes, adding code to web config file etc but don't see why this should be done when it worked fine to start with and still works fine in a separate directory on the server!
I am in trouble. I have a asp.net file and publish it and run in localhost. [URL]. Its working fine.
But i put the file in mob server(It's the own server we are using in my concern)[URL] its not working. I got an error message that is
XML Parsing Error: not well-formed Location: file://///Mob/mdirectalpha/CPWebserviceAlpha/Addons.asmx Line Number 1, Column 2:<%@ WebService Language="C#" CodeBehind="~/App_Code/Addons.cs" Class="Addons" %> -^
Is it the problem in server? I need to set any settings in server?
I am building a website and recently I had to format my re-install everything on my lappy..before that the site was working very good locally..but after re-installing VS2008 I don't know why I keep getting this error
XML Parsing Error: no element found Location: [URL] Line Number 1, Column 1:
I searched online..and found out that the reason might be some unclosed HTML tag but I checked and made sure that all the tags are properly closed..I also added Response.ContentType = "text/HTML"into .cs files in Pge_Load method..but I am still getting that error..I have one master page and two pages rendered using it..I dont understand how come the same program works once and after re-installing VS it doesn't work I dont know if this will help or not but master page starts with these 3 lines
I have an ASP.Net 4.0 Web Service method that returns a well-formed XML document. I am successfully displaying the XML in a browser locally and once deployed on the production server.
When I try to call the method via jQuery ajax I'm getting the error:
XML Parsing Error: no element found Location: moz-nullprincipal:{6c0c99b3-0fed-454f-aa6e-e0fca93a521c} Line Number 1, Column 1:
xml parsing error no element found location line number 1 column 1. If run every application this error come (in mozilla only). how to rectify this error.
My website was running perfectly without errors both on IIS and VS2013. Now today it stopped working in IIS 7 but working on VS2013. when i explore it using localhost/bsd then it gave this error :
XML Parsing Error: no element foundLocation: http://localhost/BSD/Builder.aspxLine Number 1, Column 1:
This error goes same for all page while accessing from IIS Localhost
As you can see in picture , I surfed internet and found these two :
Publish your website on IIS in ASP.NET page: [URL] ....
1. webvidu asp.net to run in normal mode and programming Publish normal website 2. Publish test their IIS under ASP.NET on IIS website, follow the instructions above also normal 3. When put up IIS and web browser they type in localhost/asp shall be the following error:
Code: XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number 1, Column 2:<%@ page theme="Default" language="C#" masterpagefile="~/MasterPage/MasterPage.master" autoeventwireup="true" inherits="webvidu._Default, App_Web_default.aspx.cdcab7d2" %> -^
I do WinXPSP2 IIS on the operating system, and use vs.net2005 13.0.1 firefox browser...
I am new to .net. i amworking on the supproting project. At first i want to execute the project. It uses microsoft visual studio 2010 and sql server 2008, i attached the data base to sql server 2008,when am trying to execute the project , it opens the login page , it is taking the user name and password ,after entering the user name and password, when it redirects to index page it shows the xml parsing error. i am not getting what to do for this error. when i try to execute all other pages, it opens that pages . please help me to open the index page.
I have hosted a asp.net project working in asp.net 3.5. All it is working fine, but some time i got error message XML parsing error;Not wel formed. Location: http://www.(my domain name); Line number 1, column 14.
I'm writing a class to automatically extract information from an excel spreadsheet (using NPOI api) in C#, and then import this information into a database. I've got it all working fine except for one small issue.
One of the spreadsheets I'm working with, contains the date in the following format: 04/01/2011 04:43:28.
When I ran the web application, I got the following error message:
String was not recognised as a valid
So I debugged through the code after this, and it turns out that the date is being read in as:
40546.0151388889, so it is being formattted back to a number.
I uploaded a few new pages to a web site and now I am getting these errors no matter what I try. Parser Error
Description:
An error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file Parser Error Message: Could not load type 'PSR.MasterPage2'.
I use VS2010,IIS 7.5,just created simple ASP.NET WebForms Application,created ASP.NET 4.0 pool with .NET 4.0 setting and trying to Publish this site IIS.
Successfully published, but when I open this site in a browser, see error: XML Parsing Error: no element found Location: http://localhost/wa1/Default.aspx Line Number 1,Column 1:
Who knows where is error?I was looking on this site for an article about publishing in ASP.NET 4.0 and VS2010,but seems like there is no sperate article about it.I am installing VS2008 and going to try the same.
I'm looking for a way to parse excel into Asp.Net, the problem I'm experiencing same as in[ URL]
I've searched all web, but no1 seems to have an answer
here's the error
The Microsoft Jet database engine could not find the object 'Cities'. Make sure the object exists and that you spell its name and the path name correctly.
Error parsing attribute 'something': Type 'System.Web.Mvc.ViewPage' does not have a public property named 'something'.
Notice how it tries to use System.Web.Mvc.ViewPage rather than my BaseViewPage class. To make it more interesting, if I remove the "Something" attribute from the Page directive and put some code in the generic version of BaseViewPage (OnInit for example) the class is actually called / used / instantiated.
So, am I doing something wrong or is this a limitation.
I'm getting this error when I try to load the WSDL for my Asp.Net WebService.
faultCode "Server.Error.Request" faultDetail "Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://myurl/web/Service.asmx?WSDL)" faultString "HTTP request error"
here is the code: service = new WebService(); service.addEventListener("fault", onServiceFault); service.addEventListener(LoadEvent.LOAD, onWSDLLoaded); service.loadWSDL(url);
I've done a ton of googling and found several possible solutions but it does not appear to be any of them. I'll go through what I've tried.
1) I can open the link in a browser IE and FF. 2) There's no user signed certificate required 3) My crossdomain is setup correctly
Here's the really interesting part, it works if I compile and run with Flex SDK 3.2 but I was trying to integrate AIR 2.5 for some features that are required and so I updated to Flex 3.5 w/ AIR 2.5 on top. If I build with this SDK it does not work.
I've used an HTTP traffic montior(Fiddler) to looked at the requests and noticed that with the 3.5 SDK it does not ever send out the request. So it must be something in the flex side, because it's obviously never getting to my service.