Showing posts with label comgt. Show all posts
Showing posts with label comgt. Show all posts

Saturday, March 24, 2012

System.Net.Webclient screen scraping: how to gracefully handle 403 (and other) er

Understand try/catch generally. What event(s) should I be trying to catch?
Thank you,
-KF
"bruce barker" <nospam@dotnet.itags.org.nospam.com> wrote in message
news:%23F79bSINHHA.3288@dotnet.itags.org.TK2MSFTNGP03.phx.gbl...
> please read chapter on try/catch
> -- bruce (sqlwork.com)
> kenfine@dotnet.itags.org.nospam.nospam wrote:For webclient or HttpWebRequest, it normally will throw a
System.Net.WebException, however, any exception can be handled by the super
class "Exception". So you can use either
try
{
}catch(Exception)
{
}
or
try
{
}catch(WebException)
{
}
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Tuesday, March 13, 2012

'System.ServiceModel/ServiceHostingEnvironment' configuration section cannot be c

On Jun 5, 11:22 pm, "Sachin" <Sachi...@dotnet.itags.org.Email.com> wrote:
> On both server its .NET 2.0
>
Did you installed the .NET 3.0 on the Server2?No.
This is what I get at the bottom of the error page.
Version Information: Microsoft .NET Framework Version: 2.0.50727.42; ASP.NET
Version:2.0.50727.210
"Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
news:1181079744.934238.48060@.q66g2000hsg.googlegroups.com...
> On Jun 5, 11:22 pm, "Sachin" <Sachi...@.Email.com> wrote:
> Did you installed the .NET 3.0 on the Server2?
>
re:
!> This is what I get at the bottom of the error page.
!> Version Information: Microsoft .NET Framework Version: 2.0.50727.42;
!> ASP.NET Version:2.0.50727.210
That looks like a W2K3 R2 install on Server2. Is it ?
Is it the same version which is installed on Server1 ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Sachin" <SachinGp@.Email.com> wrote in message news:uX0uSz7pHHA.3892@.TK2MSFTNGP05.phx.gbl..
.
> No.

> This is what I get at the bottom of the error page.
> Version Information: Microsoft .NET Framework Version: 2.0.50727.42; ASP.NET Versi
on:2.0.50727.210
> "Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
> news:1181079744.934238.48060@.q66g2000hsg.googlegroups.com...

'System.ServiceModel/ServiceHostingEnvironment' configuration section cannot be c

On Jun 5, 10:10 pm, "Sachin" <Sachi...@dotnet.itags.org.Email.com> wrote:
> Hi All,
> I deployed an ASP.NET Web Service on Server1 and it worked fine.
> However when I deployed the same Web Service on Server2 I am getting the
> following error,
> The 'System.ServiceModel/ServiceHostingEnvironment' configuration section
> cannot be created.
> The Machin.config file is missing information.
> Verify that this configuration section is properly registered and that you
> have correctly splled the section name.
> For Windoes Communication Foundation sections, run ServiceModelReg.exe -i
to
> fix this error.
> ...................
> I never saw this error. What could be wrong?
> Any pointer?
> Thanks in advance
> Sachin
Verify the version of ASP.NET.
aspnet_regiis -ls
aspnet_regiis -i
etc...On both server its .NET 2.0
"Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
news:1181074886.601979.301780@.n4g2000hsb.googlegroups.com...
> On Jun 5, 10:10 pm, "Sachin" <Sachi...@.Email.com> wrote:
> Verify the version of ASP.NET.
> aspnet_regiis -ls
> aspnet_regiis -i
> etc...
>