TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dhall4biz
NA
8
0
VB.NET Web Service / Web Form Errors
Nov 29 2004 2:58 PM
I am having problems getting my web form (aspx file) reading a web service when published to my hosted web site (www.inflectionpoint.net). I can execute the web service (TestService.asmx) from both my local development environment (VS.NET 2004) and the hosted site. It generates the list of methods to select from and generates the resulting XML data (pulled from a remote database) when selecting a specific method. However, when I try to consume the XML data via a web form, I can only access the web form (TestServiceWebform.aspx) successfully from my _local_ development machine. When I publish the web form to the host site, I get various errors. **(See Error message below:)** Server Error in '/webservices/TestServiceWebApp' Application. -------------------------------------------------------------------------------- The request failed with HTTP status 404: Not Found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The request failed with HTTP status 404: Not Found. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [WebException: The request failed with HTTP status 404: Not Found.] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1294 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218 TestServiceWebApp.TestService.MyTestService.GetIssuesData() in c:\inetpub\wwwroot\TestServiceWebApp\Web References\TestService\Reference.vb:42 TestServiceWebApp.GetTestServiceData.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\TestServiceWebApp\TestServiceWebform.aspx.vb:40 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +742 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.947 **(End of Error message)** I suspect some of the issues are the folder/directory differences between my development and hosted environment (my local environment is "c:/localhost/TestServiceWebApp/" and my hosted environment is "http://inflectionpoint.net/webservices/TestServiceWebApp/", but that doesn't seem affect the XML web service application!) and/or how I am publishing the web form using FTP utility. XML Web service directory and file configuration: ../webservices/TestService/web.config ../webservices/TestService/TestService.asmx (and the rest of the VS project files) ../webservices/TestService/bin/TestService.dll ../webservices/TestService/bin/TestService.pdb Web Form/consumer directory and file configuration: ../webservices/TestServiceWebApp/web.config ../webservices/TestServiceWebApp/TestServiceWebform.aspx (and other VS project files) ../webservices/TestServiceWebApp/bin/TestServiceWebform.dll ../webservices/TestServiceWebApp/bin/TestServiceWebform.pdb I have moved the project files and web.config files all over the structure, with no success in getting the aspx file to work. The hosting service (CWI-Hosting) has confirmed they set up both application forlders as IIS Applications. I have searched all over for resolution to this type of issue. I suspect it may involve changing the Reference.Map or other configuration filesand/or their location in the folder structure. Many thanks.
Reply
Answers (
2
)
Keyboard shortcuts
Command/Immediate Window Error