Click here to Skip to main content
13,005,823 members (88,181 online)
Rate this:
Please Sign up or sign in to vote.
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 17-Mar-10 19:54pm
Updated 17-Mar-10 21:31pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
SAKryukov 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.

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


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170627.1 | Last Updated 28 Jan 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100