All of sudden, when I put the website online - this is what I get on the project page:
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
That's really weird... Because other times when I put the website online, I didn't have that problem,
it just occured moments ago - and it's only the '/projects' page,
Problem: Can't figure out to give facebook and twitter sharing buttons a dynamic url
Hi Guys,
I use Facebook and Twitter's sharing/tweet buttons, so that people can share the content on the specific article/project.
Here's my meta tags in a partial view macro:
Here's my view (ProjectPost):
But I'm not sure if I'm doing the correct way - so I would really appreciate it,
if someone could help me with this,
and show me a better way of doing it,
Thanks in advance.
/Sharmarke
Hi Sharmarke,
The Model.Content.UrlWithDomain() returns a nicely formated URL including its domain https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/
So try the code below.
Hope this helps,
/Dennis
Hi Dennis,
Thanks for your reply - I'll test the code,
and by the way - is there are better way to use this meta tag:
Should I remove the Url and only use the '@CurrentPage.Url'
/Sharmarke
Hi Dennis,
I got another side problem here...
All of sudden, when I put the website online - this is what I get on the project page:
That's really weird... Because other times when I put the website online, I didn't have that problem,
it just occured moments ago - and it's only the '/projects' page,
that is like that.
/Sharmarke
Hi Sharmarke,
When I do websites, i try to do my code so dynamic as possible and not hardcode things, so your website will work if you change the domain.
Hope this helps, and make sense.
/Dennis
Hi Dennis,
I did get it to work, so a big thanks for me,
And it did make sense to me
/Sharmarke
Hi Sharmarke,
If you turn off custom errors in the web.config as instructed and show us the resultant error message is we should be able to give you some pointers.
Cheers
James
is working on a reply...