web services/winforms - 404 not found HELP!

I have created a simple c# winforms application that attaches to a webservice and makes a simple function call. All works fine on my local pc, however when I run the same application off of another XP machine on a shared drive I get "The request failed with HTTP Status 404: Not Found."?

It works find and prints out the message box on the local machine, is there something that I need to do in order for the other XP machine to use the application?

Thanks
pjjcAsked:
Who is Participating?
 
surajgupthaConnect With a Mentor Commented:
If you try running an application from a share there would be security exceptions. You might want to lossen up the security. Here is a link about how to do it

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=556984&SiteID=1
0
 
surajgupthaCommented:
Have you changed the address of the webservice? Previously the win app might have been sending a reuqest to localhost, it should now point to the machine name.
0
 
pjjcAuthor Commented:
The web service is on the shares computer, which is the HOST (as I am using vmware to simulate another pc). VMWare is the pc that is accessing the HOSTS computer share which has the webservice on it. Where would I change it to reflect any ip change - would this be the problem?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
surajgupthaCommented:
Check the app.config file and change what might be localhost to the actual machine name of the machine hosting the web service.

If you are using a Virtual computer then that computer may not be able to access the host computer until you enable networking in the VM ware settings.

I think Only if you do these two things you should be able to get a response from a webservice on ur computer when you are trying to access it from a Virual computer
0
 
pjjcAuthor Commented:
I Changed the web.config file line that says:             <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>

to actually specify:             <sessionState mode="InProc" stateConnectionString="tcpip=PCLaptop2:42424" sqlConnectionString="data source=PCLaptop2;Trusted_Connection=yes" cookieless="false" timeout="20"/>

I also changed the web reference to point to the exact machine name PCLAPTOP2, and this works if I copy the exe file local to the Virutal machine (it connects to the HOST and uses the webservice), however if I try and run it off of the share it comes up with a problem of : request for the permission of type 'System.Net.WebPermission...' failed error.

ANY CLUE what I can do?

0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
All Courses

From novice to tech pro — start learning today.