DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 09 Aug 2007 21:23:07 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    shantanu
          2    Egghead
          3    Laurent Bugnion, MVP
          4    shantanu


Webservice error   
Server was unable to process request. --> Access to the path "\
\172.21.142.228\Downloaded Software\Downloads\VersionServer.txt"
is denied.
Date:Thu, 09 Aug 2007 21:23:07 -0700   Author:  

Re: Webservice error   
????

-- 
cheers,
RL
"shantanu"  wrote in message 
news:1186719787.859183.73640@x35g2000prf.googlegroups.com...

> Server was unable to process request. --> Access to the path "\
> \172.21.142.228\Downloaded Software\Downloads\VersionServer.txt"
> is denied.
> 
Date:Fri, 10 Aug 2007 07:55:07 -0600   Author:  

Re: Webservice error   
Hi,

shantanu wrote:

> Server was unable to process request. --> Access to the path "\
> \172.21.142.228\Downloaded Software\Downloads\VersionServer.txt"
> is denied.


That's a bit short, but... make sure that your ASPNET process has read 
(or read-write, depending what you do) to that file. Remember that 
ASP.NET doesn't run under the currently logged-in user, but has its own 
account.

HTH,
Laurent
-- 
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Date:Sun, 12 Aug 2007 11:44:52 +0200   Author:  

Re: Webservice error   
On Aug 12, 2:44 pm, "Laurent Bugnion, MVP" 
wrote:

> Hi,
>
> shantanu wrote:
> > Server was unable to process request. --> Access to the path "\
> > \172.21.142.228\Downloaded Software\Downloads\VersionServer.txt"
> > is denied.
>
> That's a bit short, but... make sure that your ASPNET process has read
> (or read-write, depending what you do) to that file. Remember that
> ASP.NET doesn't run under the currently logged-in user, but has its own
> account.
>
> HTH,
> Laurent
> --
> Laurent Bugnion [MVP ASP.NET]
> Software engineering, Blog:http://www.galasoft.ch
> PhotoAlbum:http://www.galasoft.ch/pictures
> Support children in Calcutta:http://www.calcutta-espoir.ch


thanks for the reply
sorry for such a short post



actually i was writing a webservice to read a text file from the
server.........i am shering the code. On executing the code from a
client pc the error is generated What can be the possible reason also
how to give the ASP.NET permissions.


[WebMethod]
		public string CheckVersion()//
		{
			try
			{
				string VerServer="";
				string VerClient="";



				System.IO.TextReader trServer = new System.IO.StreamReader(@"\
\172.21.142.228\Downloaded Software\Downloads\VersionServer.txt");
				VerServer = trServer.ReadLine();
				trServer.Close();

				System.IO.TextReader trClient = new System.IO.StreamReader(@"C:\PRP
\VersionClient.txt");
				VerClient = trClient.ReadLine();
				trClient.Close();

				if(VerServer!=VerClient)
				{
//					System.Net.WebClient Wclt = new System.Net.WebClient();
//                    Wclt.Credentials = netCred;
//					Wclt.DownloadFile(@"http://fsdgurgaon:8000/FileSystems/
DownloadItem.aspx?filepath=E:\Downloaded Software\Downloads
\PRPSetup.msi",@"C:/PRP/PRPSetup.msi");

//					System.IO.TextWriter twrClient = new System.IO.StreamWriter(@"C:
\PRP\VersionClient.txt");
//					twrClient.WriteLine(VerServer);
//					twrClient.Close();

					status = "true";

					return(status);
				}
				else
				{
					status = "false";
					return(status);
				}
			}
			catch(Exception	Ex)
			{
				status = Ex.Message.ToString();
				return(status);
			}
		}
Date:Mon, 13 Aug 2007 07:01:29 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us