使用虚拟目录运行时运行页面时出错 [英] error running the page while run using virtual directory
问题描述
我已经开发了Web应用程序并使用.net编辑器运行,当我为显示演示客户端创建虚拟目录并且虚拟目录名称为examplekalai时,该运行成功运行.
i have developed web application and run using .net editor it is running successfully when i create virtual directory for show demo client and virtual directory name is examplekalai showing this following error.
A name was started with an invalid character. Error processing resource 'http://localhost/examplekalai/Default.aspx'. Line...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
-^
推荐答案
有很多可能性会发生此问题.以下是此问题的一些解决方案:
解决方案1:
打开命令提示符并导航至该目录
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
从命令提示符处按以下顺序运行这些命令:
There are lots of possibilities for this problem to occur. Here are some solutions to this problem :
Solution 1:
Open a command prompt and navigate to this dir
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Run these commands in this order from command prompt:
aspnet_regiis.exe –i
aspnet_regiis.exe –e
IISReset (To restart the IIS)
您可能还需要重新启动计算机
解决方案2:
1.右键单击virtual directory
2.前往属性
3.转到ASP.NET tab
4.在那里选择适当的版本
解决方案3:
可能是您导航错误的链接.当我说错链接时,也意味着链接地址区分大小写.因此,请尝试纠正该问题.
希望这会有所帮助.
一切顺利.
You may also need to restart the computer
Solution 2:
1. Right click on the virtual directory
2. Go to the propeties
3. Go to the ASP.NET tab
4. Select the appropriate version there
Solution 3:
It may be the case that you are navigating the wrong link. When I say wrong link, it also means that the link address is case sensitive. So try to rectify that.
Hope this helps.
All the best.
尝试安装ASP.NET agin
单击srart->在Run中输入-> c:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_regiis.exe -i 输入enter
try installing ASP.NET agin
click on srart-->type in Run --> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i give enter
这篇关于使用虚拟目录运行时运行页面时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!