greengerong / Prerender_asp_mvc

Prerende client for asp.net mvc
http://prerender.io/
86 stars 39 forks source link

Confused #22

Open bhanu7755 opened 8 years ago

bhanu7755 commented 8 years ago

Hi,

I built an application using AngularJS and Web API and hosted in IIS . I want to make my application SEO friendly. To do this i have done all the below steps

  1. Install Nuget Package Prerender.io
  2. Added meta tag in index.html
  3. Added $locationProvider.hashPrefix('!'); in the config file.
  4. Updated my token in Web.Config file

But, still I'm seeing "You need to install your Prerender token before you can start caching your pages." And unable to cache my pages.

Could you please help me.

thoop commented 8 years ago

Can you send an email to support@prerender.io with some more information about your current middleware setup? We'd be happy to look into this more with you.

bhanu7755 commented 8 years ago

Thanks for reply. Just did..

Kriyainc commented 7 years ago

Hi Bhanu - Were you able to get this resolved? Have the exact same set up, Angular, Web API on IIS and looking for a solution...

thoop commented 7 years ago

@Kriyainc Happy to help you get set up. Would you email us at support@prerender.io? Send over your config and your website so that we can test and see if it's working correctly.

Kriyainc commented 7 years ago

Thanks for your response...I will send over the details you mentioned to support@prerender.io

greengerong commented 7 years ago

Any update? Why I do not have the notify from github for this repo?

Kriyainc commented 7 years ago

Hello - Sorry about the delay. Our project is ASP.Net website, where as this Prerender solution is for ASP.Net MVC project. The difference as you maybe aware is that, ASP.Net website project does not have App_Start and AssemblyInfo.cs. We are trying to add these manually to our project in order to add Pre-render to the project. Should be done very shortly, and will let u know if it worked...Thanks

greengerong commented 7 years ago

Yes. You can reuse all code, but use asp.net interceptor. And do not use App_Start to register.

bobrinch commented 7 years ago

I also use ASP.NET for middleware but without the MVC part. Can you please put some more words on your one line:

_"Yes. You can reuse all code, but use asp.net interceptor. And do not use AppStart to register."

Thanks :-)