Friday, September 14, 2012

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

So, here's another one I was encountered with: Invalid URI: The format of the URI could not be determined





Its a 2003 server running IIS 6.0

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 9/13/2012 1:38:13 PM 
Event time (UTC): 9/13/2012 5:38:13 PM 
Event ID: 00f54b7251484446b49b7d508a57a23b 
Event sequence: 3 
Event occurrence: 1 
Event detail code: 0 


Application information: 

Application domain: /LM/W3SVC/1/Root/PGC-1-129920314485468750 
Trust level: Full 
Application Virtual Path: /PGC 
Application Path: C:\Inetpub\wwwroot\PGC\ 
Machine name: SYSENG2 


Process information: 

Process ID: 1136 
Process name: w3wp.exe 
Account name: NT AUTHORITY\NETWORK SERVICE 


Exception information: 

Exception type: UriFormatException 
Exception message: Invalid URI: The format of the URI could not be determined. 


Request information: 

Request URL: http://syseng2/pgc/DesktopDefault.aspx 
Request path: /pgc/DesktopDefault.aspx 
User host address: 127.0.0.1 
User: 
Is authenticated: False 
Authentication Type: 
Thread account name: NT AUTHORITY\NETWORK SERVICE 


Thread information: 

Thread ID: 1 
Thread account name: NT AUTHORITY\NETWORK SERVICE 
Is impersonating: False 
Stack trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at System.Web.Services.Protocols.WebClientProtocol.set_Url(String value)
at ASPNET.StarterKit.Portal.TrapezeService.TrapezeMTSrv.set_Url(String value)
at ASPNET.StarterKit.Portal.TrapezeService.TrapezeMTSrv..ctor()
at ASPNET.StarterKit.Portal.Signin.Page_Init(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.UserControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at ASPNET.StarterKit.Portal.DesktopDefault.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Custom event details: 



For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 




 So after a fair amount of digging, the problem turned out to be caused by using a default web.config that had stubbed out addresses for web services. See "[stub value]" below. Once this was changed to a syntax correct address (even if the resource is unavailable), the page rendered.


  <applicationSettings>
    <ASPNET.StarterKit.Portal.Properties.Settings>
      <setting name="ASPNETPortal_FaxService_FaxService" serializeAs="String">
        <value>http://localhost/FaxWebService/FaxService.asmx</value>
      </setting>
      <setting name="ASPNETPortal_MSReportingService2005_ReportingService2005" serializeAs="String">
        <value>http://az-dev4/ReportServer/ReportService2005.asmx</value>
      </setting>
      <setting name="ASPNETPortal_MSReportExecution2005_ReportExecutionService" serializeAs="String">
        <value>http://az-dev4/ReportServer/ReportExecution2005.asmx</value>
      </setting>
      <!--setting name="ASPNETPortal_MapPointService_CommonService" serializeAs="String">
        <value>http://findv3.mappoint.net/Find-30/Common.asmx</value>
      </setting-->
      <setting name="ASPNETPortal_MSReportingService_ReportingService" serializeAs="String">
        <value>http://az-dev4/ReportServer/ReportService.asmx</value>
      </setting>
      <setting name="ASPNETPortal_TrapezeService_TrapezeMTSrv" serializeAs="String">
        <value>[stub value]</value>
      </setting>
    </ASPNET.StarterKit.Portal.Properties.Settings>



No comments:

Post a Comment