所有带有ASP.NET的新IIS虚拟目录都会抛出异常“初始字符无效”。 [英] All New IIS virtual directories with ASP.NET throw exception "initial character not valid"
问题描述
大家好
对于我创建的所有新网站(虚拟目录),我收到
总是出现同样的错误:
(我翻译可能会有所不同)
无法可视化XML页面
无法通过XSL工作表可视化XML输入。正确
错误,然后点击更新,或者再试一次。
-------------------- -------------------------------------------------- ----------
初始字符无效的名称。在详细描述
资源http://localhost/ricevute/default.aspx ...
$ b $期间出错b<%@ Page Language =" C#" AutoEventWireup =" true"
CodeFile =" Default.aspx.cs"继承= QUOT; _Default" %>
- ^
我已经尝试注册aspnet_regiis.exe -i
并且已经尝试重新安装框架2.0
但无事可做...
重要说明
请注意我已经拥有asp.net网站的旧目录
运行良好......我没有找到任何支持这个问题
任何地方......
4月4日上午10:07,Pao < paoloca ... @ gmail.comwrote:
大家好
对于所有新网站(虚拟目录)我创建,我收到
总是同样的错误:
(我翻译所以可能会有点不同)
不可能可视化XML页面
无法通过XSL工作表可视化XML输入。正确
错误,然后点击更新,或者再试一次。
---------------- -------------------------------------------------- --------- * -----
初始字符无效的名称。在详细描述
资源http://localhost/ricevute/default.aspx ...
$ b $期间出错b<%@ Page Language =" C#" AutoEventWireup =" true"
CodeFile =" Default.aspx.cs"继承= QUOT; _Default" %>
- ^
我已经尝试注册aspnet_regiis.exe -i
并且已经尝试重新安装框架2.0
但无事可做...
重要说明
请注意我已经使用asp的旧目录。网站
运行良好...我没有找到任何支持这个问题
任何地方...
您的虚拟目录是否在IIS中配置为应用程序?
如果是,我会检查IIS中的应用程序设置(virt.directory -
属性)和ASP.NET选项卡。你有所有文件在正确的地方
(/ BIN,web.config)?
>
您的虚拟目录是否在IIS中配置为应用程序?
如果是,我会检查IIS中的应用程序设置( virt.directory -
属性)和ASP.NET选项卡。你有所有文件在正确的地方
(/ BIN,web.config)? - 隐藏引用的文字 -
是的,虚拟目录在IIS中配置为应用程序。
但在目录中没有任何BIN目录或web.config文件。
当我创建一个虚拟目录作为IIS中的一个应用程序,然后我用Visual Web Developer打开它,我看到一条消息说
目录没有配置为与asp一起工作.net,和Vis Web Dev请求
,如果我现在要配置它。
我回答是的,我等了一会儿,但没有BIN目录和
web.config文件被创建,如果我运行一个页面(在浏览器中显示)我
得到错误。
4月4日上午11:05,Pao < paoloca ... @ gmail.comwrote:
您的虚拟目录是否已在IIS中配置为应用程序?
如果是,我会检查IIS中的应用程序设置(virt.directory -
属性)和ASP.NET选项卡。你有所有文件在正确的地方
(/ BIN,web.config)? - 隐藏引用的文字 -
是的,虚拟目录在IIS中配置为应用程序。
但在目录中没有任何BIN目录或web.config文件。
当我创建一个虚拟目录作为IIS中的一个应用程序,然后我用Visual Web Developer打开它,我看到一条消息说
目录没有配置为与asp一起工作.net,和Vis Web Dev请求
,如果我现在要配置它。
我回答是的,我等了一会儿,但没有BIN目录和
创建了web.config文件,如果我运行一个页面(在浏览器中显示)我将获得错误。
我还试图将目录中的内容复制到我的
新目录。
我打开IIS,所有设置看起来都不错
( - 启用asp.net版本2.0.50727
- 虚拟目录正确
- 文件位置对应到正确的web.config文件)
我尝试用IE打开它但我收到同样的错误(初始字符
无效)
>
Hi all
For all NEW sites (virtual directories) that I create, I receive
always the same error:
(I translate so may be a little different)
Impossible to visualize the XML page
Impossible to visualize the XML input through the XSL sheet. Correct
the error, then click on Update, or try another time.
--------------------------------------------------------------------------------
Name with initial character not valid. Error during the elaboration of
the
resource "http://localhost/ricevute/default.aspx...
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
-^
I already tried to register with aspnet_regiis.exe -i
and already tried to reinstall the framework 2.0
but nothing to do...
IMPORTANT
Notice that the old directories that I already have with asp.net sites
are running well... I didn''t found any support for this problem
anywhere...
On Apr 4, 10:07 am, "Pao" <paoloca...@gmail.comwrote:Hi all
For all NEW sites (virtual directories) that I create, I receive
always the same error:
(I translate so may be a little different)
Impossible to visualize the XML page
Impossible to visualize the XML input through the XSL sheet. Correct
the error, then click on Update, or try another time.
---------------------------------------------------------------------------*-----
Name with initial character not valid. Error during the elaboration of
the
resource "http://localhost/ricevute/default.aspx...
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
-^
I already tried to register with aspnet_regiis.exe -i
and already tried to reinstall the framework 2.0
but nothing to do...
IMPORTANT
Notice that the old directories that I already have with asp.net sites
are running well... I didn''t found any support for this problem
anywhere...Is your virtual directory configured as an application in IIS or not?
If yes, I would check an Application Settings in IIS (virt.directory -
properties) and ASP.NET tab. Do you have all files in the right place
(/BIN, web.config)?
>
Is your virtual directory configured as an application in IIS or not?
If yes, I would check an Application Settings in IIS (virt.directory -
properties) and ASP.NET tab. Do you have all files in the right place
(/BIN, web.config)?- Hide quoted text -
Yes, the virtual directory is configured as application in IIS.
But in the directory there isn''t any BIN directory or web.config file.
When I create a virtual directory as an application in IIS, and then I
open it with Visual Web Developer, I see a message saying that the
directory is not configured to work with asp.net, and Vis Web Dev ask
if I want to configure it now.
I answer Yes and I wait for a while, but no BIN directory and
web.config files are created, and if I run a page (show in browser) I
get the error.
On Apr 4, 11:05 am, "Pao" <paoloca...@gmail.comwrote:Is your virtual directory configured as an application in IIS or not?
If yes, I would check an Application Settings in IIS (virt.directory -
properties) and ASP.NET tab. Do you have all files in the right place
(/BIN, web.config)?- Hide quoted text -
Yes, the virtual directory is configured as application in IIS.
But in the directory there isn''t any BIN directory or web.config file.
When I create a virtual directory as an application in IIS, and then I
open it with Visual Web Developer, I see a message saying that the
directory is not configured to work with asp.net, and Vis Web Dev ask
if I want to configure it now.
I answer Yes and I wait for a while, but no BIN directory and
web.config files are created, and if I run a page (show in browser) I
get the error.I also tried to copy the content of a directory that works well to my
new directory.
I open IIS and all settings seem good
(- asp.net enabled version 2.0.50727
- virtual directory correct
- file location corresponding to the correct web.config file)
I try to open it with IE but I get the same error (initial character
not valid)
这篇关于所有带有ASP.NET的新IIS虚拟目录都会抛出异常“初始字符无效”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!