Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts, Iam working on visualStudio 2003 and iam gettting the below error.The method LoadCalcScriptFromServer() at line 665 below accepts only a string value.But when i run the application it is expecting in URI Format.Any help would be appriciated.

Invalid URI: The format of the URI could not be determined.

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.UriFormatException: Invalid URI: The format of the URI could not be determined.
Source Error:

Line 663:			try
Line 664:			{
Line 665:				gridAdapterOWC112.DataServer.EssCalculation.LoadCalcScriptFromServer("AggFcst");
Line 666:			}
Line 667:			catch(Hyperion.Objects.Essbase.Common.EssException ex)
 
Source File: c:\inetpub\wwwroot\essweb1\webform1.aspx.cs    Line: 665 
Stack Trace: 

[UriFormatException: Invalid URI: The format of the URI could not be determined.]
   System.Uri.Parse() +545
   System.Uri..ctor(String uriString, Boolean dontEscape) +191
   System.Uri..ctor(String uriString) +7
   System.Net.WebRequest.Create(String requestUriString) +29
   Hyperion.Objects.Essbase.Common.Transports.HttpTransporter.SendAndReturnRequest(XmlDocument xmlRequest, String endPoint, IWebProxy proxy) +37
   Hyperion.Objects.Essbase.Common.WebServiceBase.PostAndReturnSOAP(String operation, XmlDocument xmlRequest, IClientProtocol clientProtocol) +186
Posted
Updated 17-Mar-10 21:31pm
v4

1 solution

Just look at the line 665 of the WebForm1.aspx

You are not using a proper URL there. Either for Authentication, Transfer or any other purpose - the url formed and used is not valid. Make sure to form a proper URL(relative) referrenced to root directory if the page exists in the project or absolute URL if outside.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Jan-11 16:45pm    
Sandeep, Looks obvious from stack trace, should provide enough information for a quick fix.
I can understand why someone voted "3", but I totally disagree. I vote another 5.

D.Srihari,
It's really good you posted exception stack, but you also should have posted some code around "webform1.aspx.cs Line: 665".

--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900