伪静态发布后的问题(在线等,跟帖有分)

mm6268 2010-06-23 01:11:24
小弟网站配置了伪静态,在VS环境运行没有问题,发布到IIS之后出现下列问题,等待高手帮忙解决,分不够可以再加
(.NET已经注册,IIS中的属性也已经配置)

打开页面后显示如下:

-- ASP.NET REGISTRATION OPTIONS --



-i Install this version of ASP.NET and update scriptmaps at

the IIS metabase root and for all scriptmaps below the

root. Existing scriptmaps of lower version are upgraded to

this version.



-ir Install this version of ASP.NET, register only. Do not

update scriptmaps in IIS.



-iru Install this version of ASP.NET. If there are any existing

applications that uses ASP.NET, it will not update

scriptmaps in IIS.



-enable When -enable is specified with -i, -ir or -r, ASP.NET will

be enabled in the IIS security console (IIS 6.0 or later).



-disable When -disable is specified with -i, -ir or -r, ASP.NET will

be disabled in the IIS security console (IIS 6.0 or later).



-s <path> Install scriptmaps for this version at the specified path,

recursively.

E.g. aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1



-sn <path> Install scriptmaps for this version at the specified path,

non-recursively.



-r Install this version of ASP.NET and update scriptmaps at

the IIS metabase root and for all scriptmaps below the

root. Existing scriptmaps are upgraded to this version

regardless of the original versions.



-u Uninstall this version of ASP.NET. Existing scriptmaps to

this version are remapped to highest remaining version of

ASP.NET installed on the machine.



-ua Uninstall all versions of ASP.NET on the machine.



-k <path> Remove all scriptmaps to any version of ASP.NET from the

specified path, recursively.

E.g. aspnet_regiis.exe -k W3SVC/1/ROOT/SampleApp1



-kn <path> Remove all scriptmaps to any version ASP.NET from the

specified path, non-recursively.



-lv List all versions of ASP.NET that are installed on the

machine, with status and installation path.



-lk List all the path of all IIS metabase keys where ASP.NET is

scriptmapped, together with the version. Keys that inherit

ASP.NET scriptmaps from a parent key will not be displayed.



-c Install the client side scripts for this version to the

aspnet_client subdirectory of each IIS site directory.



-e Remove the client side scripts for this version from the

aspnet_client subdirectory of each IIS site directory.



-ea Remove the client side scripts for all versions from the

aspnet_client subdirectory of each IIS site directory.



-ga <user> Grant the specified user or group access to the IIS

metabase and other directories used by ASP.NET.







-- CONFIGURATION ENCRYPTION OPTIONS --



-pe section Encrypt the configuration section. Optional arguments:

[-prov provider] Use this provider to encrypt.

[-app virtual-path] Encrypt at this virtual path. Virtual

path must begin with a forward slash. If it is '/', then it

refers to the root of the site. If -app is not specified,

the root web.config will be encrypted.

[-site site-name-or-ID] The site of the virtual path

specified in -app. If not specified, the default web site

will be used.

[-location sub-path] Location sub path.

[-pkm] Encrypt/decrypt the machine.config instead of

web.config.



-pd section Decrypt the configuration section. Optional arguments:

[-app virtual-path] Decrypt at this virtual path. Virtual

path must begin with a forward slash. If it is '/', then it

refers to the root of the site. If -app is not specified,

the root web.config will be decrypted.

[-site site-name-or-ID] The site of the virtual path

specified in -app. If not specified, the default web site

will be used.

[-location sub-path] Location sub path.

[-pkm] Encrypt/decrypt the machine.config instead of

web.config.



-pef section web-app-physical-dir

Encrypt the configuration section. Optional arguments:

[-prov provider] Use this provider to encrypt.



-pdf section web-app-physical-dir

Decrypt the configuration section.
...很多的英文....
...全文
230 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
ajq1989 2010-06-23
  • 打赏
  • 举报
回复
[Quote=引用 18 楼 xinge55555 的回复:]
没做过,帮顶[/Quote]
.
yw1688 2010-06-23
  • 打赏
  • 举报
回复
版本注册问题。
ZHUKY 2010-06-23
  • 打赏
  • 举报
回复
没做过,关注...........顶
mm6268 2010-06-23
  • 打赏
  • 举报
回复
我现在是在CMD中C:\Windows\Microsoft.NET\Framework\v2.0.50727目录下
然后使用aspnet_regiis -i命令注册
我电脑中也有3.5版本,应该怎么注册?或者我这边怎么修改呢?
myhope88 2010-06-23
  • 打赏
  • 举报
回复
应该是版本的问题吧
mm6268 2010-06-23
  • 打赏
  • 举报
回复
感谢楼上帮顶的,现在我怀疑是版本注册方面出了问题?我是VS2008用的2.0版本
-小蕾- 2010-06-23
  • 打赏
  • 举报
回复
帮顶!!
mm6268 2010-06-23
  • 打赏
  • 举报
回复
web.config已经配置好了,在VS2008中运行正常...只是发布后部署在IIS中显示不正常
wangxiaofeiwuqiao 2010-06-23
  • 打赏
  • 举报
回复
URLRewriter 简单又好用,下个组件,配置下web.config就行了。例如:

<urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
<rewrites>
<add name="Rewrite1" virtualUrl="^~/PAGEDIANPU(.*).html" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/PAGEDIANPU.aspx?DianPuID=$1" ignoreCase="true"/>
</rewrites>
</urlrewritingnet>
mm6268 2010-06-23
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 gs8716 的回复:]
你的asp.net没有注册,没有权限访问。
当在一台计算机上并行执行多个 .NET Framework 版本时,映射到 ASP.NET 应用程序的 ASP.NET ISAPI 版本决定了该应用程序所使用的公共语言运行库版本。
http://msdn.microsoft.com/zh-cn/library/k6h9cz8h(VS.80).aspx

百度一下asp.net iis 注册就可以……
[/Quote]

你说的什么意思呢?我2.0注册过一次了呀1
我是这么注册的:C:\Windows\Microsoft.NET\Framework\v2.0.50727目录下
然后使用aspnet_regiis -i命令注册
wangxiaofeiwuqiao 2010-06-23
  • 打赏
  • 举报
回复
可淘网:http://www.bccyy.com
也是用:URLRewriter
mm6268 2010-06-23
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 suiye007 的回复:]
你打开的是不是真正的静态HTML啊??????????
[/Quote]
不是,打开的是动态页面
gs8716 2010-06-23
  • 打赏
  • 举报
回复
你的asp.net没有注册,没有权限访问。
当在一台计算机上并行执行多个 .NET Framework 版本时,映射到 ASP.NET 应用程序的 ASP.NET ISAPI 版本决定了该应用程序所使用的公共语言运行库版本。
http://msdn.microsoft.com/zh-cn/library/k6h9cz8h(VS.80).aspx

百度一下asp.net iis 注册就可以找到一个工具下载下来使用就可以解决的
諾临風 2010-06-23
  • 打赏
  • 举报
回复
你打开的是不是真正的静态HTML啊??????????
lishuai1030 2010-06-23
  • 打赏
  • 举报
回复
不懂 帮顶
slimboy123 2010-06-23
  • 打赏
  • 举报
回复
我的网站 http://www.56goo.com 就用了URLRewriter
slimboy123 2010-06-23
  • 打赏
  • 举报
回复
URLRewriter
mm6268 2010-06-23
  • 打赏
  • 举报
回复
有没有类似情况的解决方法啊?
S_trance 2010-06-23
  • 打赏
  • 举报
回复
Urlrewriter重写url,
http://blog.csdn.net/shaily/archive/2009/01/18/3825168.aspx
相信对你有帮助
mark620 2010-06-23
  • 打赏
  • 举报
回复
采用URLRewriter做吧。

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧