Ask a Question related to ASP.NET Web Services, Design and Development.
-
Dan Rogers #1
RE: [WebMethod] System.NullReferenceException: Object reference not set to an instance of an object.
Um, this isn't going to work, generally. Web services, as any web app
(especially on Windows server 2003) are heavily sandboxed. The method you
are calling requires full permissions to run. My guess is your exception
is caused by the Directory method returning null. Since you aren't error
checking that condition, you're seeing a null reference exception when you
tell your program to return the reference returned by the directory call.
Since that will fail due to security restrictions, it's pretty easy to say
this is your problem.
--------------------set to an instance of an object.>From: ivy ivy via .NET 247 <anonymous@dotnet247.com>
>X-Newsreader: AspNNTP 1.50 (Matthew Reynolds Consulting)
>Subject: [WebMethod] System.NullReferenceException: Object reference notTK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT FEED02.phx.gbl!TK2MSFTNGP0>Mime-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>Content-Transfer-Encoding: quoted-printable
>Message-ID: <OeUyHx0IFHA.588@TK2MSFTNGP15.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Date: Mon, 07 Mar 2005 11:31:36 -0800
>NNTP-Posting-Host: 81-86-69-114.dsl.pipex.com 81.86.69.114
>Lines: 1
>Path:
8.phx.gbl!TK2MSFTNGP15.phx.gblmicrosoft.public.dotnet.framework.aspnet.webservic es:28460>Xref: TK2MSFTNGXA02.phx.gblcode..>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>hi, i'm getting this error when ever i tr y to execute the followingrequest. ---> System.NullReferenceException: Object reference not set to an>can anyone help me with this ? thank you.
>System.Web.Services.Protocols.SoapException: Server was unable to process
instance of an object. at IDSSServer.IDSS.GetFileList(String fullpath) in
c:\inetpub\wwwroot\idssserver\idss.asmx.cs:line 92 --- End of inner
exception stack trace ---> [WebMethod]
> public string[] GetFileList(string fullpath)
> {
>return System.IO.Directory.GetFiles(FullPath);
>(Type your message here)
>}
>client side::
>service.GetFileList("C:\\Inetpub\\wwwroot\\doc" );
>i want to retrive all the files store in doc folder..
>--------------------------------
>From: ivy ivy
>-----------------------
>Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
><Id>YGN1egUVV0K5eUulMnOO8Q==</Id>
>Dan Rogers Guest
-
Dynamically loading user control into Placeholder gives Object reference not set to an instance of an object
I've created user controls that contain listboxes that are dynamically populated from the database. In the html view of the user control... -
Custom Control Problem :: Object reference not set to an instance of an object
Hi All! I have the following Custom Control file... '########### WebUserControl1.ascx ############# <%@ Control Language="vb"... -
Mysterious Error: Object reference not set to an instance of an object
Hi There! I'm having a mysterious error right after I login using Forms Authentication in my ASP.NET app. Below is the error... Exception... -
Exception Details: System.NullReferenceException: Object reference not set
Hey folks, Wow... After only 4 hours... I figured out the Index out of range error and now have run into the error below ... Any help would be... -
HELP! Error Loading ASPX : Object Reference not set to an instance object
Hello, When i run my aspx i get this weird error: System.NullReferenceException: Object reference not set to an instance of an object. at...



Reply With Quote

