IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old October 30th, 2003, 08:22 PM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 31 m 9 sec
Reputation Power: 5
IIS not able to run functions and classes from ASP file

Hi there,

I am having some problems when running ASP files that contain functions and classes in IIS..... this is not a problem when i upload to the webserver tho...... does anyone know why this happens and how to correct it??...... i am running windows XP and IIS 5.1 with no configuration changes that i have done to the system... if anyone could help me with this it would be greatly apprecicated.....

thanx for your time in advance....

Reply With Quote
  #2  
Old October 30th, 2003, 08:48 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
Does other server-side script execute properly? Do you get any errors?

Reply With Quote
  #3  
Old October 31st, 2003, 01:20 AM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 31 m 9 sec
Reputation Power: 5
Yes it does... i have created ASP pages before with just normal pages and no functions and classes and it works just fine..... it just doesn't work when i create functions and classes in ASP.... thanx for your time

Reply With Quote
  #4  
Old October 31st, 2003, 02:02 AM
shareaweb shareaweb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Southeast Asian Tropics
Posts: 3 shareaweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Default Language

What scripting language are you coding your classes and functions in? The default for IIS is VBScript, not JavaScript or JScript.. You will have to check the settings in IIS under the configuration area in order to specify the settings differently, or explicitly declare the script you are using with asp directives.

Switch to ASP.NET. You're better off.

Reply With Quote
  #5  
Old October 31st, 2003, 10:14 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
Post some code and maybe some clues will become visible.

Reply With Quote
  #6  
Old October 31st, 2003, 11:02 AM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 31 m 9 sec
Reputation Power: 5
Well heres some sample code that i tried to use tokens with.... just a simple replacement on an HTML template file.... no errors whatsoever... just that the file will not load on IIS.... just seems to hang when trying to run... the status bar in IE just stays on the same place and not move at all....

PHP Code:
<%
'---  ---
index.asp
'------  ----
option explicit
%>

<%
'
Declare our variables
dim g_oPageGen
'Cerate the class object
set g_oPageGen = New parseTMPL
'
Set the template file
g_oPageGen
.TemplateFile "template.html"
'Add some custom tags to the dictionary
g_oPageGen.AddToken "title", "Template Example"
g_oPageGen.AddToken "copyright", "This is mine! All mine!"
g_oPageGen.AddToken "quote", """Tell Jabba I'
ve got his money!""<br>--Han SoloStar Wars 1977"
g_oPageGen.AddToken "
menu", "Home Page<br>News Page<br>Link Page"
g_oPageGen.AddToken "
content", "Welcome To My Home Page... Yadda Yadda Yadda!"
'Generate the page
g_oPageGen.GenerateHTML
'Destroy our objects
set g_oPageGen = nothing
%> 

Reply With Quote
  #7  
Old October 31st, 2003, 11:07 AM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 31 m 9 sec
Reputation Power: 5
sorry guys.... this is an update of the situation.... after much headbanging and frustration.... i have narrowed this down to the use of tokens.... classes and functions does work..... but tokens will not (i.e. HTML template keyword replacements) work on IIS only on the web server..... any ideas??? cos i sure am out of them

Reply With Quote
  #8  
Old October 31st, 2003, 03:52 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
Quote:
set g_oPageGen = New parseTMPL

The syntax in asp if parseTMPL is an activex should be

set g_oPageGen = Server.CreateObject(<progid>.parseTMPL)

Otherwise, I assume parseTMPL is a VBS class defined somewhere else on the page you snipped this code from.

Is your code from this tutorial?

http://www.4guysfromrolla.com/webtech/091300-1.2.shtml

Reply With Quote
  #9  
Old October 31st, 2003, 10:04 PM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 31 m 9 sec
Reputation Power: 5
yes it is........ the token tutorials that i took are from 4guysfromrolla...... you had any experience with dealing with the idea behind it??...... cos i've been doing it with PHP and it works really great...... now i have a project with ASP and i wanna try it out using that concept in ASP...... did you get the particular program to work on IIS???

Reply With Quote
  #10  
Old October 31st, 2003, 11:54 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
I haven't tried this one. I don't see the include file statement in your code to include the class file page.

Reply With Quote
  #11  
Old November 1st, 2003, 05:50 AM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 31 m 9 sec
Reputation Power: 5
yeah......... i accidentally erased it when i cut and pasted it on the forum......... but i been playing with the script that was given from the tutorial.... nothing changed at all

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS not able to run functions and classes from ASP file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |