Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"_Script Library" error after moving ASP page within project

Status
Not open for further replies.

uncleroydee

Technical User
Nov 28, 2000
79
US
When we move ASPs within our project, particularly when the relative location of the file within the tree is changed, we get Script Library errors. Up till now we have kept the folders at their same relative position from the root to prevent the errors.

Can someone (Pete!) give me a pointer on how to correct the Script Library error so that we can have the latitude to reposition ASPs to more logical and convenient locations?

Thanks.

 
The _script library are files that are included in the asp files you are moving. They are placed there by interdev to help do certain calculations, render html and other stuff. If you have any ActiveX controls in your script view the run-time text to see where the includes are pointing to. You will need to change them at that point.
 
Roy,

I could not find this article on MSDN online so I am pasting most of it here:

Hope this helps
-pete

SYMPTOMS
When you browse a Web page that was created with Visual InterDev and uses Design-Time controls, you may receive the following error message:

Active Server Pages error 'ASP 0126'
Include file not found
/Folder/Filename.xxx, line 8
The include file '_ScriptLibrary/pm.asp' was not found.



CAUSE
This error occurs because the script library include path in the Active Server Pages (ASP) page is not valid. This happens when you move a file inside of Visual InterDev to another location in the project or when you add files to the project that contain the invalid paths to the script library.



RESOLUTION
In the Visual InterDev source editor, you cannot modify the gray script block that has the invalid include path. To resolve this issue, perform the following steps to reset the path:


Right-click in Visual InterDev source view, and then click Properties.
NOTE: Do not right-click on a design-time control.


Clear Enable scripting object model on the General tab, and then click Apply.


Select Enable scripting object model, and then click Apply.


You may continue to receive the include file error message depending on which design-time controls you added to the ASP page. If you continue to receive the error message, the line number that contains the error message is not part of the gray script block at the top of your ASP page. Because the code is not part of the script block, manually modify the path using the following steps:

From the View menu, select View Controls As Text.


Press Ctrl + G to view the Go To Line dialog box. Type the line number where the error is occurring, and then click OK. The line will look like the following example code:



<!--#INCLUDE FILE=&quot;_ScriptLibrary/DTCObject.ASP&quot;-->
where DTCObject is the type of object on your page.


Modify the path to the script library to match the path in the gray script block at the top of the ASP page.


From the View menu, select View Controls Graphically.


Save the file.


Repeat these steps for any additional script library include paths.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top