Wednesday, 7 May 2008
|
| what kind of code problem will cause dllhost.exe taking 100% cpu C676228 19:17:57 |
| | Hi everyone, Did you ever experience dllhost.exe taking 100% cpu and cause the server not responding? The thing I can think of is infinite loop in code cause deadlock which I tested on my computer. If this issue occurs occurs quite often on a production server, what will you do to find out the problem? -- Betty
|
| Options | 1 answer | Add comment |
Wednesday, 30 April 2008
|
| use P3Admin.dll with asp Germs 12:48:14 |
| | Hi all, I find to create and delete user, domain for pop3 service with P3Admin.dll, but I want to change user's password with it. I saw what there are a method ChangePassword in this library, but I don't be able to use it.
Thanks
|
| Options | 3 answer | Add comment |
Tuesday, 15 April 2008
|
| ADODB.Stream 'format error: not a pdf or corrupt' only on large file Iporter 08:35:57 |
| | I use the code below to authorise the download of certain files. Thus, instead of linking to the file in a wwwroot directory, I link to this code with the filename as a parameter, and the script streams the file if the user is authorised.
This has worked fine on PDFs, DOCs, XLS, etc. until today, and 18MB file presents the error message 'format error: not a pdf or corrupt'.
Is there a file size limit, or a default that needs overridden? Any thoughts?
Cheers.
The Code:
<%@ language="javascript"%> <% if (Session("UserID") == 0) { Response.Redirect("notauthorized.asp"); } else { Response.ContentType = "application/x-unknown"; var fn = Request.QueryString("fn"); // Response.Write(fn); // Response.End(); // fn = "ecpa_efficacy_minutes_08_11_06.pdf" var FPath = "E:\\Inetpub\\irac-online.org\\documents\\" + fn; Response.AddHeader("Content-Disposition","attachment; filename=" + fn);
var adoStream = Server.CreateObject("ADODB.Stream"); adoStream.Open(); adoStream.Type = 1; adoStream.LoadFromFile(FPath); Response.BinaryWrite(adoStream.Read()); adoStream.Close(); adoStream = null;
Response.End(); } %>
|
| Options | 8 answers | Add comment |
Friday, 14 March 2008
|
| Classic ASP connectionstring to SQL Server 2005 Guy 20:10:31 |
| | Hi
I am supporting a classic ASP application that uses SQL Server 2000 on the backend. I now need to contect to a SQL Server 2K5 database. I currently use conntectionstring: Provider= sqloledb.1;Persist Security Info=False;User ID='XXX';Password= 'XXXX';Initial Catalog= 'XXXXX';Data Source='XXXX';Connect Timeout='25' which does not work. Is there another connectionstring I should use?
Thanks Guy
|
| Options | 5 answers | Add comment |
Wednesday, 12 March 2008
|
| Query two databases with asp Dusty 20:00:01 |
| | I'm trying to create an asp page that will allow users to generate search results by querying mssql databases. I inherited these databases and did not build them. Here's the scenario.
I have two databases: DB1 and DB2. School is a table of DB1 that consists of the fields: ID, Parish, School, Principal, address, city, zip, etc.
Users is a table of DB2 that consists of the following fields: ID, firstname, lastname, address, city, CompanyName, etc.
Field CompanyName (DB2\Users) is linked to ID (DB1\School). Users would like to have the capability of finding out which users are in a particular parish or school.
I don't know how to produce the correct asp code that will pull information from two different databases.
TIA
|
| Options | 12 answers | Add comment |
Monday, 10 March 2008
|
| Problem with OPENQUERY through SQL Server to Access Cb 20:17:02 |
| | I have a very esoteric problem, which plumbs the dark unknown depths of Windows.
I was trying to use OPENQUERY to move data into an SQL Server database from an Access database. (The Access database is set up as a linked server within SQL server.) The command is meant to be triggered from an ASP web application (and so therefore runs with IUSR permissions.)
Strangely, it works fine on my development machine (Windows 2000 server); but only works on my production machine (Windows 2003 server) if I temporarily put IUSR in the administrators group (i.e. elevate IUSR permissions to the max.) Obviously that is not a long-term solution.
I had read elsewhere that the Jet OLEDB driver uses the system temp directory during an OPENQUERY call, and that problems like mine can be solved by giving IUSR permissions on the system temp directory. I tried that, and oddly enough it does not apply to either of my systems. When I run the identical OPENQUERY from the query pane of Management Studio, it does use the system temp directory, and a temp file is deposited there. But on my Windows 2000 server, I can explicitly deny temp folder permissions to IUSR and the OPENQUERY can still be run from the ASP application, no problem. I can search the system high and low, and not find temp files anywhere that result of running the command via ASP.
Apparently when the command is invoked from a web application, the Jet OLEDB driver is trying to write its temp files somewhere else, and then immediately deleting them to leave no tracks. What I need to know is -- where?? So I can selectively grant IUSR the right permissions on my 2003 server.
I realize that possibly even God does not know the answer, but it's killing me and I would appreciate any advice.
|
| Options | Add comment |
Thursday, 6 March 2008
|
| Copying Binary data from one table to another Normanp 20:31:15 |
| | Hi,
I have these tables with binary data stored in tinyblobs and blobs in MySql. In my application I sometimes need to copy them to another table. Not all the data, maybe just a column or two. So I first select the data into a record set and then loop and insert it (its the only way can do it)
Eg: Select blah blah
Do while not rs.eof insert here rs.movenext loop
I thought this would be easy, but its not. No matter what I do I get: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch
I suppose copying binary data is not easy. So just how do I do this? Whats the right way to copy Binary Data from one table to another.
Most of you might have done this before. The problem is with the binary stuff. Thats the thing that causes the error. Please can you help.
Thanx
|
| Options | 10 answers | Add comment |
|
| text field update Aw 19:30:11 |
| | I am doing some scripting against a sql server database. In the course of the scripting I update a text field of one of my tables and soon after that run a select against that same table looking at the text field.
For example,
update books set chapter1 = "some text about trees ..." where id = 99 . <a few lines of work> . select id from books where chapter1 like '%trees%'
Is it possible that the second query is run before the update of chapter1 from the first query is completed?
|
| Options | 3 answer | Add comment |
Thursday, 28 February 2008
|
| Returning value using Stored Procedure and ASP Drew 22:00:48 |
| | I have been using SP's for some time now in my ASP applications, but have hit a wall when trying to return the identity value from a SP. The SP looks like this,
CREATE PROCEDURE InsertTrip @TripDate smalldatetime, @StartTime datetime, @EndTime datetime, @Duration float, @TripPlace varchar(50), @TripPurpose varchar(50), @ChoicesGiven text AS INSERT INTO Trips (TripDate,StartTime,EndTime,Duration,TripPlace,TripPurpose,ChoicesGiven) VALUES (@TripDate,@StartTime,@EndTime,@Duration,@TripPlace,@TripPurpose,@ChoicesGiven) SELECT NEWID = SCOPE_IDENTITY() GO
And the ASP looks like this,
dim varTripID, varRegNo, varTripDate, varStartTime, varEndTime, varDuration, varTripPlace, varTripPurpose, varChoicesGiven
varTripDate = Request.Form("TripDate") varStartTime = Request.Form("StartTime") varEndTime = Request.Form("EndTime") varDuration = Request.Form("Duration") varTripPlace = Request.Form("TripPlace") varTripPurpose = Request.Form("TripPurpose") varChoicesGiven = Request.Form("ChoicesGiven")
'Insert into Trip table conn.InsertTrip varTripDate, varStartTime, varEndTime, varDuration, varTripPlace, varTripPurpose, varChoicesGiven, rs
varTripID = rs(0)
I am getting the following error, "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another". But when I remove the rs from the SP call code it works fine, although it does not return the value.
How can I fix this?
Thanks, Drew
|
| Options | 11 answers | Add comment |
Tuesday, 26 February 2008
|
| Help with connection string Hakk 23:11:41 |
| | I was hoping someone could offer me a bit of help here. I am trying to connect to an unpassworded Access 2007 database for use in a small website.
For testing purposes I have everything stored locally, and am using the following connection string:
ConnectString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\myWebs\htdocs\grahams\data\products.accdb;Persist Security Info=False;"
All I get when I try to open the website is this:
Microsoft Office Access Database Engine error '80004005'
Unspecified error
/grahams/connection.asp, line 14
the connection.asp file is just this:
Dim conn, ConnectString ConnectString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\myWebs\htdocs\grahams\data\products.accdb;Persist Security Info=False;" Set conn = Server.CreateObject("ADODB.Connection") response.Write(ConnectString) conn.open ConnectString
I have tried every combination of file name, and tried to use server.mappath but I get the same error no matter what.
|
| Options | 9 answers | Add comment |
Sunday, 17 February 2008
|
| special character "&" and " ' " in request.querystring URL Magix8@Gmail.Com 13:14:54 |
| | Hi all,
how can I pass the special characters as request.querystring value ? example like "&", since & is used in request.querystring for various parameters value
It will be cut off until "pass" in text 1, for example
let say: text1 = "I want to pass & chacater"
test.asp?Text1=<%=text1%>
should I use Server.URLEncode ? But Server.URLEncode doesn't seems to work either as I tried I read some ppl suggested using replace method to replace "&" with normal letters, and at receiving, replace back with "&", but is there a better one ?
Special characters like ' ' and & are having problem in request.querystring URL
Any suggestions or workaround ?
Thanks.
cheers, Magix
|
| Options | 1 answer | Add comment |
|
| Media Player Object Tom 06:09:32 |
| | I have a media player object in ASP on a default page. I'd like to have the audio play continuously no matter what page the user goes to.
In all of the ASP files I have: <!--#include file="header.html"--> right after the <body> tag. The header file has the page header graphic and menu. I tried to put the <OBJECT> in header.html but the playlist restarts on every page.
Any way to get the object to load and stay without restarting?
Thanks.
|
| Options | 2 answer | Add comment |
|
| How can I end the HTTP response but continue executing ASP? Boole 01:12:23 |
| | Hi there, when my ASP page receives the client request, I want to gather the request data (form), promptly end the response to the client (successful) and continue doing what I need to do with the data, the result of which does not affect the response, hence why i don't want to waste time leaving the connection open or keeping the client waiting, I suppose you could call the client request a "trigger".
I do not mind using ASP functions to fork, therad, execute or using the buffer, whatever works... but I am very new to ASP/VBScript so I do not know how to do this, and I think the Response.End will end ASP execution, and I am not sure how to end only the HTTP response using the buffer.
I don't want the client request to time out, I do not know the clients time out settings.
I am not even sure if it is possible, perhaps it is a requirement of ASP that the client waits for all ASP to execute, but there must be some way, even using system calls or something to do this.
Thanks, George.
|
| Options | 2 answer | Add comment |
Saturday, 16 February 2008
|
| problem with manipulating data?? Bam 20:24:36 |
| | I couldn't think of a title, so i hope you all understand this.
using mssql db
i have the following variables.
current_log = time of the current login last_log = time of last visit to site
last_view = time of the last view of a post last_idate = time of last post
now in theory, if the last_view < last_idate then rs1 = 1
and yes, i have a log of every post that everyone has read
now what I have, is a code that says if rs1 = 1 then show * (meaning there is a new post) if not, then don't show it.
the problem is, the * always shows even if i change < to >
any ideas here
-- Thanks, Bam
|
| Options | 8 answers | Add comment |
|
| INSERT script to SQL Server Guest 20:00:54 |
| | A friend has been tasked with designing a website. It all looks very swish, but he's been asked to add a page to allow people to register for events etc. He wants to add some script to save these details to a SQL Server database. Could someone please take a brief look at the script below and tell me if this looks ok?
Thanks
Edward
<% Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=SQLOLEDB.1;Password=pwd;Persist Security Info=True;User ID=uid;Initial Catalog=Test;Data Source=YOURSERVERHERE;"
sqlstring = "INSERT INTO UserDetails (UserName, Tel, Email) VALUES ('"
sqltemp = document.getElementById('UserName').value sqlstring = sqlstring + sqltemp + "', '"
sqltemp = document.getElementById('Tel').value sqlstring = sqlstring + sqltemp + "', '"
sqltemp = document.getElementById('Email').value sqlstring = sqlstring + sqltemp + "', ')"
conn.execute(sqlstring) conn.close set conn = nothing %>
|
| Options | 16 answers | Add comment |
|
| Renew Session variables ? pedestrian via WebmasterKB.com 18:24:35 |
| | I wonder is there any way I could renew the Session variables of ASP before it is expired?
Thanks a lot.
-- Message posted via WebmasterKB.com http://www.webmasterkb.com/Uwe/Forums.aspx/asp/200802/1
|
| Options | 2 answer | Add comment |
|
| Sending Client Certificate Tom 03:19:53 |
| | I'm trying to set up and use a client certificate given to us by a 3rd party to request and receive their XML data. With the provided cert, the only instructions they've given us is to import the cert into IE and export to a .pfx file.
I used the MMC Certificate Snap in to get the cert into the certificate store (I think that part's OK but not 100% sure if I've granted access etc.) Then I used winhttpcertcfg.exe. to grant access. I'm just not sure about the account(s). I've granted access to the following accounts by using the following command:
winhttpcertcfg -g -c LOCAL_MACHINE\MY -s "CsS Services -a IWAM_SECURE
I've run that command for various accounts. Here's the listing now using:
winhttpcertcfg -l -c LOCAL_MACHINE\MY -s "CsS Services"
Microsoft (R) WinHTTP Certificate Configuration Tool Copyright (C) Microsoft Corporation 2001.
Matching certificate: E=tom.gaughan@excursiontech.com CN=CsS Services OU=Identity authenticated by RA OU=Email control validated by GeoTrust OU=See TCX CPS www.geotrust.com/resources/CPS OU=CPS terms incorp. by ref. liability ltd. O=Org. not validated.
Additional accounts and groups with access to the private key include:
BUILTIN\Administrators NT AUTHORITY\SYSTEM SECURE\IUSR_SECURE SECURE\IWAM_SECURE SECURE\ASPNET
Now when I run this code using WinHttp.WinHttpRequest I get the following error:
WinHttp.WinHttpRequest error '80072f9a' A security error occurred
This still occurs on objSrvHTTP.Send. I've tried both GET and POST and get the same error. Previous to correctly (at least I think it's been run correctly) run winhttpcertcfg we were getting "msxml3.dll error '80072f0c' A certificate is required to complete client authentication"
MS advised to install SP 2 (Windows Server 2003 Standard) and use WinHttp.WinHTTPRequest instead of Msxml2.ServerXMLHTTP.
Here's the code: set objSrvHTTP = Server.CreateObject ("WinHttp.WinHttpRequest.5.1") set objXMLDocument = Server.CreateObject("MSXML2.DOMDocument") set objXMLReponseDocument = Server.CreateObject("MSXML2.DOMDocument")
objXMLDocument.async = false objXMLDocument.load(Server.MapPath("Request.xml")) ' WinHttp.WinHttpRequest.5.1 ' CN from certificate which is in Local Computer\Personal\Certificates objSrvHTTP.SetClientCertificate "LOCAL_MACHINE\MY\CsS Services"
objSrvHTTP.open "GET", "https://test.rbsecure.com/secure2/bin/XMLPost", false objSrvHTTP.SetRequestHeader "content-Type","text/xml" objSrvHTTP.send objXMLDocument Response.Write objSrvHTTP.ResponseText
Thanks in advance for any help...Tom
|
| Options | Add comment |
Friday, 15 February 2008
|
| Submit() only some variables in JS Guest 19:35:47 |
| | Hi All: 1. Is there any way of submitting only several variables froma form in JS ? I have some constraints in the server side, so I would like to have a button and when clicked, submit only certain variables. 2. Creating a new form changes my formatting. Is there a way of creating a form and superimposing it on top of another ?
Yes I am new to JS. Thanks for your help
JC
|
| Options | 5 answers | Add comment |
|
| Decimal value gone AWOL in ASP when MySQL updated! Laphan 17:10:11 |
| | Hi All
My ASP driven site has always used MySQL as the DB backbone, mainly as the hosting costs of MySQL are far cheaper than SQL Server at the mo, and it has worked fine until my ISP thought that they were doing everybody a favour by upgrading to v5 from v4.
What happens now is that any ASP query that I do that involves any of my MySQL Decimal data type fields goes belly up. It will not work.
Looks to be an issue with ASP, MyODBC and MySQL, but I just wanted to check if there was a better/more reliable data type than Decimal (which obviously performs the same numerical functions) and if there was a quick way to convert all of my Decimal fields to this new type.
Thanks
|
| Options | 1 answer | Add comment |
|
| wss crashed default web site. Saigontuna 16:39:25 |
| | Hi,
I had installed WSS v3 sp1 few days ago and had created a web site for one of my web application under Default Web Site by accident. And then I deleted the association not the entire Default Web Site) through the Sharepoint Central Admin web interface. Afterwards, everything under Default Web Site behaved oddly. For example, Remote Workspace out of order. Error message as follow:
Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
How could I fix the problem? How could I reinstall those original web applications without reinstall SBS entirely? The best thing, of course, would be the entire 'Default Web Site' back to what it used to be without any reinstallation.
I'm running SBS 2003 Premium fully updated.
Please help. Thanks.
|
| Options | Add comment |
Thursday, 14 February 2008
|
| Dotnet Lead Engineers opening in Pune Enterprise Matrix 20:18:29 |
| | Hi,
We are Bangalore based leading HR consulting company retained by top IT companies like SAP Labs, TCS, i-Gate, AztecSoft, GE, Symphony Services, HCL to hunt talent.
Excellent opening for Lead Engineers at AT CMM Level-5 & Largest IT Company for their Pune ODC.
Mandatory Skills: 1) ASP.Net 2) C# 3) SQL Programming 4) Must have strong experience on ASP/VB script and good exposure to ASP.NET. 5) Should have min two years experience in Classic ASP/VB script and min one year experience on ASP.NET 6) Should be willing to work on classic ASP development 7) Good knowledge of MS Sql server, HTML,DHTML,XML, JavaScript 8) Experience developing web applications 9) Experience fixing the bugs, maintenance patches, and feature enhancements 10) Good writ! ten and spoken communication skills, good team player, strong self starter/self driving/self motivating person
Nice to have skills: 1) Experience using one or more AJAX toolkits 2) Experience of working on a customer site is a big plus 3) Experience in US is an added advantage
Experience : 5-7 years
Education:BE/BTech/MCA
Job location: Pune
Kindly mail your resumes immediately to raghavendra.bs@enterprisematrix.com
Thanks and Regards Raghavendra B S Enterprise Matrix E-mail: raghavendra.bs@enterprisematrix.com Ph : 080 - 267293 26/27/28/29/30
|
| Options | 1 answer | Add comment |
|
| Using Crystal Reports ActiveX control in WS 2003 Standard...hangs on
this one machine Brent White 17:35:55 |
| | I have a Crystal Report ASP (v10) that serves many machines in our intranet here to do various kinds of reports. On this one machine, however, it pulls up the page and hangs trying to get the data, no matter what report, no matter what time of day. Other people use this ASP with no problem, but this one machine seems to have big problems.
I have tried reloading the ActiveX control, clearing the cache, clearing temp files, to no avail. The client is using IE6 with all the updates. The website is in the Trusted zone.
What am I missing here? Is there some kind of setting that I'm missing? A timeout or something?
|
| Options | 1 answer | Add comment |
Wednesday, 13 February 2008
|
| Re: compare records in two access databases McKirahan 02:37:20 |
| | "Charlotte" <charlotte.deleeuw@SPAMtelenet.be> wrote in message news:%PKrj.28196$9Z2.22687@newsfet14.ams...
Hi, i've googeled to find a asp-script that can compare all the records in two different access databases the mdb's have exactly the same tables what i want is that (the output) all the differences comes in a html-table in a webpage can anybody help me, are give me a example ? Is a primary key defined? What do you want the output to look like?
Given this layout: "key,field1,field2" where table 1 contains 1,a,b 2,c,d and table 2 contains:: 1,a,b 3,e,f How would you want the differences reported?
Perhaps just identifying the "key" differences? table1 : 1=,2+,3- table2 : 1=,2-,3+
|
| Options | 5 answers | Add comment |
Tuesday, 12 February 2008
|
| Possible to sort and omit duplicates in a list using javascript Laphan 22:23:01 |
| | Hi All
I need to provide a function on my site whereby a user can enter a number of ip addresses (one per line) so that I can submit this en masse to string holding space in my db.
My problem is that I want to keep this list sorted as they enter the ip addresses and I want to check for duplicates so that they don't enter the same ip addresses twice.
I was going to do this as a simple form submit and add each entry as a database row so that I could ORDER BY to get the sort and check for duplicates on the submit, but this client/server submit really slows the whole process. It would be great if I could order by and duplicate check on the client side so that once done all I'm doing is one client/server 'post' to the db.
Is this feasible?
Thanks
|
| Options | 3 answer | Add comment |
|
| Request Object Deepak 20:50:09 |
| | Hi All,
i m facing a strange situation with request object for asp.net.As per our project i have to transfer this request from Page1.aspx to Page2.aspx if contyp = "text/xml".If i remove(ie. comment) the line xmlInDoc.Load(Request.InputStream) from PAGE1.ASPX then there is no error in PAGE2.ASPX and it process it without any error,but if i keep this line xmlInDoc.Load(Request.InputStream) in PAGE1.ASPX then PAGE2.ASPX give me error on line Response.Write(docOUT.xml) saying
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" <MethodResult Status="2"><Error><ErrorNumber>-1071651496</ErrorNumber><ErrorDescription>An XML parse error occured. File Position: 0 Line: 0 Line Position: 0 Reason: XML document must have a top level element.
Source Text: </ErrorDescription><ErrorSource>modXML.LoadXMLDocumentFromURL \\ W6IntInMsgLib</ErrorSource><ErrorLine>0</ErrorLine></Error></MethodResult>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
I can not remove(comment) the line xmlInDoc.Load(Request.InputStream) in PAGE1.ASPX as that is needed for some processing in PAGE.ASPX like Dim xmlearlyStart As XmlNode = xmlInDoc.SelectSingleNode("SXPTaskUpdateOrAdd/Task/EarlyStart") etc.
Following is my code:
PAGE1.aspx
contyp = Request.ContentType() ' Read content type of request
If contyp = "text/xml" Then Dim xmlInDoc As New XmlDocument Dim xmlInUpdateDoc As New XmlDocument xmlInDoc.Load(Request.InputStream) Server.Transfer("w6inboundprocessor.aspx", True)
PAGE2.aspx
Public Class w6inboundprocessor Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer. 'Do not delete or move it. Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
On Error Resume Next
Const W6PIncomingProcessor = "W6IntUtilsGWWrap.W6IntInMsgProcGW.1"
Dim binData Dim objProcessor Dim docOUT Dim blnSuccess
binData = Request.BinaryRead(Request.TotalBytes())
If Err.Number <> 0 Then Call XMLError(Err)
blnSuccess = False While Not blnSuccess ' Based on Microsoft's articles there is no need to use the Server object to create objects. ' If we do use the Server objects it costs in performance ' and can cause some instability as the bug suggests. objProcessor = CreateObject(W6PIncomingProcessor)
If Err.Number = 0 Then blnSuccess = True Else If Err.Number <> 2147549448 Then Call XMLError(Err) blnSuccess = True End If End If End While ' Danny 15/5/05 - Bug #23983 ' Based on Microsoft's articles there is no need to use the Server object to create objects. ' If we do use the Server objects it costs in performance ' and can cause some instability as the bug suggests. docOUT = CreateObject("Microsoft.XMLDOM") Call docOUT.loadXML(objProcessor.ProcessMessage(binData)) If Err.Number <> 0 Then Call XMLError(Err) Response.ContentType = "text/xml" ' Gil (27/2/05): Bug: #23639 - Added unicode support as in the SXP asp file ' Reviewed with Sasha. Response.Charset = "utf-8"
'docOUT.save(Response) Response.Write(docOUT.xml) Response.End()
End Sub Sub XMLError(ByVal Err) Dim strOutput
strOutput = "<MethodResult><Error>" & _ "<ErrorNumber>" & Err.Number & "</ErrorNumber>" & _ "<ErrorDescription>" & Err.Description & "</ErrorDescription>" & _ "<ErrorSource>" & Err.Source & "</ErrorSource>" & _ "</Error></MethodResult>"
Call Response.Write(strOutput) Response.End() End Sub End Class
Kindly help me. I am waiting for urs replies and thanks in advance from my side.
-Deepak +919886735837 kr_deepak123@hotmail.com kr_deepak123@yahoo.co.in
|
| Options | 3 answer | Add comment |
|