ASP file size

M

MFA

are u sure ?

Because I have many files as include files. I am getting server internal
error but when I am removing few lines from one file including, its working
fine and when I am including back the same lines its giving me server
internal error.

That lines contains no variable declaration or assigning new values. these
are just simple html lines and few variable values

I am really stucked with this thing.
 
R

Randy Rahbar

Because I have many files as include files. I am getting server internal
error but when I am removing few lines from one file including, its working
fine and when I am including back the same lines its giving me server
internal error.

That lines contains no variable declaration or assigning new values. these
are just simple html lines and few variable values

You may want to show your code as well as the error message you're getting.
 
S

shabbir

Hi,

I am having the same problem, I have an application in which i am using
many include files and within these include files I ahve simple html, some
of which are accessing a dbase, others are reading application variables.
Everything seemed fine, but now I get overflow, or internal server errors
when I try to add any more inlcude files.

I find the best way to work is with the include fiels as theses files are
called in several different pages, plus its usually easier to debug.

I have tried the include file on it's own, and no error, so I know the file
is sound, but when I try to call it within a case statement, I get an error.
I am calling application variables within this page, I replaced with one
call of application variable and declare new variable, and that doesnt work.
Only if I hardcode this variable, does the page actually work.

So, is it to do with number of variables in use, number of times a variable
is called, number of include files being used, and are there limits on
these?

I think this is one that only Microsoft can sort out...

regards,

Shabbir
 
M

MFA

MFA said:
I have attached the sample file

This is basically a media template file and I have 10 type of different
templates. Its one of include files which I am using in my application and
I have lot others.

At this point I have to include only one out of ten files.

when I am checking for which file has to include for first two cases its OK.



SELECT CASE TEMP_TYPE
CASE "1"
%>
<!--#include file="M_Templat1.asp" -->
<%
CASE "2"
%>
<!--#include file="M_Templat2.asp" -->
<%

END SELECT

but when I am putting CASE "3" <!--#include file="M_Templat3.asp" --> its
giving me

HTTP 500.100 - Internal Server Error - ASP error

Internet Information Services



it works with case 3 too if I am removing all asp code in M_Templat3.asp

I think there is some type of limit of asp code lines



Kind regards
 
T

Tom B

include directives are processed BEFORE any asp code so your files are being
included no matter what.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top