Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 20:54pm
Edited 17-Mar-10 22:31pm
v4

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
SAKryukov at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 230
2 DamithSL 200
3 Zoltán Zörgő 149
4 BillWoodruff 120
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 28 Jan 2011
Copyright © CodeProject, 1999-2014
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