开发者

Adding the website as an application in IIS

I have a website deeloped in ASP.NET and I want it to be accessed via local URL, for eg: http://localhost/website20

I tried once but the CMS in my website started giving error "It is an error to use a section registered as allowDefinition='MachineToApplication' bey开发者_运维问答ond application level. This error can be caused by a virtual directory not being configured as an application in IIS." Please help about the steps I need to follow.


Create a virtual directory for your site, either in VS project properties or in IIS, depending on type of VS project template you are using.


Steps maybe a bit different depending on which Win ver and IIS ver you have, but you have to go to Control Panel -> Administrative Tools -> IIS -> then on the default website hit right click and do "Create Virtual Directory".

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜