开发者

Cannot read ASP localhost, plus problems with virtual directories

开发者 https://www.devze.com 2023-01-27 22:15 出处:网络
When going to http://localhost/ on my personal machine, I get a blank screen. I have a site at C:/inetpub/wwwroot/ but the contents of that folder aren\'t listed like they should be.

When going to http://localhost/ on my personal machine, I get a blank screen.

I have a site at C:/inetpub/wwwroot/ but the contents of that folder aren't listed like they should be.

I tried going directly for the site, and I got this error:

Cannot read ASP localhost, plus problems with virtual directories

Line 16 is the error

15:         <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
16:         <section name="scriptResour开发者_运维问答ceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
17:         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

Removing the line from the Web.config doesn't seem to help. The error persists and even claims the line wasn't removed. I made sure I saved my edit.

I then tried making a Virtual Directory and going there. The exact same error showed up. I added the proper user with the needed rights, but that didn't seem to do anything.

Cannot read ASP localhost, plus problems with virtual directories

So there are 2 problems here: Localhost won't list folders and this error I keep getting.

Can anyone tell me what I might be doing wrong?

EDIT: code added


regarding the blank localhost

did you put a default page in the wwwroot folder ?

regarding the line 16 error

is there a space in the website name?

can you send the whole web.config

0

精彩评论

暂无评论...
验证码 换一张
取 消