Showing posts with label connect. Show all posts
Showing posts with label connect. Show all posts

Monday, March 26, 2012

Strange error

Hello everyone,

I have a C# web aplication that uses ASP.NET as FRONT END and for the Logical and Data Layers i have Webservices that connect to SQL and use stored procedures.

From time to time when i open my browser and run the application either for test or to show something to someone i get this Error

--> COPY PASTE <--

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

Server was unable to process request. --> General network error. Check your network documentation.
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.Web.Services.Protocols.SoapException: Server was unable to process request. --> General network error. Check your network documentation.

Source Error:

Line 297: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.cpin.pt/webservices/GetLinguagens", RequestNamespace="http://www.cpin.pt/webservices", ResponseNamespace="http://www.cpin.pt/webservices", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 298: public System.Data.DataSet GetLinguagens() {
Line 299: object[] results = this.Invoke("GetLinguagens", new object[0]);
Line 300: return ((System.Data.DataSet)(results[0]));
Line 301: }

Source File: f:\webserver\cpin\web references\core\reference.cs Line: 299

Stack Trace:

[SoapException: Server was unable to process request. --> General network error. Check your network documentation.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1489
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
Cpin.Core.CoreWS.GetLinguagens() in f:\webserver\cpin\web references\core\reference.cs:299
Cpin.MainPage.Page_Load(Object sender, EventArgs e) in f:\webserver\cpin\default.aspx.cs:31
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

--> END OF COPY PASTE <--

I can't figure out why i get this error :(

Just for the record if i refresh it either apears again or just works wonderfuly till next time...

All my network works fine... just this wierd error...

Don't know what to do. Anyone has an idea?

RegardsI had this same problem. Sometimes my page worked, othertimes it failed.

It turned out that I was compiling my app against a different version of the .NET framework than that used on the server to which I deployed my app.

So, check whether your local framework version is the same as that on the remote machine that is deploying your app (or exposing your web services, in this case).
Hello mate, thanks for your post.

Everything is running the version that is posted in the last line of the error.

:/ Any other ideas?
I don't have an answer, but I have three suggestions.

First, since a web service is, by definition, on a computer other than your own, you cannot presume that web service will always be available (unlike a local DLL which you can presume to be there). So, any web service requestsmust be wrapped in a Try/Catch exception handler ... with the Catch providing the response "web service currently unavailable". Particularly if, as you mention, you are showing your app/service to someone, a friendly error message is much more professional than an unhandled exception.

Second, the error message mentions an Asynchronous switch. Thinking along those lines, if your refreshing sometimes works and othertimes doesn't work, perhaps your app and your web service are getting out of synch? Microsoft'sApplication Architecture for .NET: Designing Applications and Services talks about controlling caching, synchronicity and messaging in web services. It's an incredibly helpful planning document, so download it for reference even if you find an easy fix for your current problem.

Third, your error message is SOAP-specific, so you might try asking your question atthis forum. I don't think this counts as a Getting Started newbie question :)

Thursday, March 22, 2012

Strange IIS Problem

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
What could be the probable cause of this eccentricity & how do I
resolve it?
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!On Mar 1, 3:19 am, r...@.rediffmail.com wrote:
> I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
> run ASP applications. I connect to the Internet using a LAN
> connection. My PC is a standalone machine.
> Of late, what I find is if I am not connected to the Internet, it
> takes quite some time for local intranet ASP pages (that physically
> reside in my PC) to get downloaded completely but if I am connected to
> the Internet, then the same ASP pages get downloaded in a jiffy. Since
> last 2-3 days, I have been noticing this strange problem. Earlier
> local intranet ASP pages would get downloaded within no time
> irrespective of whether I was connected to the Internet or not.
> What could be the probable cause of this eccentricity & how do I
> resolve it?
> Please note that I have been working with the same setup (i.e. same IP
> address to connect to the Internet, same ports etc.) since last 3-4
> years but this is the first time I am encountering this problem.
> Another petty discrepancy - usually whenever IE is opened (assuming
> that the home page is set to 'about :blank'), the right-hand side of
> the Status Bar shows the text 'Internet'. When a ASP page on the local
> intranet is accessed, the text on the right-hand side of the Status
> Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
> that even if a ASP page on the local intranet is accessed in IE, the
> text on the right-hand side of the Status Bar still remains
> 'Internet'; it doesn't change to 'Local Intranet'!
let's assume that it's not related to ASP.NET :-)
It seems that you need to check LAN Settings in IE - Tools - Internet
Options. I think you should bypass proxy for local sites and except
the local addresses (for example 10.* if your intranet IP starts from
10.*)

Strange IIS Problem

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.

Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.

What could be the probable cause of this eccentricity & how do I
resolve it?

Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.

Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!On Mar 1, 3:19 am, r...@.rediffmail.com wrote:

Quote:

Originally Posted by

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
>
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
>
What could be the probable cause of this eccentricity & how do I
resolve it?
>
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
>
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!


let's assume that it's not related to ASP.NET :-)

It seems that you need to check LAN Settings in IE - Tools - Internet
Options. I think you should bypass proxy for local sites and except
the local addresses (for example 10.* if your intranet IP starts from
10.*)
I've been getting the exact same problem myself...IIS 5.1 is dog slow to return a localhost page.

Also started in the last few days. I've been searching all over to find a solution but no luck..

Seems to be tied into display of images, as htm pages with no images come up quickly.

Hope somebody who has found an answer, sees this.

<rn5a@.rediffmail.comwrote in message news:1172715577.007290.38550@.z35g2000cwz.googlegro ups.com...

Quote:

Originally Posted by

>I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
>
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
>
What could be the probable cause of this eccentricity & how do I
resolve it?
>
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
>
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!
>