How can I fix parser Error in ASP.NET? - asp.net

I'm facing a parser error in ASP.NET, how can I handle it and why this error is coming? How can I resolve it?
Server Error in '/' 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: Could not load type 'BrightPublication.PurchaseOrderForm'.
Source Error:

Related

How to solve Silverstripe User error Uncaught InvalidArgumentException?

I am getting error message in silverstripe
[User Error] Uncaught InvalidArgumentException: Unable to parse string: Malformed inline YAML string ({count} {class} saved successfully.).
I have added screenshot of error page.
Thanks guys for your reply. it was a YAML parser error. There was a bug in the 'gridfield-bulk-editing-tools' module, I got a help from silverstripe forum

Could not find a part of the path 'C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\Jellyfish.jpg'

When i ran the Project ,it shows "Could not find a part of the path 'C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\Jellyfish.jpg'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path
'C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\Jellyfish.jpg'.
uploadFile.SaveAs(filePatha);
db.image.Add(image);
db.Entry(image).State = EntityState.Modified;
where's wrong in my code
The exception message: "Could not find a part of the path ..." is the message of the DirectoryNotFoundException.
In order to save a file you have to ensure that the directory exists first!
Run this before you save the file:
if(!Directory.Exists(#"C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\"))
{
Directory.CreateDirectory(#"C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\");
}

Failed to generate code for the service reference on a webservice

EgoPay's website has a WebService that i'm trying to work with, But there is a problem when i add it to my Asp.Net project( I added it through "Add Service Reference" option) after building solution i have got an error :
Custom tool error: Failed to generate code for the service reference 'ServiceReference1'.  Please check other error and warning messages for details.
and i have got 3 Warning :
1- Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: The datatype 'schemas.xmlsoap.org/soap/encoding/:Array' is missing.
XPath to Error Source: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:portType[#name='API_EgoPay_SoapPort']
2- Custom tool warning: 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='www.egopay.com/api/soap']/wsdl:binding[#name='API_EgoPay_SoapBinding']
XPath to Error Source: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:service[#name='API_EgoPay_SoapService']/wsdl:port[#name='API_EgoPay_SoapPort']
3- Custom tool warning: 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='www.egopay.com/api/soap']/wsdl:portType[#name='API_EgoPay_SoapPort']
XPath to Error Source: //wsdl:definitions[#targetNamespace='https://www.egopay.com/api/soap']/wsdl:binding[#name='API_EgoPay_SoapBinding']
the webservice address is : https://www.egopay.com/api/soap?wsdl
i searched in the net for this error and most of answers were "uncheck Reused types in referenced assemblies" but it did'nt work to me.
i'll be thankfull if anyone help me or anyone could test this webservice in asp.net and tell me the result.

Error in .Net Web Service running on IIS 6

I am trying to run a web service build in .Net on IIS 6 server.
But it is giving an Error while starting Web Service
ERROR
Server Error in ' /9448' Application
Configuration Error
Description : "An error occurred during the processing of configuration file required to service this request.Please review the
specific details below and modify your configuration file
appropriately.
Parse Error Message :An error occurred loading the configuration file: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config"
is denied.
Source Error:
[No relevant source lines]
Source File : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config
Line: 0
Version Information : Microsoft.NET Framework Version v2.0.50727.3625; ASP.Net Version : v2.0.50727.3625
The user under which it is running have full Administrator Rights
While it was working fine previously
What could be the problem?

Compilation Error in asp.net?

In my application i am using youtubevide (www.aspnet-video.com). I installed and write the code. when i run this application it is showing like this.....
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'ASPNetVideo.WindowsMedia' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\youtubevideo\fe0d5a9d\4d87ccb0\assembly\dl3\690f1934\002677f1_a2eec901\ASPNetVideo.NET3.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\youtubevideo\fe0d5a9d\4d87ccb0\assembly\dl3\b377a6f8\17e0b64d_33fcca01\ASPNetVideo.NET2.DLL'
Source Error:
Line 11:
Line 12:
Line 13:
Line 14:
It seems you have included tho different assemblies defining the same class. Have a look at your project references.

Resources