BizTalk Server General - ASP.NET application and BTS2004 on the same windows server 2003

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > June 2004 > ASP.NET application and BTS2004 on the same windows server 2003





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ASP.NET application and BTS2004 on the same windows server 2003
Yves Peneveyre

2004-06-26, 10:51 am

Hello all,

I have a problem running an asp.net application on the same server I have
installed BizTalk Server 2004.

As I mentionned in the subject, the server is a Windows Server 2003 box.
The exception is not raised on a Windows Server 2003 without BTS2004 at all.


The asp.net C# code I have the problem with is the following :

private void Page_Load(object sender, System.EventArgs e)
{
DataSet dsContexts;
dsContexts = new DataSet();
dsContexts.ReadXml("http://localhost/WebApplication1/Domains.xml");
}

When I run this code, I get the following error :
-------------------
Specified argument was out of the range of valid values. Parameter name: The
specified value must be greater than 0.
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.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: The specified value
must be greater than 0.

Source Error:

Line 21: DataSet dsContexts;
Line 22: dsContexts = new DataSet();[vbcol=seagreen]
dsContexts.ReadXml("http://localhost/WebApplication1/Domains.xml");
Line 24: }
Line 25:
-------------------

The stack trace is :

[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +282
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlReader.MoveToContent() +75
System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) +145
System.Data.DataSet.ReadXml(String fileName) +63
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\webapplication1\webfo
rm1.aspx.cs:23
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750


I did not find anything about this kind of problem (BTS2004 help, MS
Knowledge base, etc).
Anybody could help me and tell me why it is not working well ?
Or, any clue ?

I thank you very much in advance for your help

Best Regards



Yves Peneveyre


Vladimir Tchalkov

2004-06-26, 10:51 am

This is a known bug in one of the updates of .NET framework (probably
BizTalk isntalls this update).
There is a posting in the microsoft.public.dotnet.framework newsgroup -
serach there for
"Internal problem on XmlDocument.Load( )."

You can either change the URI to file or unc path or set the connection
limit for localhost manually. I had the same problem and changed the web
site to load the xmls from local file paths.

Vladimir


"Yves Peneveyre" <ypeneveyre at lookware dot ch> wrote in message
news:eA4eqRcWEHA.208@TK2MSFTNGP10.phx.gbl...
> Hello all,
>
> I have a problem running an asp.net application on the same server I have
> installed BizTalk Server 2004.
>
> As I mentionned in the subject, the server is a Windows Server 2003 box.
> The exception is not raised on a Windows Server 2003 without BTS2004 at

all.
>
>
> The asp.net C# code I have the problem with is the following :
>
> private void Page_Load(object sender, System.EventArgs e)
> {
> DataSet dsContexts;
> dsContexts = new DataSet();
> dsContexts.ReadXml("http://localhost/WebApplication1/Domains.xml");
> }
>
> When I run this code, I get the following error :
> -------------------
> Specified argument was out of the range of valid values. Parameter name:

The
> specified value must be greater than 0.
> 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.ArgumentOutOfRangeException: Specified argument
> was out of the range of valid values. Parameter name: The specified value
> must be greater than 0.
>
> Source Error:
>
> Line 21: DataSet dsContexts;
> Line 22: dsContexts = new DataSet();
> dsContexts.ReadXml("http://localhost/WebApplication1/Domains.xml");
> Line 24: }
> Line 25:
> -------------------
>
> The stack trace is :
>
> [ArgumentOutOfRangeException: Specified argument was out of the range of
> valid values.
> Parameter name: The specified value must be greater than 0.]
> System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
> System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
> credentials) +282
> System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
> credentials) +94
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
> ofObjectToReturn) +55
> System.Xml.XmlTextReader.CreateScanner() +384
> System.Xml.XmlTextReader.Init() +23
> System.Xml.XmlTextReader.Read() +530
> System.Xml.XmlReader.MoveToContent() +75
> System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)

+145
> System.Data.DataSet.ReadXml(String fileName) +63
> WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\webapplication1\webfo
rm1.aspx.cs:23
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
>
>
> I did not find anything about this kind of problem (BTS2004 help, MS
> Knowledge base, etc).
> Anybody could help me and tell me why it is not working well ?
> Or, any clue ?
>
> I thank you very much in advance for your help
>
> Best Regards
>
>
>
> Yves Peneveyre
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com