Re: dotnet app doesn't run...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 01/15/05


Date: Sat, 15 Jan 2005 08:51:00 -0800

hello Roland,

can you get the developer to fix his app so that it refers to the config
file for the URL of the web service?

It is a simple change to make. In every place in the code (on the calling
side) where you create an object of the types exposed by the web service,
you insert a single line of code:

   MyWebObject wo = new MyWebObject();

   wo.Url = ConfigurationSettings.AppSettings["WebServicePath"]; // <--
the new line to be added

   wo.CallTheMethodNow(yada,yada,yada);

-- 
--- Nick Malik [Microsoft]
    MCSD, CFPS, Certified Scrummaster
    http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
   I do not answer questions on behalf of my employer.  I'm just a
programmer helping programmers.
--
"Roland Giesler" <roland@giesler.za.net.nospam> wrote in message
news:eTm8All%23EHA.2180@TK2MSFTNGP10.phx.gbl...
> "Nick Malik [Microsoft]" <nickmalik@hotmail.nospam.com> wrote in message
> news:D-6dnbjZ0qz6RXrcRVn-jA@comcast.com...
> > Your app is calling a web service.  It cannot find the web service,
> probably
> > because the app's web.config file should be set to point at it, and you
> have
> > not modified the web.config appropriately.
> >
> > It is possible that the developer didn't code the application correctly,
> and
> > it is not referring to a web.config file to get the URL of the web
> service.
> > In that case, you will probably need to make sure that the virtual
> directory
> > that contains the web service has the same name as the application
expects
> > it to have.
> You're right, the developer hardcoded the path, but I have spoken to him
at
> length and insists all the paths are correct.  He doesn't know why it
> doesn't work now, since it did before.
>
> >
> > BTW: I don't know why anyone would suggest that you browse anything at
> > tempuri.org... it's a fake address.  I don't know how or why you made it
> > work, because you say that it does work.  It shouldn't work.
> The URL resolves and shows a web page with informaiton about namespaces,
so
> it resolves, but I understand that it's just there for humans reading it,
> not for computers software to actualy access.
>
> I'm re-installing the server at the moment, hoping that somehow I can
solve
> the problem.  I've had very few responses on the topic both on newsgroups
> and web support  forums.
>
> Regards
>
> Roland
>
> >
> > --
> > --- Nick Malik [Microsoft]
> >     MCSD, CFPS, Certified Scrummaster
> >     http://blogs.msdn.com/nickmalik
> >
> > Disclaimer: Opinions expressed in this forum are my own, and not
> > representative of my employer.
> >    I do not answer questions on behalf of my employer.  I'm just a
> > programmer helping programmers.
> > --
> > "Roland Giesler" <roland@giesler.za.net.nospam> wrote in message
> > news:%23$Tzd8h%23EHA.2608@TK2MSFTNGP10.phx.gbl...
> > > Nick, I did what you suggested, but it makes not difference.
> > > Have a look at what someone elsewhere suggested and what I reported
> > >
> > > > Make sure you can browse
> > > http://localhost/Dominican/DominicanServices/Users.asmx...
> > > > If not create an virtual directory name [Dominican] on your IIS and
> > point
> > > it to your project
> > > > and browse it again...
> > >
> > > > Also make sure you are able to browse
> > > http://tempuri.org/GetAuthenticatedUserData from the server.
> > >
> > > I  can both browse http://tempuri.org/GetAuthenticatedUserData and
> > > http://localhost/Dominican/DominicanServices/Users.asmx.  If I click
> > > GetAuthenticatedUserData on the users page, it's prompts me for the
> three
> > > parameters required by the web service.  It all appears 100% correct.
> > >
> > > Any other things I can check?
> > >
> > > Roland
> > >
> > >
> > > "Nick Malik [Microsoft]" <nickmalik@hotmail.nospam.com> wrote in
message
> > > news:8K6dnei4HKIIp3vcRVn-oQ@comcast.com...
> > > > you may need to reregister ASP.NET.
> > > >
> > > > see http://support.microsoft.com/default.aspx?scid=kb;en-us;306005
> > > >
> > > > --
> > > > --- Nick Malik [Microsoft]
> > > >     MCSD, CFPS, Certified Scrummaster
> > > >     http://blogs.msdn.com/nickmalik
> > > >
> > > > Disclaimer: Opinions expressed in this forum are my own, and not
> > > > representative of my employer.
> > > >    I do not answer questions on behalf of my employer.  I'm just a
> > > > programmer helping programmers.
> > > > --
> > > > "Roland Giesler" <roland@giesler.za.net.nospam> wrote in message
> > > > news:%23d76o0M%23EHA.1084@tk2msftngp13.phx.gbl...
> > > > >
> > > > > "Roland Giesler" <roland@giesler.za.net.nospam> wrote in message
> > > > > news:#P$nS6I#EHA.3592@TK2MSFTNGP09.phx.gbl...
> > > > > > I have an CS app that I had to re-install after rebuilding a
> server,
> > > but
> > > > > > can't get it to run.  It's a C# .net web application, which
> accesses
> > a
> > > > SQL
> > > > > > server DB.  When the page is loaded it crashes in a file
> > > .\Dominican\Web
> > > > > > References\Users\Reference.cs.  This file is auto created by
> Visual
> > > > Studio
> > > > > > and has a number of calls implemented,
"GetAuthenticatedUserData"
> > > being
> > > > > the
> > > > > > one that is not found, so IIS gives the error 404.
> > > > > >
> > > > > > My env is Windows 2000 AS, with SQL Server EE, MDAC 2.8, .Net FW
> 1.1
> > > > with
> > > > > > all service packs installed and all patches loaded.
> > > > > >
> > > > > > This app ran before, all the files are there, the two
applications
> > > > > > (dominican.dll and docinicanservices.dll) are both installed as
> > > > > applications
> > > > > > in IIS.
> > > > > >
> > > > > > I've attached screenshots of the IIS config, just to give a
better
> > > > picture
> > > > > > of what the setup looks like.
> > > > > >
> > > > > > The Code that doesn't run is in the reference.cs file, line 37.
> > > > > >
> > > > > > Question: Is there something else I have to load, register,
> install,
> > > etc
> > > > > to
> > > > > > get these calls to be succesful. It seems it's in
> > system.web.services.
> > > > > where
> > > > > > this is located, but I cannot find this?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > Roland
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Re: passing datasets?
    ... really liked passing Xml that much because it's not strongly typed. ... makes the developer experience much richer and of course supports the SOA ... DataSet becomes available or different platform consumes the web service), ... so you set up a web service consumer that can receive a ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: dotnet app doesnt run...
    ... Your app is calling a web service. ... I do not answer questions on behalf of my employer. ... "Roland Giesler" wrote in message ... >> programmer helping programmers. ...
    (microsoft.public.dotnet.framework)
  • Re: Crazy ASP.NET ERROR. dpwnnjmk.dll???
    ... Call to web service from Windows continues to work ... the call to local web service from local ... ASP.NET on developer machines worked again. ... >> Boolean isStringized, Evidence assemblySecurity, Boolean ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: A newbie question
    ... In msc# I use Remoting/MCF. ... I've developed and used web service in delphi. ... And I've developer a ppc application with .Net cf 2.0 that uses http ...
    (comp.lang.java.programmer)
  • How complex is this, really?
    ... I have been a Window application developer for over 13 years. ... My thought now is to leverage SQL Server Compact 3.5, Sync Services, ... All the web service would be doing is keeping four ...
    (microsoft.public.dotnet.framework.aspnet)