vb script or asp.net problem - not sure where to begin

G

Guest

Ok interesting, on my local machine

And i did not do a good job of keeping track of the exact order....

but on my local machine

in which i have vis studio 2003 installed and IIS for win XP,
I copied the web.config file from the source code folder into the
inetpub\wwwroot folder b/c that is where the ASP engine was looking for it.

I ran some commands to force my local IIS to use asp.net 1.1 vs asp.net 2.0

I run the http://localhost/gt/default.aspx and the page comes up

I go to my Server, which I configured to use asp.net 2.0, but i prohibit 2.0
and allow 1.1(I am sure there are some more configuration steps i need to
do.. but)
i tell IIS to use 1.1
copy the same web.config file to the wwwroot folder

and i get the error as reported below


Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1310
Date: 1/17/2006
Time: 5:34:46 PM
User: N/A
Computer: TESTWEBSRVR-01
Description:
Event code: 3007
Event message: A compilation error has occurred.
Event time: 1/17/2006 5:34:46 PM
Event time (UTC): 1/17/2006 10:34:46 PM
Event ID: b94f072baf34454899cece7704d12d96
Event sequence: 18
Event occurrence: 3
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/gt-1-127820097325128546
Trust level: Full
Application Virtual Path: /gt
Application Path: C:\Old mba db sourcefiles\GT\
Machine name: TESTWEBSRVR-01

Process information:
Process ID: 3016
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HttpCompileException
Exception message: C:\Old mba db sourcefiles\GT\Default.aspx(27): error
BC30451: Name 'gbDevelopment' is not declared.

Request information:
Request URL: http://150.227.61.206/gt/Default.aspx
Request path: /gt/Default.aspx
User host address: 150.227.57.30
User: AXDFGT\loneque
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile)
at
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile)
at
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,
String requestType, VirtualPath virtualPath, String physicalPath)
at
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at
System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)


Custom event details:

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.


Any ideas??
 
P

Patrick.O.Ige

BookerW well since you have noticed you haven't installed it in the right
order
then try doing that.
Patrick
 
G

Guest

But on the Server, would i have been able to install asp.net 2.0 without
setting up IIS first. On the local machine, I actually installed Visutal
Studio 2003. I don't think I have to install that on my Windows 2003 server
do I ?

So on my server I have Microsoft.net framework 2.0 installed. I will keep
reading as I respond to this post, but I did not think the order of the .net
framework and IIS would not have the same effect of how I loaded it on my xp
box.

Maybe I am not understanding the difference between the full install of my
visual studio 2003 and IIS on my XP box, and the .net 2.0 framework and IIS
on my windows 2003 web server.

But thanks for the leads thus far..!!!
 
G

Guest

ok, i uninstalled asp.net 2.0 and just running iis with whatever is default
with iis on a w2k3 box with sp1

Now, i put in a dummy index.htm file and deleted and recreated a new virtual
directory. When i set iis to use index.htm, my page comes up. When i tell
it to use default.aspx first, i get the following error:

Server Error in '/gtdb' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>



Any ideas?
 
G

Guest

Some more info,
When i run this locally on the machine, using anonymous authentication ,it
tells me that a global variable that I declared is not referenced, howvever
that same code run on my local xp box and debugged, runs just fine, both as
http://localhost/gtdb, and inside of visual studio. I guess my challenge is
to find out what specifically my IIS box is having a problem with, with the
code.
 
G

Guest

Final solution that seemed to work:

Ok, the quick rundown



Fixed the ldap references In the code

Replaced the username and passwords for accounts in our domain (Remember
this code came from a separate company)

Installed Oracle Client software on Server

Installed Oracle OLE DB connectivity software (ODAC) from Oracle’s website.
This seemed to resolve the error I got in regards to the Oracle Client not
being found

Finally, the account used to access the database did not have the right to
view specific tables. It could see the list of tables, but not specific
tables.

My DBA had to create synonyms for the account used to access the database to
mimic the account that had ownership of the tables in the database.





At this point, I can now connect, perform queries on the tables, etc ,etc..



Wallah, thanks for the journey,

Thanks for all of your help
 

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
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top