Deploying a web application

  • Thread starter Thread starter Jeremy Ames
  • Start date Start date
J

Jeremy Ames

I have created a web application that uses a custom control and a web
service on my local system. I have gotten all of the bugs worked out on my
local system and now it is time to move it to the sever. I have tried
copying all of the files and folders within my application folder. I have
even tried building a web setup and installing it on the server. The problem
that I am having is that my web service is still looking for the web service
files from the web services folder on my local system. How do I get it to
point to the production sever where I already have the service installed?
 
Hi,

When the web reference is created, there are couple of
settings,

1) Static
2) Dynamic

Static as the name suggests that the web service is
always hosted on same system like Microsoft.com,
Dyanamic, is more what your situation warrants, it
changes when you change your server like from your
localhost to your production server.

So change the web reference properties to Dynamic and
when you build the solution it automatically creates the
configuration file which will have a entry in the
appsettings to point to the specific web service. Thus,
this setting can be changed at any time...

Hope this helps...

Regards,
Prashant
 
That sounded like a great idea so I tried it. However, that didnot work. I
am getting the same error. Here is the error that I am receiving: The lines
that say \\FDFSYS02\\blahblahblah is what is registered as localhost.

Server Error in '/EmpRemoval' Application.
----------------------------------------------------------------------------
----

The underlying connection was closed: The remote name could not be resolved.
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 underlying connection was
closed: The remote name could not be resolved.

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 underlying connection was closed: The remote name could
not be resolved.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
+75
System.Net.HttpWebRequest.GetRequestStream() +132
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) +105
EmpRemoval.EmpSearch.EmployeeSearch.FindEmployee(String sEmpName) in
\\Fdfsys02\FMIS-Users\jwames\My Documents\My Projects\BEKGO1
Intranet\FoodNet\EmpRemoval\Web References\EmpSearch\Reference.cs:43
EmpRemoval.EmployeeSearch.Page_Load(Object sender, EventArgs e) in
\\fdfsys02\fmis-users\jwames\my documents\my projects\bekgo1
intranet\foodnet\empremoval\empsearch.aspx.cs:33
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731



----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Hi,

When the web reference is created, there are couple of
settings,

1) Static
2) Dynamic

Static as the name suggests that the web service is
always hosted on same system like Microsoft.com,
Dyanamic, is more what your situation warrants, it
changes when you change your server like from your
localhost to your production server.

So change the web reference properties to Dynamic and
when you build the solution it automatically creates the
configuration file which will have a entry in the
appsettings to point to the specific web service. Thus,
this setting can be changed at any time...

Hope this helps...

Regards,
Prashant
 
hi,

Possibly there is another solution, but.
First of all. Copy the compiled libraries (.dll) in a folder called "bin" in
the root of your website. The pages could be in any directory.
Second, open the web application with VS.NET the add a reference to the web
service published in the "real" website. Compile the application, the n publish
the .dll in the \bin directory of your website, then copy the .aspx in any
directory.

It is important to know that the \bin directory is a directory in the root of
the webserver no "inside" a folder.


--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
Ok, I have done that but I get the same error. In fact, when I finished
creating the web service, I compiled it and installed it on the server. I
then re-referenced the web service at it's new home once everything else was
complete.

I have noticed that in the properties of the webservice, the URL points to
localhost. This is a field that is uneditable. Is there a way I can behind
the protection and change it.
hi,

Possibly there is another solution, but.
First of all. Copy the compiled libraries (.dll) in a folder called "bin" in
the root of your website. The pages could be in any directory.
Second, open the web application with VS.NET the add a reference to the web
service published in the "real" website. Compile the application, the n
publish
the .dll in the \bin directory of your website, then copy the .aspx in any
directory.

It is important to know that the \bin directory is a directory in the root
of
the webserver no "inside" a folder.


--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
hi,

Open the web application (without the web service project)
In the web application, remove all the references to the web service then add a
Web Reference no a "simple" reference that point to the web service you have in
the website.
Compile, publish and... hope you can say: BINGO! ;-)

--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
Hi,

Couple of things,

1) While adding the web reference what is the path which
you have given...

2) Did it generate the config file when you gave the web
reference as dynamic and what is the appsettings in the
generated config file.

Regards,
Prashant
-----Original Message-----
That sounded like a great idea so I tried it. However, that didnot work. I
am getting the same error. Here is the error that I am receiving: The lines
that say \\FDFSYS02\\blahblahblah is what is registered as localhost.

Server Error in '/EmpRemoval' Application.
--------------------------------------------------------- -------------------
----

The underlying connection was closed: The remote name could not be resolved.
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 underlying connection was
closed: The remote name could not be resolved.

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 underlying connection was closed: The remote name could
not be resolved.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult)
+75
System.Net.HttpWebRequest.GetRequestStream() +132
System.Web.Services.Protocols.SoapHttpClientProtocol.Invok
e(String
methodName, Object[] parameters) +105
EmpRemoval.EmpSearch.EmployeeSearch.FindEmployee (String sEmpName) in
\\Fdfsys02\FMIS-Users\jwames\My Documents\My Projects\BEKGO1
Intranet\FoodNet\EmpRemoval\Web
References\EmpSearch\Reference.cs:43
EmpRemoval.EmployeeSearch.Page_Load(Object sender, EventArgs e) in
\\fdfsys02\fmis-users\jwames\my documents\my projects\bekgo1
intranet\foodnet\empremoval\empsearch.aspx.cs:33
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731



--------------------------------------------------------- -------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Hi,

When the web reference is created, there are couple of
settings,

1) Static
2) Dynamic

Static as the name suggests that the web service is
always hosted on same system like Microsoft.com,
Dyanamic, is more what your situation warrants, it
changes when you change your server like from your
localhost to your production server.

So change the web reference properties to Dynamic and
when you build the solution it automatically creates the
configuration file which will have a entry in the
appsettings to point to the specific web service. Thus,
this setting can be changed at any time...

Hope this helps...

Regards,
Prashant
-----Original Message-----
I have created a web application that uses a custom control and a web
service on my local system. I have gotten all of the bugs worked out on my
local system and now it is time to move it to the sever. I have tried
copying all of the files and folders within my application folder. I have
even tried building a web setup and installing it on the server. The problem
that I am having is that my web service is still looking for the web service
files from the web services folder on my local system. How do I get it to
point to the production sever where I already have the service installed?


.


.
 
1) http://foodnet/foodnetservices/service1.asmx

2) Yes it did generate the appsettings key and it reads:
<appSettings>
<add key="EmpRemoval.EmpSearch.EmployeeSearch"
p://foodnet/foodnetservices/service1.asmx"/>
</appSettings>

3) I did notice that the URL for the web reference is pointing to localhost,
but it is uneditable.


Hi,

Couple of things,

1) While adding the web reference what is the path which
you have given...

2) Did it generate the config file when you gave the web
reference as dynamic and what is the appsettings in the
generated config file.

Regards,
Prashant
-----Original Message-----
That sounded like a great idea so I tried it. However, that didnot work. I
am getting the same error. Here is the error that I am receiving: The lines
that say \\FDFSYS02\\blahblahblah is what is registered as localhost.

Server Error in '/EmpRemoval' Application.
--------------------------------------------------------- -------------------
----

The underlying connection was closed: The remote name could not be resolved.
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 underlying connection was
closed: The remote name could not be resolved.

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 underlying connection was closed: The remote name could
not be resolved.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult)
+75
System.Net.HttpWebRequest.GetRequestStream() +132
System.Web.Services.Protocols.SoapHttpClientProtocol.Invok
e(String
methodName, Object[] parameters) +105
EmpRemoval.EmpSearch.EmployeeSearch.FindEmployee (String sEmpName) in
\\Fdfsys02\FMIS-Users\jwames\My Documents\My Projects\BEKGO1
Intranet\FoodNet\EmpRemoval\Web
References\EmpSearch\Reference.cs:43
EmpRemoval.EmployeeSearch.Page_Load(Object sender, EventArgs e) in
\\fdfsys02\fmis-users\jwames\my documents\my projects\bekgo1
intranet\foodnet\empremoval\empsearch.aspx.cs:33
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731



--------------------------------------------------------- -------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Hi,

When the web reference is created, there are couple of
settings,

1) Static
2) Dynamic

Static as the name suggests that the web service is
always hosted on same system like Microsoft.com,
Dyanamic, is more what your situation warrants, it
changes when you change your server like from your
localhost to your production server.

So change the web reference properties to Dynamic and
when you build the solution it automatically creates the
configuration file which will have a entry in the
appsettings to point to the specific web service. Thus,
this setting can be changed at any time...

Hope this helps...

Regards,
Prashant
-----Original Message-----
I have created a web application that uses a custom control and a web
service on my local system. I have gotten all of the bugs worked out on my
local system and now it is time to move it to the sever. I have tried
copying all of the files and folders within my application folder. I have
even tried building a web setup and installing it on the server. The problem
that I am having is that my web service is still looking for the web service
files from the web services folder on my local system. How do I get it to
point to the production sever where I already have the service installed?


.


.
 
I am not really understanding what you are saying here. You want me to
remove the web reference from the web application, then add the web
reference back in as a "simple" reference? How do you do that?

hi,

Open the web application (without the web service project)
In the web application, remove all the references to the web service then
add a
Web Reference no a "simple" reference that point to the web service you have
in
the website.
Compile, publish and... hope you can say: BINGO! ;-)

--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
No, as you know yo can have the web service project and the web application as
a solution, and the reference to the web srevice can be done as a "normal"
reference.

What you must to be sure is to have in the web app is a Web reference to the
web service published in the "real" web site.

sorry for my English... I try to explain it the best way I can...

--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
Hi,

you should be able to change the url in a couple of ways,
1) either in VS.NET, which basically involves building
your solution again...
2) Best way is to change the URL in the config file which
is generated for you.

Regards,
Prashant
-----Original Message-----
1) http://foodnet/foodnetservices/service1.asmx

2) Yes it did generate the appsettings key and it reads:
<appSettings>
<add key="EmpRemoval.EmpSearch.EmployeeSearch"
p://foodnet/foodnetservices/service1.asmx"/>
</appSettings>

3) I did notice that the URL for the web reference is pointing to localhost,
but it is uneditable.


Hi,

Couple of things,

1) While adding the web reference what is the path which
you have given...

2) Did it generate the config file when you gave the web
reference as dynamic and what is the appsettings in the
generated config file.

Regards,
Prashant
-----Original Message-----
That sounded like a great idea so I tried it. However, that didnot work. I
am getting the same error. Here is the error that I am receiving: The lines
that say \\FDFSYS02\\blahblahblah is what is registered as localhost.

Server Error in '/EmpRemoval' Application.
--------------------------------------------------------
-
-------------------
----

The underlying connection was closed: The remote name could not be resolved.
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 underlying connection was
closed: The remote name could not be resolved.

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 underlying connection was closed: The remote name could
not be resolved.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult)
+75
System.Net.HttpWebRequest.GetRequestStream() +132
System.Web.Services.Protocols.SoapHttpClientProtocol.Invo
k
e(String
methodName, Object[] parameters) +105
EmpRemoval.EmpSearch.EmployeeSearch.FindEmployee (String sEmpName) in
\\Fdfsys02\FMIS-Users\jwames\My Documents\My Projects\BEKGO1
Intranet\FoodNet\EmpRemoval\Web
References\EmpSearch\Reference.cs:43
EmpRemoval.EmployeeSearch.Page_Load(Object sender, EventArgs e) in
\\fdfsys02\fmis-users\jwames\my documents\my projects\bekgo1
intranet\foodnet\empremoval\empsearch.aspx.cs:33
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731



--------------------------------------------------------
-
-------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Hi,

When the web reference is created, there are couple of
settings,

1) Static
2) Dynamic

Static as the name suggests that the web service is
always hosted on same system like Microsoft.com,
Dyanamic, is more what your situation warrants, it
changes when you change your server like from your
localhost to your production server.

So change the web reference properties to Dynamic and
when you build the solution it automatically creates the
configuration file which will have a entry in the
appsettings to point to the specific web service. Thus,
this setting can be changed at any time...

Hope this helps...

Regards,
Prashant
sever.
I have tried the
server. The problem looking
for the web service


.


.
 
Back
Top