传统的ASP / asp.net网站 - GLOBAL.ASA不工作 [英] classic asp/asp.net website - global.asa not working

查看:191
本文介绍了传统的ASP / asp.net网站 - GLOBAL.ASA不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直给写在传统的ASP来配置一个网站,并建立了 - 尽管它似乎也写在asp.net页面

I've recently been given a website written in classic asp to configure and set up - although it also appears to have pages written in asp.net.

我目前遇到的问题是,它不;吨似乎拿起从global.asa文件设置,如应用程序(的ConnectionString)......

The problem I'm having at the moment is that it doesn;t appear to be picking up settings from the global.asa file such as Application("ConnectionString")....

,当我试图把它们写出来,从某处code - 出现什么

As when I try to write them out from somewhere in the code - nothing appears.

任何想法如何,为什么它没有使用它来congure本网站使用的global.asa ...还是?

Any idea how to congure this website to use global.asa...or why it's not already using it?

有是web.config文件,Global.asax的......应该不是这仅仅是用于.NET?

There is web.config file and global.asax...shouldn't this just be for .net?

在code不会在Visual Studio中进行编译。

The code will not compile in visual studio.

推荐答案

我看到的时候没有设置应用​​程序目录在IIS与应用程序的名称这一问题。您可以更改从IIS管理器。

I've seen this problem when the application directory is not set up in IIS with an application name. You can change that from the IIS manager.

这篇关于传统的ASP / asp.net网站 - GLOBAL.ASA不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆