|
I cannot run any perl scripts. I am running Windows Server 2003 and I have downloaded and installed ActiveState Perl, and had all the application extension mappings (pl, plx) set during this installation. The script engines are correctly associated.
My Perl scripts and html files are located in d:\MyPerlProgram but are mapped to a Virtual Directory "MyPerlProg".
I made sure the Administrator, System and Users group have at least "Read/Execute" permissions for that virtual directory. Under Application Settings, the "Script and Executable" execute permissions are allowed.
I also made sure the Internet Guess Account (MyComp\IUSR_MyComp) has read and execute persmissions as well.
But nothing is working. I try to access my program using http://localhost/MyPerlProg/frameset.htm. (Note: frameset.htm has a frame for my *.pl script that should also be executed/loaded). But I keep getting a "Page Cannot Be Found" error.
However, when I go into Visual Studio .NET to edit this page (in the Design view), a "File Download" box pops up and asks if I want to Save or Open the *.pl script file. I dont know why it's like this.
Note that my perl scripts all work before on Windows 2000 Adv Server. However, in that configuration, I stuck all my Perl scripts in c:\inetpub\wwwroot\Scripts. And somehow IIS 5.0 knows how to execute stuff in that directory as scripts.
However, in windows server 2003, I dont see any default "Scripts" folder. Is there supposed to be one?
|
|
|
|
|
IN ADDITION...
What does "lock down" really mean in terms of IIS? Because right after I installed Windows Server 2003, I went into Control Panel to ADD/remove Windows components (specifically IIS with FrontPage extensions). I did all that before I installed ActiveState Perl. At this point, is it "unlocked" yet?
Well, assuming IIS is ready, I installed ActiveState to d:\Perl, and I let it automatically generate the IIS scripts.
After installation, I went into IIS to check. I right-clicked "Default Web Sites" and chose "Properties". On the "Home Directory" tab, under "Application Settings", I clicked "Configuration". Then, under the "Mappings" tab, I looked for the *.pl and *.plx extensions. Here's what I saw:
For *.pl, it points to d:\Perl\bin\Perl.exe "%s" %s (with Verbs: GET, HEAD, POST)
For *.plx, it points to d:\Perl\bin\Perlis.dll (with Verbs: GET, HEAD, POST)
Doesnt that mean the mappings are correct?
Then I made some more tweakings that I mentioned in the first post above. And after all that, I still get "Page Cannot Be Found" error.
NOTE: My frameset.htm has two frames. The left frame just contains an HTML file and this is displayed perfectly. The right frame is supposed execute a Perl CGI script (*.pl) and display the corresponding page. The "Page Cannot Be Found" error message is occuring in the right frame only.
|
|
|
|
|
OK. The problem is 50% solved. I found out that I needed to add a new Web Service Extension to IIS's list. I added "CGI Perl Scripts"and I assign the following "required files" to it:
1) d:\Perl\bin\perl.exe "s%" s%
2) d:\Perl\bin\perlis.dll
Now my *pl script executes and loads just how it's supposed to. However, that script has a Javascript code that upon a certain event (specifically, an onClick event for a drop down menu) reloads the script itself:
window.location = "http://localhost/MyPerlProg/MyScript.pl?hiddenField=" + selectedID;
This is where I get the "Page Cannot Be Found" error again.
What is wrong now?
|
|
|
|
|
Hi, I just finished reading http://www.codeproject.com/asp/indexserver.asp and have followed the article to the letter. How come I don't see the vPath property in the property-list in the Index Server consoll?
A.
|
|
|
|
|
Hi All
Does anyone know any good perl scripts for validating an email address it must be in the form string@string.string and no more than 15 charcaters. string = any character upper or lowercase(no spaces).
thanks
Stephen
|
|
|
|
|
Use Email::Valid. It does both RFC 822 and MX checking (MX checking can be turned off), and has a number of other options.
- Mike
|
|
|
|
|
Thanks Michael
|
|
|
|
|
|
|
I want to make rollover buttons but I don't want to use any pictures and I want these buttons to run on all browsers above 4.5 (or 5.0) What should I look for?
BTW how to make IE 6.0 not to show the buttons when the mouse cursor is over a picture? Any idea?
|
|
|
|
|
i want a file that is download by the specific user.
how can i restrict that the file path is not shown by the user..
mean only he can download the file .. if he copies the file path .. then the file can't be download by the user..
|
|
|
|
|
How to make the hand cursor appear over HTML elements in IE 5.0 and Netscape?
"cursor: pointer" works for IE 6.0 and Netscape 7.0 but not for IE 5.0 "cursor: hand" works for IE but not for Netscape?
Any solutions?
|
|
|
|
|
Use both. Browsers that don't understand a css property are supposed to ignore that one, so cursor: hand; cursor: pointer; will do the trick.
|
|
|
|
|
thanks... it is a nice tip
|
|
|
|
|
Hello,
I 'm trying to run a program from within an asp page, wzzip (WinZip's command line add on). If I run "c:\program files\winzip\wzzip.exe" -r -p -e0 c:\inetpub\wwwroot\temp\temp4.zip c:\inetpub\wwwroot\temp\*.txt, from a batch file, it works fine, the zip file is created. I figure out I had to put the quotes around the path to the .exe or I get an error that c:\program is not a valid command.
But running the following from an ASP page (VB Script), the code runs, but no file is created. If I use line 3, which is all that is in the batch file "zipem.bat", I get an rror code related to a file not found. If I use that in a .vbs file, I get the file not found error, plus it shows the batch file name as the culprit, but I am not even referencing it!! Using line 4, the ASP script runs, but no zip file is created.
Can you help? Am I even doing this right?
1) Dim wshShell
2) set WshShell = Server.CreateObject("wscript.shell")
3) 'WshShell.Run """c:\program files\winzip\wzzip.exe"" -r -p -e0 c:\inetpub\wwwroot\temp\temp4.zip c:\inetpub\wwwroot\temp\*.txt"
4) WshShell.Run "c:\inetpub\wwwroot\temp\zipem.bat"
5) Set wshShell=Nothing
Kraig
Kraig Schuneman
|
|
|
|
|
About every 2 or 3 months, our Intranet comes across the following error on the Intranet Home Page:
Microsoft OLE DB Provider for ODBC Drivers error '8007000e' <br />
<br />
[Microsoft][ODBC Microsoft Access Driver] System resource exceeded. <br />
<br />
/index.asp, line 25
Our Intranet uses an MS Access DB to display news items on the Home Page. This error occurs when trying to query the database for the latest news items.
This problem can be fixed by rebooting the server. Does anyone know what could be causing this?
Chris LaQuerre
eBusiness Consultant
|
|
|
|
|
This is caused from too many connections at the same time.
A workaround might be to use the OLEDB driver:
"yourConnectionName.Open "Provider=Microsoft.Jet.OLEDB.4.0;" &_<br />
<br />
"Data Source=E:\foldername\databasename.mdb;" &_<br />
<br />
"Persist Security Info=false"
But I would look into U/G to SQL Server. As a rule MS Access will allow 10 concurrent connections to the DB, sometimes it will throw an error, and sometimes not.
Also be sure that you are closing your connection within your code:
yourConnectionName.Close<br />
<br />
Set yourConnectionName = Nothing
HTH
Tony
|
|
|
|
|
I'm new to using the IE control (MSHTML) and am not sure how to do something. I know it should be possible. Here it is:
If I have an object embedded in an HTML page and I display that page within the IE control, how do I get it programmatically? It has an ID and all of that.
<br />
<!-- DHTML Editing control Object. This will be the body object for the toolbars. --><br />
<object ID="tbContentElement" CLASS="tbContentElement" CLASSID="clsid:2D360201-FFF5-11D1-8D03-00A0C959BC0A" VIEWASTEXT><br />
<param name=Scrollbars value=true><br />
</object><br />
How do I get programmatic access to the tbContentElement object?
Any help, tips, or pointers to articles or whatever are/will be greatly appreciated.
Thanks,
Mike
|
|
|
|
|
You must use IHTMLDocument2 interface. You can find some help on msdn.microsoft.com :
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/reference.asp
example of function to retrieve the value of a tag in a html page :
CString YourApp::GetTagValue(LPDISPATCH lpDispatch, CString strTagId)
{
CString strVal = "";
IHTMLDocument2* pHTMLDocument2 = NULL;
if (lpDispatch == NULL)
return "";
HRESULT hr = lpDispatch->QueryInterface(IID_IHTMLDocument2, (LPVOID*)&pHTMLDocument2);
lpDispatch->Release();
if (hr != S_OK)
return "";
IHTMLElementCollection *pElementCollection = NULL;
hr = pHTMLDocument2->get_all(&pElementCollection);
if (hr != S_OK || pElementCollection == NULL)
return "";
long nElt = 0;
if (pElementCollection->get_length(&nElt) != S_OK)
return "";
for (int i=0; i<nelt; i++)
="" {
="" variant="" varindex,="" var2;
="" varindex.vt="VT_UINT;
" varindex.lval="i;
" variantinit(&var2);
=""
="" idispatch*="" pdisp="NULL;
" hr="pElementCollection-">item(varIndex, var2, &pDisp);
if (hr == S_OK && pDisp != NULL)
{
IHTMLElement* pElem = NULL;
hr = pDisp->QueryInterface(IID_IHTMLElement, (void**)&pElem);
if (hr == S_OK && pElem != NULL)
{
BSTR bstrId = 0, bstrVal = 0;
hr = pElem->get_id(&bstrId);
CString strId(bstrId);
strId.MakeLower();
// Oups, we find our tag !!!
if (strId.Find(strTagId) != -1 && strId != "")
{
// Retrieve all html code
pElem->get_innerHTML(&bstrVal);
strVal = CString(bstrVal);
}
pElem->Release();
}
pDisp->Release();
}
}
pElementCollection->Release();
return strVal;
}
you can use this function like this:
CString strValue = GetTagValue(m_web.GetDocument(), "myid");
With a object embedded in a html page, I think you must use the IHTMLObjectElement interface instead of the IHTMLElement interface.
This is not easy to play with the syntax of theses interfaces, but it works.... Good luck !!!
|
|
|
|
|
Thanks! This will get me started.
|
|
|
|
|
I have a client that needs to do Powerpoint presentations from his web site.
Does anyone know of any example of this using ASP.NET (C# or VB.NET).
Thanks
Tony
|
|
|
|
|
Why not just put the ppt file out on the web site and add a link to this file? It will download the ppt and open Powerpoint (or viewer) to display the presentation.
onwards and upwards...
|
|
|
|
|
|
on my first page i want to get a name and asign it to a variable:
exsample.....
please enter your name here .......
on submit we will go to next webpage
on the next page i want the name to be seen again,
exsample.....
this is where your name ...... could have apeared, if you would have filled it out on page one.
is there a way that java gets the name, assigns it to a variable
and than later use that variable to print the name again?
i have searched and searched tried many things but cant find it, i am totaly new to programming so if you know anything to help me out i will be thankfull
|
|
|
|
|
There's an example of this using cookies & JavaScript here on the JavaScript Source site.
|
|
|
|