简体   繁体   中英

The requested service could not be activated, WCF

I am new to ASP.NET programming.

I am creating an e-commerce system like takealot.

My problem is that whenever I run my home page, it runs fine. However when I click shop (to go to the shop page), it crashes and gives the error:

The requested service could not be activated.

I googled it and there aren't many solutions.

I think it's because my service isn't running, but I have my property of my project to start the service and the webpage together. So why isn't my service running? Or is it some other problem?

My website is dependent on my service, I configured the settings to run the service and website together, but it doesn't run my website. What could be the problem?

Thanks

I'm not sure what exactly your problem is, but did you include something like this in your HomeController?

    public ActionResult shop()
    {
        return View();
    }

It's something I also often forget.

Edit: Does it look like this? (Just in in English because this is German) service

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM