Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
i am getting this error when i try to run a method which i am calling from my page load event, this is where the error is coming from;

C#
protected void Page_Load(object sender, EventArgs e)
  {
      EnvironmentSpecificRequestUrl();
  }
  private void EnvironmentSpecificRequestUrl()
  {
      throw new NotImplementedException();
  }



here is my code:

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class test123 : System.Web.UI.Page
{


    protected void Page_Load(object sender, EventArgs e)
    {


        EnvironmentSpecificRequestUrl();
    }
  
    public static Uri EnvironmentSpecificRequestUrl(HttpRequestBase request)
    {
//.........
//........
    }
}


please let me know where am stuck up the error.

thanks in advance
Posted
Comments
DamithSL 12-Jun-14 12:20pm    
why to different code pieces? what is the error you get?

1 solution

I'm not sure you stated what the actual error is, but I see two problems in your code snippets.

In the first block, you are throwing a NotImplementedException, which not surprisingly is itself the (intentional) cause of the error.

In the second block, the signature: public static Uri EnvironmentSpecificRequestUrl(HttpRequestBase request) does not match the signature that you are calling with, which has no arguments.
 
Share this answer
 

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