dotnet app doesn't run...

  • Thread starter Thread starter Roland Giesler
  • Start date Start date
R

Roland Giesler

Roland Giesler said:
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
 
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
 
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.

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.

--
--- 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 said:
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 said:
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.
 
Nick Malik said:
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 said:
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 said:
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.
server,
but
can't get it to run. It's a C# .net web application, which
accesses
a install,
etc
 
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 said:
Nick Malik said:
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 said:
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


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

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
 
Since the developer has left the company, I can make the changes myself.
I'm actuially here continue development of this app and it's database, but
first it has to run properly in it's current form, something that has eluded
me this far.... :-(

I'll mail you as soon as I'm made the change.

regards,
Roland
 
The problem has been resolved. The app does a login into SQL server
somewhere in the early stages of starting up. It uses ADO.net, but SQL
server never had the ASPNET user added to it's security config, which caused
the problem to manifest differently on WindowsXP than Windows 2000. Since
adding the local machine's ASPNET user to SQL Server, everything works 100%

regards,
Roland Giesler
Stellenbosch
South Africa


Roland Giesler said:
Since the developer has left the company, I can make the changes myself.
I'm actuially here continue development of this app and it's database, but
first it has to run properly in it's current form, something that has eluded
me this far.... :-(

I'll mail you as soon as I'm made the change.

regards,
Roland

Nick Malik said:
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);
 
Back
Top