Skip to content

Commit 8f12dd8

Browse files
authored
fix exceptionmessage invalid code languages errors
1 parent 801a39b commit 8f12dd8

File tree

1 file changed

+100
-99
lines changed

1 file changed

+100
-99
lines changed

controls/scheduler/troubleshooting/pdf-export.md

Lines changed: 100 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This article shows some of the known RadScheduler PDF Export issues and their so
2020

2121
* ['div' start tag on line 96 position 15 does not match the end tag of 'li'. Line 102, position 13.](#div-start-tag-on-line-96-position-15-does-not-match-the-end-tag-of-li-line-102-position-13)
2222

23-
* [System.SystemException: Error while creating area : Encountered web exception while fetching image from](#systemsystemexception-error-while-creating-area--encountered-web-exception-while-fetching-image-from)
23+
* [System.SystemException: Error while creating area: Encountered web exception while fetching image from](#systemsystemexception-error-while-creating-area--encountered-web-exception-while-fetching-image-from)
2424

2525
* [System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(Stream stream)](#systemargumentexception-parameter-is-not-valid-at-systemdrawingbitmapctorstream-stream)
2626

@@ -45,12 +45,12 @@ Please [validate](http://validator.w3.org/) the page output.
4545

4646

4747

48-
## System.SystemException: Error while creating area : Encountered web exception while fetching image from
49-
````ExceptionMessage
50-
System.SystemException: Error while creating area :
51-
Encountered web exception while fetching image from
52-
http://localhost:51300/Telerik.Web.UI.WebResource.axd?imgid=324e7fbdeca947c2b9a6c7ca14c88e87&type=rbi
53-
The remote server returned an error: (500) Internal Server Error.
48+
## System.SystemException: Error while creating area: Encountered web exception while fetching image from
49+
````
50+
System.SystemException: Error while creating area :
51+
Encountered web exception while fetching image from
52+
http://localhost:51300/Telerik.Web.UI.WebResource.axd?imgid=324e7fbdeca947c2b9a6c7ca14c88e87&type=rbi
53+
The remote server returned an error: (500) Internal Server Error.
5454
````
5555

5656
To troubleshoot the issue, please open the url, specified in the error details. In the above example it is:
@@ -60,7 +60,7 @@ The most probable cause of this issue is incorrect web resource handler registra
6060

6161
## System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(Stream stream)
6262

63-
````StackTrace
63+
````
6464
System.ArgumentException: Parameter is not valid.
6565
at System.Drawing.Bitmap..ctor(Stream stream)
6666
at Telerik.Web.Apoc.Image.ApocImage..ctor(String href, Byte[] imageData)
@@ -77,7 +77,7 @@ at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
7777

7878
This problem appears on export when the Telerik.Web.UI.dll is referenced trough the GAC and the assembly version is different from the WebResource.axd version registered in the web.config file. Please check you web.config for proper handler registration in the following section:
7979

80-
````web.config
80+
````xml
8181
<system.webServer>
8282
<handlers>
8383
<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=[ASSEMBLY_VERSION], Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
@@ -92,32 +92,32 @@ If you are using Forms authentication please add the following section to your w
9292
- In case you are using **RadScriptManager**:
9393

9494
**web.config**
95-
96-
<location path="Telerik.Web.UI.WebResource.axd">
97-
<system.web>
98-
<authorization>
99-
<allow users="?"/>
100-
</authorization>
101-
</system.web>
102-
</location>
103-
95+
```XML
96+
<location path="Telerik.Web.UI.WebResource.axd">
97+
<system.web>
98+
<authorization>
99+
<allow users="?"/>
100+
</authorization>
101+
</system.web>
102+
</location>
103+
```
104104
105105
- In case you are using **asp:ScriptManager**:
106106

107107
**web.config**
108-
109-
<location path="WebResource.axd">
110-
<system.web>
111-
<authorization>
112-
<allow users="?"/>
113-
</authorization>
114-
</system.web>
115-
</location>
116-
108+
```xml
109+
<location path="WebResource.axd">
110+
<system.web>
111+
<authorization>
112+
<allow users="?"/>
113+
</authorization>
114+
</system.web>
115+
</location>
116+
```
117117
118118
## An error occurred while parsing EntityName. Line 1246, position 58 or '' is an unexpected token.
119119

120-
````ExceptionMessage
120+
````
121121
An error occurred while parsing EntityName.
122122
Line 1246, position 58 or '' is an unexpected token.
123123
The expected token is ';'. Line 131, position 10.
@@ -129,7 +129,7 @@ You can use this article for reference - [Special Characters in HTML](http://www
129129

130130

131131
## System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
132-
<span></span>
132+
133133
### Description
134134

135135
Such problems are usually caused by an incorrectly configured server and some generic connection issues.
@@ -143,82 +143,83 @@ Below you can find some exception messages that you might encounter:
143143
* [SocketException (0x2746): An existing connection was forcibly closed by the remote host]
144144

145145
**ExceptionMessage**
146-
147-
[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
148-
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +249
149-
150-
[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
151-
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +8442161
152-
System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +57
153-
System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +243
154-
System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
155-
System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +8572686
156-
System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +230
157-
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +645
158-
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +9
159-
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +87
160-
System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1467
161-
System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +84
162-
System.Net.ConnectStream.WriteHeaders(Boolean async) +816
163-
164-
[WebException: The underlying connection was closed: An unexpected error occurred on a send.]
165-
System.Net.HttpWebRequest.GetResponse() +8442708
166-
Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheet(String url) +120
167-
Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheetFor(String controlName, Type controlType, Page page, String pathFormatString, String defaultPathFormatString) +318
168-
Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheets(Page page) +99
169-
Telerik.Web.UI.Scheduler.SchedulerExporter.RenderControl(Page page) +695
170-
Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +154
171-
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
172-
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +151
173-
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +49
174-
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
175-
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
176-
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
177-
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
178-
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +1040
179-
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
180-
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
181-
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
182-
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363
183-
184-
185-
* System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
186-
187-
**ExceptionMessage**
146+
```
147+
[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
148+
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +249
188149

189-
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
190-
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
191-
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
192-
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
193-
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
194-
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
195-
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
196-
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
197-
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
198-
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
199-
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
200-
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
201-
150+
[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
151+
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +8442161
152+
System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +57
153+
System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +243
154+
System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
155+
System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +8572686
156+
System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +230
157+
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +645
158+
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +9
159+
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +87
160+
System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1467
161+
System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +84
162+
System.Net.ConnectStream.WriteHeaders(Boolean async) +816
163+
164+
[WebException: The underlying connection was closed: An unexpected error occurred on a send.]
165+
System.Net.HttpWebRequest.GetResponse() +8442708
166+
Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheet(String url) +120
167+
Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheetFor(String controlName, Type controlType, Page page, String pathFormatString, String defaultPathFormatString) +318
168+
Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheets(Page page) +99
169+
Telerik.Web.UI.Scheduler.SchedulerExporter.RenderControl(Page page) +695
170+
Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +154
171+
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
172+
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +151
173+
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +49
174+
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
175+
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
176+
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
177+
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
178+
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +1040
179+
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
180+
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
181+
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
182+
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363
183+
```
184+
185+
* System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
186+
187+
**ExceptionMessage**
188+
```
189+
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
190+
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
191+
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
192+
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
193+
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
194+
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
195+
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
196+
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
197+
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
198+
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
199+
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
200+
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
201+
```
202202

203203
* A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
204204

205205
**ExceptionMessage**
206206

207-
A connection attempt failed because the connected party did not properly respond after a period of time,
208-
or established connection failed because connected host has failed to respond 216.146.38.125:89
209-
210-
Description:
211-
An unhandled exception occurred during the execution of the current web request.
212-
Please review the stack trace for more information about the error and where it originated in the code.
213-
214-
Exception Details:
215-
System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time,
216-
or established connection failed because connected host has failed to respond 216.146.38.125:89
217-
218-
Source Error:
219-
An unhandled exception was generated during the execution of the current web request.
220-
Information regarding the origin and location of the exception can be identified using the exception stack trace below.
221-
207+
```
208+
A connection attempt failed because the connected party did not properly respond after a period of time,
209+
or established connection failed because connected host has failed to respond 216.146.38.125:89
210+
211+
Description:
212+
An unhandled exception occurred during the execution of the current web request.
213+
Please review the stack trace for more information about the error and where it originated in the code.
214+
215+
Exception Details:
216+
System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time,
217+
or established connection failed because connected host has failed to respond 216.146.38.125:89
218+
219+
Source Error:
220+
An unhandled exception was generated during the execution of the current web request.
221+
Information regarding the origin and location of the exception can be identified using the exception stack trace below.
222+
```
222223

223224
### Solutions:
224225

0 commit comments

Comments
 (0)