B
blekros
Group,
Back in VS 2003 .NET 1.1 days, I used to create a special dll xml
configuration file to hold my web reference URL and load it from
there.
After loading VS2005 .NET 2.0, lo, there it is a dynamic web reference
that puts itself in its own <dllname.dll>.config file.
Does this mean that I can do the obvious, set the URL in the
<dllname>config file and during deployment?
No, apparently it doesn't.
After a day of twiddling with serialization assemblies on/off, debug,
optimize settings, build after flippin' build, there is no way on
god's green earth that <dllname.dll>.config is ever loaded and the web
reference url generated from that file. I might as well delete this
file or remove it from the deployment content because again, and I
cannot stress this enough, DOES NOT APPEAR TO EVER BE OPENED AND READ
WHEN THE DLL IS LOADED.
Solution? Go to the microsoft forums and find out, well, yes, Brad,
recreate your homegrown dll configuration scenario and SET THE URL
PROPERTY IN THE CLASS LIBRARY that wraps the web service EVEN THOUGH
the dynamic web reference property is set. Gee, why didn't *I* think
of that BEFORE my project was due.
Ok, steam vented.
MS Experts, what is going on?
Walk me through this from the bottom to the top. A dll exists. An
application, in this case, a compiled class on an ASP.NET website has
a reference to this DLL.
Start from the class loader when my class with the web reference and
its dll are loaded into the framework. What is happening? If there
is a serialization DLL, what is happening? If there is a
<dllname.dll>.config, when is it EVER read? When is it ever NOT
read? The 404 message refers to a reference.cs. No reference.cs has
ever seen the light of day in solution view, class view, any view in
VS2005.
Sorry for the whining tone, but imagine my surprise when I deployed a
project (on-site, travel expenses included) only to have it go all 404
when the 3 tiers were actually split onto three separate machines.
Gee Wally, then the big kids got all mad that their project had to be
pushed out until the following week, causing the CIO to get fired,
their stock to plummet and 10,000 people laid off, and me to get
kicked off the team.
Thanks,
Brad
Back in VS 2003 .NET 1.1 days, I used to create a special dll xml
configuration file to hold my web reference URL and load it from
there.
After loading VS2005 .NET 2.0, lo, there it is a dynamic web reference
that puts itself in its own <dllname.dll>.config file.
Does this mean that I can do the obvious, set the URL in the
<dllname>config file and during deployment?
No, apparently it doesn't.
After a day of twiddling with serialization assemblies on/off, debug,
optimize settings, build after flippin' build, there is no way on
god's green earth that <dllname.dll>.config is ever loaded and the web
reference url generated from that file. I might as well delete this
file or remove it from the deployment content because again, and I
cannot stress this enough, DOES NOT APPEAR TO EVER BE OPENED AND READ
WHEN THE DLL IS LOADED.
Solution? Go to the microsoft forums and find out, well, yes, Brad,
recreate your homegrown dll configuration scenario and SET THE URL
PROPERTY IN THE CLASS LIBRARY that wraps the web service EVEN THOUGH
the dynamic web reference property is set. Gee, why didn't *I* think
of that BEFORE my project was due.
Ok, steam vented.
MS Experts, what is going on?
Walk me through this from the bottom to the top. A dll exists. An
application, in this case, a compiled class on an ASP.NET website has
a reference to this DLL.
Start from the class loader when my class with the web reference and
its dll are loaded into the framework. What is happening? If there
is a serialization DLL, what is happening? If there is a
<dllname.dll>.config, when is it EVER read? When is it ever NOT
read? The 404 message refers to a reference.cs. No reference.cs has
ever seen the light of day in solution view, class view, any view in
VS2005.
Sorry for the whining tone, but imagine my surprise when I deployed a
project (on-site, travel expenses included) only to have it go all 404
when the 3 tiers were actually split onto three separate machines.
Gee Wally, then the big kids got all mad that their project had to be
pushed out until the following week, causing the CIO to get fired,
their stock to plummet and 10,000 people laid off, and me to get
kicked off the team.
Thanks,
Brad