473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Web App Deployment!

Hi All, I have a doubt on WS. Initial deployment of an asp.net app which
calls a websvc includes copying all the webreferences and proxy files
(including the .cs files of the proxy)
If I build a new version of the asp.net app and don't change anything in the
underlying WS or the way it calls it, do I have to copy over all the
webreferences again to the production box? or I can just copy the .dll file
of asp.net app in the bin? (if no aspx pages has changed)

TIA
Nov 16 '05 #1
4 1576
Vai2000,

I don't know why the cs files for the proxy need to be copied. You
should be able to just take the compiled dll for the proxy and place that in
your bin directory.

If you build a new version of the ASP.NET app, then you shouldn't need
to rebuild the proxy, you should be able to use the same one as is.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Vai2000" <no****@microsoft.com> wrote in message
news:Ox*************@TK2MSFTNGP15.phx.gbl...
Hi All, I have a doubt on WS. Initial deployment of an asp.net app which
calls a websvc includes copying all the webreferences and proxy files
(including the .cs files of the proxy)
If I build a new version of the asp.net app and don't change anything in
the
underlying WS or the way it calls it, do I have to copy over all the
webreferences again to the production box? or I can just copy the .dll
file
of asp.net app in the bin? (if no aspx pages has changed)

TIA

Nov 16 '05 #2
Hello Vai2000,
Hi All, I have a doubt on WS. Initial deployment of an asp.net app which
calls a websvc includes copying all the webreferences and proxy files
(including the .cs files of the proxy)
You can simply copy the .asmx files, the web.config, and the dll's in the
/bin directory. You do not need to copy the .cs files.
If I build a new version of the asp.net app and don't change anything in
the
underlying WS or the way it calls it, do I have to copy over all the
webreferences again to the production box?
You do not have to copy the web service files again.
or I can just copy the .dll file
of asp.net app in the bin? (if no aspx pages has changed)
It is a good idea to copy the aspx files if the version of the dll under the
aspx files changes. This is a "best practice" for configuration management.
However, there's no technical requirement if you believe that you didn't
make a mistake.

Note that the URL of the web service that you refer to in development may be
a different URL than the one you want to use in production. You can change
this in code (there are a couple of examples online for changing this by
simply looking up a new value and assigning it to the URL property of the
web service proxy object), or you can have the framework do it for you by
changing the URL Behavior property from Static to Dynamic, which allows the
framework to generate the code for you to look up the URL.

Here's a nice blog on the topic of dynamic URLs.
http://blog.magenic.com/jefff/archiv...08/06/264.aspx

This is also discussed in the following MSDN article
http://msdn.microsoft.com/library/en...lstudionet.asp
--
--- 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.
--
"Vai2000" <no****@microsoft.com> wrote in message
news:Ox*************@TK2MSFTNGP15.phx.gbl... Hi All, I have a doubt on WS. Initial deployment of an asp.net app which
calls a websvc includes copying all the webreferences and proxy files
(including the .cs files of the proxy)
If I build a new version of the asp.net app and don't change anything in
the
underlying WS or the way it calls it, do I have to copy over all the
webreferences again to the production box? or I can just copy the .dll
file
of asp.net app in the bin? (if no aspx pages has changed)

TIA

Nov 16 '05 #3
Thanks for all the feedback. Yes I have configured by WS to be dynamic and
inside the proxy .cs file I already use the property value from the config.
at Run Time. I am asking this question since recently we are experiencing
Timeout problem in calling the WebServices from the client.
"Underlying connection closed Request is canceled"
We did updated the ASPX Application and didn't changed anything to the
WebReferences as nothing was changed in the WS. reference in the code.

1 Last doubt so which files from the WebReference folder should be deployed
along with an ASPX App if that app is calling a WS?

TIA

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:Nf********************@comcast.com...
Hello Vai2000,
Hi All, I have a doubt on WS. Initial deployment of an asp.net app which
calls a websvc includes copying all the webreferences and proxy files
(including the .cs files of the proxy)
You can simply copy the .asmx files, the web.config, and the dll's in the
/bin directory. You do not need to copy the .cs files.
If I build a new version of the asp.net app and don't change anything in
the
underlying WS or the way it calls it, do I have to copy over all the
webreferences again to the production box?


You do not have to copy the web service files again.
or I can just copy the .dll file
of asp.net app in the bin? (if no aspx pages has changed)


It is a good idea to copy the aspx files if the version of the dll under

the aspx files changes. This is a "best practice" for configuration management. However, there's no technical requirement if you believe that you didn't
make a mistake.

Note that the URL of the web service that you refer to in development may be a different URL than the one you want to use in production. You can change this in code (there are a couple of examples online for changing this by
simply looking up a new value and assigning it to the URL property of the
web service proxy object), or you can have the framework do it for you by
changing the URL Behavior property from Static to Dynamic, which allows the framework to generate the code for you to look up the URL.

Here's a nice blog on the topic of dynamic URLs.
http://blog.magenic.com/jefff/archiv...08/06/264.aspx

This is also discussed in the following MSDN article
http://msdn.microsoft.com/library/en...lstudionet.asp --
--- 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.
--
"Vai2000" <no****@microsoft.com> wrote in message
news:Ox*************@TK2MSFTNGP15.phx.gbl...
Hi All, I have a doubt on WS. Initial deployment of an asp.net app which
calls a websvc includes copying all the webreferences and proxy files
(including the .cs files of the proxy)
If I build a new version of the asp.net app and don't change anything in
the
underlying WS or the way it calls it, do I have to copy over all the
webreferences again to the production box? or I can just copy the .dll
file
of asp.net app in the bin? (if no aspx pages has changed)

TIA


Nov 16 '05 #4
updating a web service is an interesting issue in debugging due to ASP.Net
caching. Make sure to update the web.config, or refresh the app pool,
between updating the pages and testing the app. Otherwise, you may change
the code, and not see the change!
which files from the WebReference folder should be deployed
along with an ASPX App if that app is calling a WS?
none of them. this folder is used by Visual Studio, not ASP.Net. VS uses
these files to create code. That code is compiled into your dll.

--
--- 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.
--
"Vai2000" <no****@microsoft.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl... Thanks for all the feedback. Yes I have configured by WS to be dynamic and
inside the proxy .cs file I already use the property value from the
config.
at Run Time. I am asking this question since recently we are experiencing
Timeout problem in calling the WebServices from the client.
"Underlying connection closed Request is canceled"
We did updated the ASPX Application and didn't changed anything to the
WebReferences as nothing was changed in the WS. reference in the code.

1 Last doubt so which files from the WebReference folder should be
deployed
along with an ASPX App if that app is calling a WS?

TIA

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:Nf********************@comcast.com...
Hello Vai2000,
> Hi All, I have a doubt on WS. Initial deployment of an asp.net app
> which
> calls a websvc includes copying all the webreferences and proxy files
> (including the .cs files of the proxy)


You can simply copy the .asmx files, the web.config, and the dll's in the
/bin directory. You do not need to copy the .cs files.
> If I build a new version of the asp.net app and don't change anything
> in
> the
> underlying WS or the way it calls it, do I have to copy over all the
> webreferences again to the production box?


You do not have to copy the web service files again.
> or I can just copy the .dll file
> of asp.net app in the bin? (if no aspx pages has changed)


It is a good idea to copy the aspx files if the version of the dll under

the
aspx files changes. This is a "best practice" for configuration

management.
However, there's no technical requirement if you believe that you didn't
make a mistake.

Note that the URL of the web service that you refer to in development may

be
a different URL than the one you want to use in production. You can

change
this in code (there are a couple of examples online for changing this by
simply looking up a new value and assigning it to the URL property of the
web service proxy object), or you can have the framework do it for you by
changing the URL Behavior property from Static to Dynamic, which allows

the
framework to generate the code for you to look up the URL.

Here's a nice blog on the topic of dynamic URLs.
http://blog.magenic.com/jefff/archiv...08/06/264.aspx

This is also discussed in the following MSDN article

http://msdn.microsoft.com/library/en...lstudionet.asp
--
--- 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.
--
"Vai2000" <no****@microsoft.com> wrote in message
news:Ox*************@TK2MSFTNGP15.phx.gbl...
> Hi All, I have a doubt on WS. Initial deployment of an asp.net app
> which
> calls a websvc includes copying all the webreferences and proxy files
> (including the .cs files of the proxy)
> If I build a new version of the asp.net app and don't change anything
> in
> the
> underlying WS or the way it calls it, do I have to copy over all the
> webreferences again to the production box? or I can just copy the .dll
> file
> of asp.net app in the bin? (if no aspx pages has changed)
>
> TIA
>
>



Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Felix | last post by:
Out of no where I'm starting to get these problems and my Deployment projects won't build anymore. Does anyone have any idea what's causing this? I've tried copying these files from another...
0
by: Mystery Man | last post by:
We want to deploy a large CSharp/SQL Server system. We are successfully using the 'setup project' (under setup and deployment projects) to build our deployed system. With our stored...
4
by: wobbles | last post by:
Hi Everyone, I'm really struggling to get no-touch deployment to work well (if at all, in some cases). Can anyone recommend a good book on this topic? There seem to be a lot of blogs about...
3
by: Steve Brecher | last post by:
VS.NET help on deployment indicates that, while using a deployment project requires administrative access to IIS, " we recommend deploying your project in most cases, because it allows you to take...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: al | last post by:
Hi, Can someone please tell me what is exactly zero deployment in VB.NET. Is it that .NET doesn't need to deal with the registry? If that is the case, then why MS introduced class registry? ...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.