Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2007

Tip: Looking for answers? Try searching our database.

Webservice error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shantanu - 10 Aug 2007 05:23 GMT
Server was unable to process request. --> Access to the path "\
\172.21.142.228\Downloaded Software\Downloads\VersionServer.txt"
is denied.
Egghead - 10 Aug 2007 14:55 GMT
????

Signature

cheers,
RL

> Server was unable to process request. --> Access to the path "\
> \172.21.142.228\Downloaded Software\Downloads\VersionServer.txt"
> is denied.
Laurent Bugnion, MVP - 12 Aug 2007 10:44 GMT
Hi,

> 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
Signature

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

shantanu - 13 Aug 2007 08:01 GMT
On Aug 12, 2:44 pm, "Laurent Bugnion, MVP" <galasoft...@bluewin.ch>
wrote:
> Hi,
>
[quoted text clipped - 14 lines]
> 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);
            }
        }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.