|
Hello All Gurus out there,
I'm facing a problem that I couldn't resolve.
Using InterDev I have a site with ASPs and every time I try to Start the site it says "unable to set server into correct debug mode". Although the project is set to enable ASP server-side scripts, and the debugger is correctly setup and it was working fine the day before. When I go to the Help it says restart the "Microsoft Transaction Server"
On IIS: when I go to the Site properties and try to set the Application Protection to isolated (So it can run in its own space) I get the error message "COM+ unable to talk to the Microsoft Distributed Transaction Coordinator" and it changes the site on IIS to a folder.
Please if you have any ideas on how to tackle this problem, Please let me know. Or if you know how to restart the MS transaction server. I need to be able to debug the scripts.
Thanks in advance for all your help.
PS. This started happening after I deleted a site from IIS and tried to create it again from InterDev -done it a 1000 times with no problems – but the deference is the InterDev process was killed before it finishes initializing the root.
|
|
|
|
|
DotNet WebDev Newbie wrote:
"unable to set server into correct debug mode". Although the project is set to enable ASP server-side scripts, and the debugger is correctly setup and it was working fine
I get this error every time I set up a new site; always have since installing VS6. It doesn't seem to hurt anything, as I set the site to allow debugging manually anyway, and it always works. The message, as always, contains no useful information, and Help, as always, is of little help. I just ignore it.
DotNet WebDev Newbie wrote:
try to set the Application Protection to isolated (
I haven't seen any messages about the MDTC yet, but I have seen it demote a site to a folder in the past. Setting it to run in its own process may be part of your problem. You cannot use Server Side Includes (SSI) or the Internet Database Connector (IDC) service in isolation; they must be run in the same process as IIS.
I don't know if it's related, but with debugging enabled, IIS runs in single-threaded mode. That may be causing a problem with communication between COM+ and MDTC.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
I have a piece of code that posts a XML document to an ASP page running on IIS using the IXMLHTTP40 class. This all works fine when I run my code from the command line.
When I run my code as an NT service the .send method fails with "unable to download the specified resource".
Is something I am missing? Is it possible to call communicate with web pages from a NT service?
|
|
|
|
|
Hi,
I was wondering if I could know about HTTP headers to set values for NTLM HTTP user Authorization, NO WinHTTP,, NO WinInet, , NO! NEtworkCredentials Objects.... Any clue?
btw: does it make any sense?
waiting 4 2nite
Swimming in the fish bowl.
|
|
|
|
|
Actually what I really wanna know is how many ways can you send a script sitting on www.something.com data from a form at www.something.net???
I'm assuming you can send data to a external script using
<form name="test" action="http://www.something.net?test=test">
Can a server side include receive form data, cookies or anything? If it sits on another server also...?
Thanks
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
|
I have a site in english version, and I want to have the arabic version of the same. (The site is in ASP with MS access database).
Should I re-program the whole thing in arabic (arabic programming?? ), or just a translation of the arabic stuffs will do for the same??
I was born intelligent Education ruined me!.
|
|
|
|
|
|
Hmmm... basically I want to know how it works... lemme try to look into the links you gave
I was born intelligent Education ruined me!.
|
|
|
|
|
I have been working with multingual web sites for a while. The way I did (although I don't know if it is the best way) is as follows:
In the database you create more fileds of the same content for the different language. For example, if you have a table called PAGES and in the table you have the fields, PAGEID, PAGETITLE, PAGECONTENT you can change it to:
PAGEID, EN_PAGETITLE, AR_PAGETITLE, EN_PAGECONTENT, AR_PAGECONTENT
Where EN=English and AR=Arabic
Then you always have on the query string a value that holds the current language like this:
www.website.com/page.asp?pageID=1&lang=EN
Then when you build the SQL query in the ASP code you do this:
SELECT PAGEID, " & Request("lang") & "_PAGETITLE, " & Request("lang") & "_PAGECONTENT FROM PAGES WHERE PAGEID=1
and you can even switch the language at any page by just changing the querystring like this:
www.website.com/page.asp?pageID=1&lang=AR
which with the same SQL query will return the Arabic version of the page.
Hope I explained this clearly enough...
Regards,
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
I did the same way, but with some chnges... the tables have differnt rows for each languages.. and the idea works fine....
I changed the meta tage content for the arabic as follows....
ARABIC -
ENGLISH -
And the fonts looks fine when it is seen from MS access. But when I show that in the web-site, it JUSt shows as ?????.
Any tag to be added to make the site show good with the arabic fonts from the ms-access? U can help me..
Thanks in advance!
I was born intelligent Education ruined me!.
|
|
|
|
|
I see what you mean...
That has to do with server settings.
I had the same problem with Greek.
I think you need to to add to the server Arabic language
Try this, it should work...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
I work with the site in local host... and the PC is installed with arabic language too... I am able to type arabic (I cant understand it though ), and so... arabic is installed in the PC.... is there anything more to be done for this?
I was born intelligent Education ruined me!.
|
|
|
|
|
From Control Panel -> Regional Options -> General tab...
Make sure that Arabic is checked on the LANGUAGE SETTINGS FOR THE SYSTEM
This is in win2000. It should be similiar on XP or win2000 Server
If this doesn't fix the problem... I don't know what else might be
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
theJazzyBrain wrote:
If this doesn't fix the problem... I don't know what else might b
Oh dear.... I am helpless now.... your suggestion, was already tested by me....
I was born intelligent Education ruined me!.
|
|
|
|
|
I am very sorry, I dont know what else to suggest
But if I find anything I will let you know coz I work alot with English and Greek web sites.
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
theJazzyBrain wrote:
But if I find anything I will let you know coz I work alot with English and Greek web sites.
That will be of great help... thanks...
I was born intelligent Education ruined me!.
|
|
|
|
|
If you dont mind.. can u send the contents of the < head > tag in your site... may be, that will give me an idea, if I am missing something there...
Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
Greetings.
I just wanted to know how i can get the ID of the last record in the Database using ASP
The most similar thing i have found is
objRS.open "SELECT Top 1 id, FROM links
And i have also found a record count, but that would give me trouble if a record is deleted.
Any help will be appreciated
Santiago
|
|
|
|
|
If the ID is an incrementing number you could get the last one by using this SQL statement:
SELECT MAX(ID) AS LAST_ID FROM LINKS
This will return a recordset with the max number in the field ID of the table LINKS and give it an alias of LAST_ID ...
objRS("LAST_ID")
Wally Atkins Newport News, VA, USA
|
|
|
|
|
I am new to COM. I have been trying to incorporate the WebBrowser control into an MFC program. I have been using as an example and article from MSDN -http://www.microsoft.com/mind/0798/webbrowser.asp.
In this example VBScript is used. I have been trying to use JavaScript instead. I am unable to change a value with a COM method when I pass a value from Javascript;
IN VBSCRIPT:
sub get_property_value_onclick()
i=window.external.get_propert(property_name.value, value)
if i<>0 then
property_value.value=value
MsgBox property_name.value & " = " & value, 0, "Successfully retrieved property"
else
MsgBox "Cound not find value for property '" & property_name.value & "'", 0 , ""
end if
end sub
In Javascript:
function get_property_value_onclick(namevalue,value)
{
var value = "test";
var i = window.external.get_property(property_name.value,value)
if (i != 0)
{
property_value.value=value;
var strMsg;
strMsg = "Successfully retrieved property:" + property_name.value + " = " + value ;
alert( strMsg);
}
else
{
var strMsg;
strMsg = "Could not retrieve" + property_name.value + " = " + value ;
alert( strMsg);
}
}
The COM Method:
HRESULT my_application::get_property(LCID lcid,
WORD wFlags,
DISPPARAMS* pdispparams,
VARIANT* pvarResult,
EXCEPINFO* pexcepinfo,
UINT* puArgErr)
{
if (wFlags & DISPATCH_METHOD)
{
if (pdispparams->cArgs!=2)
{
return DISP_E_BADPARAMCOUNT;
}
// force to string
VARIANT arg1;
VariantInit(&arg1);
HRESULT hr=VariantChangeType(&arg1,
&pdispparams->rgvarg[1],
0,
VT_BSTR);
if (FAILED(hr))
{
*puArgErr=1;
return hr;
}
string str;
com_util::bstr2string(arg1.bstrVal,str);
// try to find element
string2variant_map::iterator it=propertymap.find(str);
if (it==propertymap.end())
{
if (pvarResult)
{
V_VT(pvarResult) =VT_BOOL;
V_BOOL(pvarResult)=FALSE;
return S_OK;
}
if (!pexcepinfo)
{
return E_INVALIDARG;
}
// raise exception
memset(pexcepinfo,0,sizeof(EXCEPINFO));
pexcepinfo->wCode =1001;
pexcepinfo->bstrSource =SysAllocString(L"WebBrowser Demo");
pexcepinfo->bstrDescription =SysAllocString(L"No entry for the key");
return DISP_E_EXCEPTION;
}
hr = VariantCopy(pdispparams->rgvarg[0].pvarVal,&(*it).second);
if (pvarResult)
{
V_VT(pvarResult) =VT_BOOL;
V_BOOL(pvarResult)=TRUE;
}
return S_OK;
}
return DISP_E_MEMBERNOTFOUND;
}
The function VariantCopy(pdispparams->rgvarg[0].pvarVal,&(*it).second);
returns a bad varibale HRESULT. Bu tit works OK in VBSCRIPT. Any idea on how to solve this?
thanks,
RAM_MR
|
|
|
|
|
Greetings. My question is in regards to DSN connections. I need to set the browser permissions to RWD in order to create and update the database. However, this means that any person that knows the full address of the database can get access to it. Is there a way to prevent this other than setting a password to the database, as I have other files in that folder?
THank you
Santiago
Santiago Suárez R.
|
|
|
|
|
check this out:
http://www.canhost.ca/asp.html
regards,
Christian Toivola
|
|
|
|
|
PLEASE HELP IN FINDING OUT SOLUTION . A LOGIN PAGE WITH
CUSTOMER NAME ADDR PHONE NO AND EMAIL ID AND ON SUMISSION IT SHOULD LINK TO ANOTHER PAGE CONTAINING THE DETAILS OF THE CUSTOMER AND INTIMATING HIS SUCESSFUL REGISTRATION.
|
|
|
|
|
JOTD's are better shared in the lounge...
So few words, and yet so precise! Megan, you're a poet of mathematical accuracy! - Jörgen Sigvardsson
|
|
|
|