I have created a website with razor(.cshtml) using webmatrix on my local PC and everything is working and running fine locally. I have signed up for new dedicated windows server
2008 R2 / IIS 7.5. I have manually uploaded the files via Filezilla to the site in which I have manually configured on the server.
1) Do I need to install MVC3 on the server?
2) What are the required settings for this site in IIS (IIS site and application pool configuration)?
At this point the homepage index.cshtm is giving me an error.
I have created a website with razor(.cshtml) using webmatrix on my local PC and everything is working and running fine locally. I have signed up for new dedicated windows server
2008 R2 / IIS 7.5. I have manually uploaded the files via Filezilla to the site in which I have manually configured on the server.
1) Do I need to install MVC3 on the server? No, you do not need to install anything on the server.
2) What are the required settings for this site in IIS (IIS site and application pool configuration)? Just make sure that Framework 2.0 or later is installed and running on the dedicated/virtual server. You may need to contact the service provider and have them turn on/off certain features, unless you can remote in or have some control (via a panel).
At this point the homepage index.cshtm is giving me an error. What is the error message?
I have total remote control over the server. Please let me know which features I need to turned on first before I bother you with the error.
Regards
Did you setup a website (container) in IIS? Check the ASP.NET tab and verify the version.
Can you copy and paste the error message or check the event log on the server for errors.
Check out my website: http://www.TheTradeBox.com
Love collecting video games, movies and board games!
Enjoying my '11 WRX, so sexy...
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
The page is definately a script.
I guess I need to add either script handler or map handeler. I am not sure as to which and type.
Ok, the transfer is complete and I am still receiving the follwoing error:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
engcanada
Member
23 Points
147 Posts
Publishing Razor Pages
Aug 15, 2012 08:54 PM|LINK
Hi,
I have created a website with razor(.cshtml) using webmatrix on my local PC and everything is working and running fine locally. I have signed up for new dedicated windows server 2008 R2 / IIS 7.5. I have manually uploaded the files via Filezilla to the site in which I have manually configured on the server.
1) Do I need to install MVC3 on the server?
2) What are the required settings for this site in IIS (IIS site and application pool configuration)?
At this point the homepage index.cshtm is giving me an error.
Thank you
mebinici
Participant
815 Points
256 Posts
Re: Publishing Razor Pages
Aug 15, 2012 09:17 PM|LINK
Check here for the video tutorial: http://www.asp.net/web-pages/videos/introduction/install-and-use-the-microsoft-webmatrix-tool
Also: http://www.asp.net/web-pages/videos/aspnet-razor-pages/getting-started-with-webmatrix-and-aspnet-web-pages
Reading material: http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/getting-started
Love collecting video games, movies and board games!
Enjoying my '11 WRX, so sexy...
engcanada
Member
23 Points
147 Posts
Re: Publishing Razor Pages
Aug 15, 2012 11:23 PM|LINK
Thank you,
I have total remote control over the server. Please let me know which features I need to turned on first before I bother you with the error.
Regards
mebinici
Participant
815 Points
256 Posts
Re: Publishing Razor Pages
Aug 15, 2012 11:26 PM|LINK
Did you setup a website (container) in IIS? Check the ASP.NET tab and verify the version.
Can you copy and paste the error message or check the event log on the server for errors.
Love collecting video games, movies and board games!
Enjoying my '11 WRX, so sexy...
engcanada
Member
23 Points
147 Posts
Re: Publishing Razor Pages
Aug 15, 2012 11:54 PM|LINK
ASP.NET version 2.0
.NET Framework v4.0
The ERROR:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
The page is definately a script.
I guess I need to add either script handler or map handeler. I am not sure as to which and type.
Thanks
CriticalErro...
Member
423 Points
394 Posts
Re: Publishing Razor Pages
Aug 16, 2012 01:03 AM|LINK
Publish from WebMatrix it will upload all the assemblies required.
My Site | My Blog
engcanada
Member
23 Points
147 Posts
Re: Publishing Razor Pages
Aug 16, 2012 01:26 AM|LINK
That was exactly what I was trying to do in the first place via webmatrix choosing from one of the 2 publishing options:
1) webdeploy
2) FTP publishing
I chose ftp publishing and I keep getting the follwoing error:
Rebex.Net.FTPResponse
engcanada
Member
23 Points
147 Posts
Re: Publishing Razor Pages
Aug 16, 2012 01:59 AM|LINK
I found the problem and got connected and webmatrix seems to be transferring all the necessary files.
I'll keep you posted if I still get an error.
Thanks for all your help.
engcanada
Member
23 Points
147 Posts
Re: Publishing Razor Pages
Aug 16, 2012 02:08 AM|LINK
Ok, the transfer is complete and I am still receiving the follwoing error:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
davidsa
Member
210 Points
126 Posts
Re: Publishing Razor Pages
Aug 16, 2012 04:28 AM|LINK
See if these links help:
http://forums.asp.net/t/1659167.aspx/1?CSHTML+will+not+be+served+by+the+static+file+handler+
http://forums.asp.net/t/1663361.aspx/1
Be sure to set ASP to 4.0 Integrated Pipeline.
Good luck.