473,804 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anyone see the error?

I'm trying to serve a PDF file from a webpage so it will load in the
browser.. Can anyone tell what is wrong with this code? I've tried
everything

Thanks

Dim httpwreq As System.Net.Http WebRequest =
CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
ationReport.pdf "), System.Net.Http WebRequest)
Dim httpWResp As System.Net.Http WebResponse =
CType(httpwreq. GetResponse, System.Net.Http WebResponse)
Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
Dim encode As System.Text.Enc oding =
System.Text.Enc oding.GetEncodi ng("utf-8")
Dim readstream As System.IO.Strea mReader = New
System.IO.Strea mReader(receive Stream, encode)
Dim read(256) As Char
Dim count As Integer = readstream.Read (read, 0, 256)
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/pdf"
Response.AddHea der("content-length", httpWResp.Conte ntLength.ToStri ng)
Response.AddHea der("content-disposition", "filename=repor t.PDF")
While (count > 0)
'Response.Binar yWrite(System.T ext.Encoding.UT F8.GetBytes(rea d))
Dim str As String = New String(read, 0, count)
Response.Write( str) count = readstream.Read (read, 0, 256)
End While
'Response.Flush ()
httpWResp.Close ()
readstream.Clos e()
'Response.End()

This is the only code in my page. Can anyone help me out? Thanks
Nov 18 '05 #1
7 1237
as you are copying a binary stream, you should use a binary reader and a
binary writer.

-- bruce (sqlwork.com)
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:uA******** ******@TK2MSFTN GP11.phx.gbl...
I'm trying to serve a PDF file from a webpage so it will load in the
browser.. Can anyone tell what is wrong with this code? I've tried
everything

Thanks

Dim httpwreq As System.Net.Http WebRequest =
CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr ationReport.pdf "), System.Net.Http WebRequest)
Dim httpWResp As System.Net.Http WebResponse =
CType(httpwreq. GetResponse, System.Net.Http WebResponse)
Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
Dim encode As System.Text.Enc oding =
System.Text.Enc oding.GetEncodi ng("utf-8")
Dim readstream As System.IO.Strea mReader = New
System.IO.Strea mReader(receive Stream, encode)
Dim read(256) As Char
Dim count As Integer = readstream.Read (read, 0, 256)
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/pdf"
Response.AddHea der("content-length", httpWResp.Conte ntLength.ToStri ng)
Response.AddHea der("content-disposition", "filename=repor t.PDF")
While (count > 0)
'Response.Binar yWrite(System.T ext.Encoding.UT F8.GetBytes(rea d))
Dim str As String = New String(read, 0, count)
Response.Write( str) count = readstream.Read (read, 0, 256)
End While
'Response.Flush ()
httpWResp.Close ()
readstream.Clos e()
'Response.End()

This is the only code in my page. Can anyone help me out? Thanks

Nov 18 '05 #2
Given you have the PDF in 'receiveStream' you can copy it to the response
using something like this, avoiding conversion to UTF-8 or strings but of
which will corrupt the PDF file. This is C# but will work similarly in VB.
byte[] buffer = new byte[1024];

int bytes = 0;

while( ( bytes = receiveStream.R ead( buffer, 0,
buffer.Length ) ) > 0 ) {
Response.Write( buffer, 0, bytes );
}

Response.Flush

Regards

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294
web http://www.xmlpdf.com

"bruce barker" <no***********@ safeco.com> wrote in message
news:ej******** *******@tk2msft ngp13.phx.gbl.. .
as you are copying a binary stream, you should use a binary reader and a
binary writer.

-- bruce (sqlwork.com)
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:uA******** ******@TK2MSFTN GP11.phx.gbl...
I'm trying to serve a PDF file from a webpage so it will load in the
browser.. Can anyone tell what is wrong with this code? I've tried
everything

Thanks

Dim httpwreq As System.Net.Http WebRequest =

CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
ationReport.pdf "), System.Net.Http WebRequest)
Dim httpWResp As System.Net.Http WebResponse =
CType(httpwreq. GetResponse, System.Net.Http WebResponse)
Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
Dim encode As System.Text.Enc oding =
System.Text.Enc oding.GetEncodi ng("utf-8")
Dim readstream As System.IO.Strea mReader = New
System.IO.Strea mReader(receive Stream, encode)
Dim read(256) As Char
Dim count As Integer = readstream.Read (read, 0, 256)
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/pdf"
Response.AddHea der("content-length", httpWResp.Conte ntLength.ToStri ng) Response.AddHea der("content-disposition", "filename=repor t.PDF")
While (count > 0)
'Response.Binar yWrite(System.T ext.Encoding.UT F8.GetBytes(rea d))
Dim str As String = New String(read, 0, count)
Response.Write( str) count = readstream.Read (read, 0, 256)
End While
'Response.Flush ()
httpWResp.Close ()
readstream.Clos e()
'Response.End()

This is the only code in my page. Can anyone help me out? Thanks


Nov 18 '05 #3
How can I convert that array of bytes into an array of char?

"john farrow" <vi*******@xtra .co.nz> wrote in message
news:eq******** ******@TK2MSFTN GP10.phx.gbl...
Given you have the PDF in 'receiveStream' you can copy it to the response
using something like this, avoiding conversion to UTF-8 or strings but of
which will corrupt the PDF file. This is C# but will work similarly in VB.

byte[] buffer = new byte[1024];

int bytes = 0;

while( ( bytes = receiveStream.R ead( buffer, 0,
buffer.Length ) ) > 0 ) {
Response.Write( buffer, 0, bytes );
}

Response.Flush

Regards

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294
web http://www.xmlpdf.com

"bruce barker" <no***********@ safeco.com> wrote in message
news:ej******** *******@tk2msft ngp13.phx.gbl.. .
as you are copying a binary stream, you should use a binary reader and a
binary writer.

-- bruce (sqlwork.com)
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:uA******** ******@TK2MSFTN GP11.phx.gbl...
I'm trying to serve a PDF file from a webpage so it will load in the
browser.. Can anyone tell what is wrong with this code? I've tried
everything

Thanks

Dim httpwreq As System.Net.Http WebRequest =

CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
ationReport.pdf "), System.Net.Http WebRequest)
Dim httpWResp As System.Net.Http WebResponse =
CType(httpwreq. GetResponse, System.Net.Http WebResponse)
Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
Dim encode As System.Text.Enc oding =
System.Text.Enc oding.GetEncodi ng("utf-8")
Dim readstream As System.IO.Strea mReader = New
System.IO.Strea mReader(receive Stream, encode)
Dim read(256) As Char
Dim count As Integer = readstream.Read (read, 0, 256)
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/pdf"
Response.AddHea der("content-length", httpWResp.Conte ntLength.ToStri ng) Response.AddHea der("content-disposition", "filename=repor t.PDF")
While (count > 0)
'Response.Binar yWrite(System.T ext.Encoding.UT F8.GetBytes(rea d)) Dim str As String = New String(read, 0, count)
Response.Write( str) count = readstream.Read (read, 0, 256)
End While
'Response.Flush ()
httpWResp.Close ()
readstream.Clos e()
'Response.End()

This is the only code in my page. Can anyone help me out? Thanks



Nov 18 '05 #4
Scott Meddows wrote:
How can I convert that array of bytes into an array of char?
You don't want to do this - you want to write the raw bytes.

Use the Response.Output Stream property to get a stream that you can
write byte arrays to.

"john farrow" <vi*******@xtra .co.nz> wrote in message
news:eq******** ******@TK2MSFTN GP10.phx.gbl...
Given you have the PDF in 'receiveStream' you can copy it to the response
using something like this, avoiding conversion to UTF-8 or strings but of
which will corrupt the PDF file. This is C# but will work similarly in


VB.

byte[] buffer = new byte[1024];

int bytes = 0;

while( ( bytes = receiveStream.R ead( buffer, 0,
buffer.Leng th ) ) > 0 ) {
Response.Write( buffer, 0, bytes );
}

Response.Flush

Regards

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294
web http://www.xmlpdf.com

"bruce barker" <no***********@ safeco.com> wrote in message
news:ej****** *********@tk2ms ftngp13.phx.gbl ...
as you are copying a binary stream, you should use a binary reader and a
binary writer.

-- bruce (sqlwork.com)
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in
message
news:uA***** *********@TK2MS FTNGP11.phx.gbl ...

I'm trying to serve a PDF file from a webpage so it will load in the
browser.. Can anyone tell what is wrong with this code? I've tried
everythin g

Thanks

Dim httpwreq As System.Net.Http WebRequest =

CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
ationReport .pdf"), System.Net.Http WebRequest)
Dim httpWResp As System.Net.Http WebResponse =
CType(httpw req.GetResponse , System.Net.Http WebResponse)
Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
Dim encode As System.Text.Enc oding =
System.Text .Encoding.GetEn coding("utf-8")
Dim readstream As System.IO.Strea mReader = New
System.IO.S treamReader(rec eiveStream, encode)
Dim read(256) As Char
Dim count As Integer = readstream.Read (read, 0, 256)
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/pdf"
Response.AddHea der("content-length",


httpWResp.Con tentLength.ToSt ring)
Response.AddHea der("content-disposition", "filename=repor t.PDF")
While (count > 0)

'Response.Binar yWrite(System.T ext.Encoding.UT F8.GetBytes(rea d))
Dim str As String = New String(read, 0, count)
Response.Write( str) count = readstream.Read (read, 0, 256)
End While
'Response.Flush ()
httpWResp.Close ()
readstream.Clos e()
'Response.End()

This is the only code in my page. Can anyone help me out? Thanks


--
mikeb
Nov 18 '05 #5
Response.write only accepts an array of char :(

I'd use response.binary write BUT the buffer doesn't always fill up to
capacity...

"mikeb" <ma************ @mailnull.com> wrote in message
news:eA******** ******@TK2MSFTN GP11.phx.gbl...
Scott Meddows wrote:
How can I convert that array of bytes into an array of char?


You don't want to do this - you want to write the raw bytes.

Use the Response.Output Stream property to get a stream that you can
write byte arrays to.

"john farrow" <vi*******@xtra .co.nz> wrote in message
news:eq******** ******@TK2MSFTN GP10.phx.gbl...
Given you have the PDF in 'receiveStream' you can copy it to the responseusing something like this, avoiding conversion to UTF-8 or strings but ofwhich will corrupt the PDF file. This is C# but will work similarly in


VB.

byte[] buffer = new byte[1024];

int bytes = 0;

while( ( bytes = receiveStream.R ead( buffer, 0,
buffer.Leng th ) ) > 0 ) {
Response.Write( buffer, 0, bytes );
}

Response.Flush

Regards

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294
web http://www.xmlpdf.com

"bruce barker" <no***********@ safeco.com> wrote in message
news:ej****** *********@tk2ms ftngp13.phx.gbl ...

as you are copying a binary stream, you should use a binary reader and abinary writer.

-- bruce (sqlwork.com)
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in


message
news:uA***** *********@TK2MS FTNGP11.phx.gbl ...

>I'm trying to serve a PDF file from a webpage so it will load in the
>browser.. Can anyone tell what is wrong with this code? I've tried
>everythin g
>
>Thanks
>
> Dim httpwreq As System.Net.Http WebRequest =
>

CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
>ationReport .pdf"), System.Net.Http WebRequest)
> Dim httpWResp As System.Net.Http WebResponse =
>CType(httpw req.GetResponse , System.Net.Http WebResponse)
> Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
> Dim encode As System.Text.Enc oding =
>System.Text .Encoding.GetEn coding("utf-8")
> Dim readstream As System.IO.Strea mReader = New
>System.IO.S treamReader(rec eiveStream, encode)
> Dim read(256) As Char
> Dim count As Integer = readstream.Read (read, 0, 256)
> Response.Clear( )
> Response.ClearC ontent()
> Response.ClearH eaders()
> Response.Conten tType = "applicatio n/pdf"
> Response.AddHea der("content-length",

httpWResp.Con tentLength.ToSt ring)

> Response.AddHea der("content-disposition", "filename=repor t.PDF")
> While (count > 0)
>


'Response.Binar yWrite(System.T ext.Encoding.UT F8.GetBytes(rea d))
> Dim str As String = New String(read, 0, count)
> Response.Write( str) count = readstream.Read (read, 0, 256)
> End While
> 'Response.Flush ()
> httpWResp.Close ()
> readstream.Clos e()
> 'Response.End()
>
>This is the only code in my page. Can anyone help me out? Thanks
>
>


--
mikeb

Nov 18 '05 #6
Scott Meddows wrote:
Response.write only accepts an array of char :(

I'd use response.binary write BUT the buffer doesn't always fill up to
capacity...

Assuming buffer is a byte array containing the data you want written,
and bytes is the number of valid bytes in the array (ie., the array is
not filled):

Response.Output Stream.Write( buffer, 0, bytes)

or
byte [] data = new byte [bytes];
Array.Copy( buffer, data, bytes);
Response.Binary Write( data);

or something similar.
"mikeb" <ma************ @mailnull.com> wrote in message
news:eA******** ******@TK2MSFTN GP11.phx.gbl...
Scott Meddows wrote:
How can I convert that array of bytes into an array of char?


You don't want to do this - you want to write the raw bytes.

Use the Response.Output Stream property to get a stream that you can
write byte arrays to.

"john farrow" <vi*******@xtra .co.nz> wrote in message
news:eq***** *********@TK2MS FTNGP10.phx.gbl ...
Given you have the PDF in 'receiveStream' you can copy it to the
response
using something like this, avoiding conversion to UTF-8 or strings but
of
which will corrupt the PDF file. This is C# but will work similarly in

VB.
byte[] buffer = new byte[1024];

int bytes = 0;

while( ( bytes = receiveStream.R ead( buffer, 0,
buffer.Leng th ) ) > 0 ) {
Response.Write( buffer, 0, bytes );
}

Response.Flush

Regards

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294
web http://www.xmlpdf.com

"bruce barker" <no***********@ safeco.com> wrote in message
news:ej**** ***********@tk2 msftngp13.phx.g bl...
>as you are copying a binary stream, you should use a binary reader and
a
binary writer.
>
>-- bruce (sqlwork.com)
>
>
>"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in

message
>news:uA*** ***********@TK2 MSFTNGP11.phx.g bl...
>
>
>>I'm trying to serve a PDF file from a webpage so it will load in the
>>browser .. Can anyone tell what is wrong with this code? I've tried
>>everythin g
>>
>>Thanks
>>
>> Dim httpwreq As System.Net.Http WebRequest =
>>
> CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
ationRepo rt.pdf"), System.Net.Http WebRequest)
>> Dim httpWResp As System.Net.Http WebResponse =
>>CType(htt pwreq.GetRespon se, System.Net.Http WebResponse)
>> Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
>> Dim encode As System.Text.Enc oding =
>>System.Te xt.Encoding.Get Encoding("utf-8")
>> Dim readstream As System.IO.Strea mReader = New
>>System.IO .StreamReader(r eceiveStream, encode)
>> Dim read(256) As Char
>> Dim count As Integer = readstream.Read (read, 0, 256)
>> Response.Clear( )
>> Response.ClearC ontent()
>> Response.ClearH eaders()
>> Response.Conten tType = "applicatio n/pdf"
>> Response.AddHea der("content-length",

httpWResp.C ontentLength.To String)
>> Response.AddHea der("content-disposition", "filename=repor t.PDF")
>> While (count > 0)
>>

'Response.Bi naryWrite(Syste m.Text.Encoding .UTF8.GetBytes( read))
>> Dim str As String = New String(read, 0, count)
>> Response.Write( str) count = readstream.Read (read, 0, 256)
>> End While
>> 'Response.Flush ()
>> httpWResp.Close ()
>> readstream.Clos e()
>> 'Response.End()
>>
>>This is the only code in my page. Can anyone help me out? Thanks
>>
>>
>
>


--
mikeb


--
mikeb
Nov 18 '05 #7
YOU ARE THE MAN!!!

Response.Output Stream.Write( buffer, 0, bytes) was the ticket.

I was just using response.write.

Thank you VERY much!!! That was the missing piece.

THANK!!!!!!!!!! !!!!!!!

You kept me from working this weekend :)

"mikeb" <ma************ @mailnull.com> wrote in message
news:O2******** ******@TK2MSFTN GP11.phx.gbl...
Scott Meddows wrote:
Response.write only accepts an array of char :(

I'd use response.binary write BUT the buffer doesn't always fill up to
capacity...


Assuming buffer is a byte array containing the data you want written,
and bytes is the number of valid bytes in the array (ie., the array is
not filled):

Response.Output Stream.Write( buffer, 0, bytes)

or
byte [] data = new byte [bytes];
Array.Copy( buffer, data, bytes);
Response.Binary Write( data);

or something similar.
"mikeb" <ma************ @mailnull.com> wrote in message
news:eA******** ******@TK2MSFTN GP11.phx.gbl...
Scott Meddows wrote:

How can I convert that array of bytes into an array of char?

You don't want to do this - you want to write the raw bytes.

Use the Response.Output Stream property to get a stream that you can
write byte arrays to.
"john farrow" <vi*******@xtra .co.nz> wrote in message
news:eq***** *********@TK2MS FTNGP10.phx.gbl ...
>Given you have the PDF in 'receiveStream' you can copy it to the


response
>using something like this, avoiding conversion to UTF-8 or strings but


of
>which will corrupt the PDF file. This is C# but will work similarly in
VB.
> byte[] buffer = new byte[1024];
>
> int bytes = 0;
>
> while( ( bytes = receiveStream.R ead( buffer, 0,
>buffer.Leng th ) ) > 0 ) {
> Response.Write( buffer, 0, bytes );
> }
>
> Response.Flush
>
>Regards
>
>John
>
>Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
>Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand>phone +64 4 479 1738 fax +64 4 479 1294
>web http://www.xmlpdf.com
>
>"bruce barker" <no***********@ safeco.com> wrote in message
>news:ej**** ***********@tk2 msftngp13.phx.g bl...
>
>
>>as you are copying a binary stream, you should use a binary reader
and
a
>>binary writer.
>>
>>-- bruce (sqlwork.com)
>>
>>
>>"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in

message
>>news:uA*** ***********@TK2 MSFTNGP11.phx.g bl...
>>
>>
>>>I'm trying to serve a PDF file from a webpage so it will load in the
>>>browser .. Can anyone tell what is wrong with this code? I've tried
>>>everythin g
>>>
>>>Thanks
>>>
>>> Dim httpwreq As System.Net.Http WebRequest =
>>>
>>

CType(System.Ne t.HttpWebReques t.Create("http://lafdev2/ReportServeProx y/Migr
>>>ationRepo rt.pdf"), System.Net.Http WebRequest)
>>> Dim httpWResp As System.Net.Http WebResponse =
>>>CType(htt pwreq.GetRespon se, System.Net.Http WebResponse)
>>> Dim receiveStream As IO.Stream = httpWResp.GetRe sponseStream
>>> Dim encode As System.Text.Enc oding =
>>>System.Te xt.Encoding.Get Encoding("utf-8")
>>> Dim readstream As System.IO.Strea mReader = New
>>>System.IO .StreamReader(r eceiveStream, encode)
>>> Dim read(256) As Char
>>> Dim count As Integer = readstream.Read (read, 0, 256)
>>> Response.Clear( )
>>> Response.ClearC ontent()
>>> Response.ClearH eaders()
>>> Response.Conten tType = "applicatio n/pdf"
>>> Response.AddHea der("content-length",
>
>httpWResp.C ontentLength.To String)
>
>
>>> Response.AddHea der("content-disposition", "filename=repor t.PDF")
>>> While (count > 0)
>>>

'Response.Bi naryWrite(Syste m.Text.Encoding .UTF8.GetBytes( read))
>>> Dim str As String = New String(read, 0, count)
>>> Response.Write( str) count = readstream.Read (read, 0, 256)
>>> End While
>>> 'Response.Flush ()
>>> httpWResp.Close ()
>>> readstream.Clos e()
>>> 'Response.End()
>>>
>>>This is the only code in my page. Can anyone help me out? Thanks
>>>
>>>
>>
>>
--
mikeb


--
mikeb

Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2148
by: Mr Mint | last post by:
Hi all, I have a page named register.php, which is a form for collecting user data. As an example: - I have the fields Name, Surname, email. - In the <form> tag I have action ="" - The page register.php has a condition if (isset($_POST)) { include('register2.php'); }
2
2029
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be returned as DataSet. Now, here's the problem. On .NET Framework 1.1, if any rows in the dataset returned contain errors (marked by calling the SetColumnError() method or
9
1488
by: tomakated | last post by:
How do I get rid of the dashes next to the 3, 6, and the 9<?. Also the last row of "------" and the "|" on the last line so that the board will look like this<?. | | | | 1| 2| 3 -------------------- | |
0
1310
by: ColinWard | last post by:
the title is self explanatory. However although I have figured out how to implement the add-in from code, it consistently fails with the message. "There is no active worksheet". I tried opening Excel to the worksheet I want to import and then running the code but it didn't work. I have posted the code in case anyone can spot my error. ---Code Start---- 33230 On Error GoTo CmdOK_Click_Error
4
4048
by: Ersin Gençtürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The View State is invalid for this page and might be corrupted. at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadPageViewState() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e)...
0
1384
by: Frank | last post by:
I am attempting to convert an asp file to a asp.net file using C#. The original file has an ActiveX control which is contained in a cab file. The cab file contains the .ocx file which connects to a socket and transfers client info to a server, as well as several .dlls The cab file also references another cab file which contains files to install on the client machine in case they do not have VBRuntime6 installed on their machine.
40
2999
by: Jeff | last post by:
I have a system on a network and want to determine if anyone is currently connected to the back-end files. An interesting twist is that I have noticed that some users can be connected (have the front end open at the first form) and even though this links to the back-end files, there are no ldb files created. This is so I know when it is safe to compact the back-end files without going round to make sure everyone is logged off. User...
1
1287
by: MPutt | last post by:
I apologize if I am posting this to the wrong area, but I am stuck. Here is my problem. I am running a .NET 2003 Windows service against Oracle 9i. This service is attempting to run a stored proc that inserts data into the DB. When it calls the proc it gets the following error. "Unable to run stored procedure: "
20
1745
by: Pete Marsh | last post by:
Wondering if anyone can see an error with this script. I get a server configuration error. THat could mean a module is not being loaded, but maybe there's a syntax error here, can anyone spot it? Thanks <? Error_Reporting(E_ALL & ~E_NOTICE); $subject="from ".$_REQUEST ; $headers= "From: ".$_REQUEST ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1';
1
2048
by: Blubaugh, David A. | last post by:
Pauli, Yes, I am utilizing the windows environment. I cannot install f2py. I obtain the following error when I try to execute the setup.py file within the f2py folder located within the numpy master folder: Warning: Assuming default configuration
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.