Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What does this mean:  Reference to a non-shared member requires an object reference.

Posted on 2010-11-18
9
Medium Priority
?
834 Views
Last Modified: 2012-05-10
I am writing a function for SSRS

Public Function Test() As String
System.Web.Httpresponse.Redirect("asdsa")
End Function


I am getting an error reading:
What does this mean:  Reference to a non-shared member requires an object reference.

I am not sure what it means?
0
Comment
Question by:Mr_Shaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 14

Accepted Solution

by:
BigBadWolf_000 earned 668 total points
ID: 34166709
0
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 1332 total points
ID: 34166984
try:

System.Web.HttpContext.Current.Response.Redirect(...);
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 34167040
Try this:

Response.Redirect("asdsa")
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34167082
You are using HTTPResponse in Sql Server Reporting Services? Is this for ASP.NET?
0
 

Author Comment

by:Mr_Shaw
ID: 34167098
Hi CodeCruiser,

ssrs is based on .net framwork..... I think
0
 

Author Comment

by:Mr_Shaw
ID: 34167116
HI Zhaolai,

I can't do Response.Redirect("asdsa")  because SSRS want the entire reference..
0
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 1332 total points
ID: 34168016
Did you try: System.Web.HttpContext.Current.Response.Redirect(...) ?
0
 

Author Comment

by:Mr_Shaw
ID: 34168433
jasonduan:
I'll have to try it in the morning (uk time).. i'll let you kbnow the outcome.
0
 

Author Closing Comment

by:Mr_Shaw
ID: 34182934
thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question