Re: dotnet app doesn't run...
From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 01/15/05
- Next message: mrVithan: "Re: Compile a c# code at runtime"
- Previous message: William Stacey [MVP]: "Re: C# SMTP Component"
- In reply to: Roland Giesler: "Re: dotnet app doesn't run..."
- Next in thread: Roland Giesler: "Re: dotnet app doesn't run..."
- Reply: Roland Giesler: "Re: dotnet app doesn't run..."
- Messages sorted by: [ date ] [ thread ]
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
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: mrVithan: "Re: Compile a c# code at runtime"
- Previous message: William Stacey [MVP]: "Re: C# SMTP Component"
- In reply to: Roland Giesler: "Re: dotnet app doesn't run..."
- Next in thread: Roland Giesler: "Re: dotnet app doesn't run..."
- Reply: Roland Giesler: "Re: dotnet app doesn't run..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|