I have just set up an ASP-based site to a new Windows 2003 SP1 server with
IIS 6.0. Before now the site has run under IIS 5.0 on Windows 2000.
Every time an ASP page is opened, IE shows the error: "Cannot find server or
DNS Error".
All static page types open fine (HTM, GIF etc)
The confusing thing is - I have allowed Active Server Pages under Web
Service Extensions in the IIS manager. No other extensions are allowed,
other than ASP.NET.
I have tried accessing the site from the server itself, from another machine
on the LAN. I have tried using the IP address, server name and localhost in
the URL. I have also removed the Virtual Directory the site lives in. None
of these changes made any difference. Oh yes, I have also tried rebooting!
View Replies
View Related
If I have multiple websites on the same server,can I use the #include directive to reference include files elsewhere on the server? I tried this -
<!--#include file="C:InetpubvhostsATRAMEMBER.COMhttpdocsheader.asp" -->
But no dice...
View Replies
View Related
i have been trying to create a page that has the include file but it is not able to find the include file. the code is as follows:
<!--#include file="Connections/connECC.asp" --> (it is listed in index.asp page)
My site map is as follows:
Connections
(under Connections folder) connECC.asp
Templates
index.asp
View Replies
View Related
I am trying to locate a file using the following code
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
strURL = "http://server/ApprovedAutoCAD/140-00007-01.dwg"
objXMLHTTP.Open "GET", strURL, False, "login", "password"
objXMLHTTP.Send
strReturn = objXMLHTTP.status
I get a 404 status back indicating that the file is not found, which is incorrect. I am able to locate XLS and DOC files on the same directory. Any ideas why I cannot find a DWG (Drawing) file?
View Replies
View Related
I am to build a site onto an ASP server. Anyone here used Dreamweaver and is it just a simple matter of opening up a new ASP page in Dreamweaver and build the site like you would normally do with a HTML page and it will handle the ASP coding accordingly and you can just simply upload it onto an ASP server and it will work?
The site I am to build is basically just a standard html website, but my friend wants me to build it for an ASP server so he has asked me to make sure it is an asp site so I am presuming with the extension .asp
If I build it as a html site to begin with, will converting it to asp be hard. Could I just export my pages into asp or is there more to it?
Can a Html website be loaded and working on an asp server or host?
Is it possible to have a site mixed both html and asp, eg. the home page is html and when you click on shopping cart on the home page it goes to a hopping cart page thats .asp or do they all have to have the same extension.
View Replies
View Related
Is there a way I can include an ASP file on somebody elses page without useing Java or an Iframe from another web site?
I've tried using #include file but it will only include local files.. is it possible to do this with ASP?
View Replies
View Related
Is it possible to have an include file that resides outside of the web site parent folder? For instance, lets say you have several websites under Inetpub/global/websites/ but the include file is in Inetpub/inc/ I get a file not found error trying file/virtual starting with the root and even using C:/Inetpub. Example
Inetpub/global/websites/website1/global.asa
Inside global.asa is the statement
<--Include file="C:/inetpub/inc/functions.inc"-->
View Replies
View Related
can anybody tell me how i can download all the pdf files from a web site, given the web site link as input?
I want to write a script for taking the web site link as input and on submit, get all the pdf files in that site.
View Replies
View Related
I am allowing user to download files from our site. I have set
<% Server.ScriptTimeout = 1200 %>
Still user get server time out error. I want it should not discontinue user ,i mean allow user to download till the end . what to do? what is the harm in it?
View Replies
View Related
I want to convert this site for San Franciso. For seo purposes, about 70% of ALL files begin with "santa-barbara" OR have that phrase in the file name string.
Is it practical to write a script that would go through the whole web site and rename all files to change "city" names like this? I could then use VS to do a find and replace in the actual files themselves. If this is possible and not too laborious, can someone share a script or point me to one on the web.
View Replies
View Related
Im working on a new site and im not using frames, im using #include files. The isse is you cant put a variable into an include file because includes are loaded befor variables and this means that the include dont work...
what ive done is make an include page with a quirystring passing which page i want to load in, then on the included page it looks at the case and when it = 2 for example. it loads whats in case 2 which in this case is <!--#include file="../XtraNET/Forum.asp"-->
trubble is theres 52 menu items, if the site would always have 52 menu items this would be solved, but you can add new ones.. thusly i need to be able to dynamic the code...
My train of thought is can i store the whole <!--#include file="../XtraNET/LiveChat.asp"--> statement in the database and call it within the code dynamicly, like a document.write or somthing.
View Replies
View Related
I just started ASP/ASP.NET two days ago. I would like to know the best way to go about using this include file method to contain my connection string stuff. As I understand it, a connection should only last as long as the query action (unlike VB6 with a persistent connection.)
So, what would be the best stuff to put into an include file for my connection stuff so I only have to make one change throughout the ASP/ASP.NET app?
Any other experiences with good things to put in that include file?
Can I also create the connection object in the include file and use it in multiple pages?
View Replies
View Related
I need to include an asp file from another server.Code:
<!--#include file="SicurezzaDip.asp"-->
I think that is the normal way to do it. I've also used the code shown below, but it doesn't seem to work..Is it possible to Include asp files from another server ? How can i do it
Code:
<!--#include file="http://81.74.60.30/Asp/SicurezzaDip.asp"-->
View Replies
View Related
I've created two separate files that I use as includes to display the header and footer of each page.Everything works fine if the pages that contain the includes remain in the same directory: the root directory. However, I want to use the includes in other places but I can't figure out a good way to solve the problem of the paths that are in the actual include files (path to stylesheet in the header, etc.).
Here is my basic directory structure on the web server (I've used "code" to make it easier to read):
Code:
- root
- include
header.asp
footer.asp
+ images
- misc
contact.asp
index.asp
I want to use the same include files in contact.asp but, obviously, the paths are going to be wrong. I've tried using Server.MapPath in the paths of header.asp and footer.asp so that the includes can be used anywhere in the site but, it is not working.And, I don't want to have the physical path visible in the source code. Is there a function or method I don't know about that can give me a path to the "root"?What have you done if in a similar situation?
View Replies
View Related
if it's possible to have a select tag in an include file which is to be included into an ASP page?I have an include file which renders a popup screen. The screen has text
fields i.e <input type="text"> fields which gets input from the user. I want to change one of the fields to a ddl and the field will not show up.code:
<select> <option value="">Choose One</select>
As you can see its the most basic of code, but it doesn't show up on the screen. When I change the code to a text field it does.
View Replies
View Related
I've tried both methods of using include files VIRTUAL= and FILE= when I use the VIRTUAL include I receive the error:
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'ProductList.asp' was not found.
and when I use a FILE include the page just produces nothing the regular page script runs so I know the asp is working but the include files just produce nothing. which leads me to believe something is wrong with my settings in IIS. Im running IIS on Windows 2000.
View Replies
View Related