.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Error :Value cannot be null:Parameter name url

Posted By: sri     Posted Date: May 31, 2011    Points:5   Category :ASP.Net
How to resolve Value Cannot be Null.Parameter name url?
I found this error when i tried to load the page without refreshing it for more than ten minutes.It pointed the error while reading Xml path in a code.
filepath="~/Xml/xxx.xml"
ds.Readxml(filepath)

Reply me as soon as u can..



Responses
Author: Maverick             
Posted Date: May 31, 2011     Points: 20   

Hello,

Please post your code to get he clarity of the issue.

Thanks,
Maverick
Author: sri             
Posted Date: May 31, 2011     Points: 20   

I found thre error where I placed the Breakpoint.Find the attachment pls.

Download Attachment

Author: sri             
Posted Date: May 31, 2011     Points: 20   

I attached the error page with this reply.. pls help me...

Download Attachment

Author: Maverick             
Posted Date: May 31, 2011     Points: 20   

Hello,

I cannot download the error page attached here. Please verify it.

Thanks,
Maverick
Author: sri             
Posted Date: May 31, 2011     Points: 20   

Find attachment now

Download Attachment

Author: Maverick             
Posted Date: June 01, 2011     Points: 20   

Hello,

Still not able to download getting the following error.

Download Attachment

Thanks,
Maverick
Author: sri             
Posted Date: June 02, 2011     Points: 20   

Hi This is my error page.. Pls help me to solve this error soon...


Server Error in '/' Application.
Value cannot be null.
Parameter name: url
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.ArgumentNullException: Value cannot be null.
Parameter name: url

Source Error:

Line 366: ds1 = New DataSet
Line 367: ds1.DataSetName = "loginxml"
Line 368: ds1.ReadXml(filepath)
Line 369: ds = New DataSet
Line 370: ds.DataSetName = "Commonxml"


Source File: D:\7.1.2011.1.00pm\Pyrl new\Pyrl new\EmployeeDetails.aspx.vb Line: 368

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: url]
System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt) +3929915
System.Xml.XmlTextReader..ctor(String url) +53
System.Data.DataSet.ReadXml(String fileName) +56
Pyrl__new.EmployeeDetails.Page_Load(Object sender, EventArgs e) in D:\7.1.2011.1.00pm\Pyrl new\Pyrl new\EmployeeDetails.aspx.vb:368
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend