How to publish an ASP.NET MVC application to a free host -


i'm building asp.net mvc application , i'm trying deploy on free host (0000free) support asp.net. tried couple of things, none of them worked (i.e. see directory structure when browse web site):

  1. publishing local folder , copying published files via ftp on host (in public_html directory).
  2. publishing via ftp root folder: ftp.mywebsite.com
  3. publishing via ftp public_html folder: ftp.mywebsite.com/public_html

usually drop html files in public_html folder, i'm getting feeling deployment process mvc application different. have modify web.config or other filer? how 1 deploy mvc application (on free host)?

update:
have learned host uses mono , supports .net 4.0, i'm still not able deploy.

i have visual studio 2010 , used publish feature (i.e. right click on project name , click publish) , tried several things:

  1. publish method: ftp root folder.
  2. publish method: ftp publich_html folder.
  3. publish method: file system root folder.
  4. publish method: file system publich_html folder.
  5. publish method: file system local directory on computer , ftp root , tried public_html folder.
  6. i went cpanel (control panel) try , see if asp.net has added/enabled web site, didn't see there.
  7. i can't browse index.aspx nor can redirect index.html (as suggested other posts on host forum), right have link index.html index.aspx it's not working either (see http://www.mydevarmy.com)
  8. i've tried renaming index.aspx default.aspx, doesn't work either.

the search utility of forum of host weak, use google search forum: http://www.google.com/search?q=publish+asp.net+site%3a0000free.com%2fforum%2f&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-us:official&client=firefox-a

i've been reading pro asp.net mvc framework , have chapter publishing, doesn't provide specific information respect location of publishing, (and it's not helpful in case):

where should put application?
can deploy application folder on server. when iis first installs, automatically creates folder web site called default web site @ c:\inetpub\wwwroot\, shouldn’t feel obligation put application files there. it’s common host applications on different physical drive operating system (e.g., in e:\websites\ example.com). it’s entirely you, , may influenced concerns such how plan server.

here error when try view index.aspx page:

unrecognized attribute 'targetframework'. (/home/devarmy/public_html/web.config line 1)  description: http 500. error processing request.  stack trace:  system.configuration.configurationerrorsexception: unrecognized attribute 'targetframework'. (/home/devarmy/public_html/web.config line 1)   @ system.configuration.configurationelement.deserializeelement (system.xml.xmlreader reader, boolean serializecollectionkey) [0x00000] in <filename unknown>:0    @ system.configuration.configurationsection.dodeserializesection (system.xml.xmlreader reader) [0x00000] in <filename unknown>:0    @ system.configuration.configurationsection.deserializesection (system.xml.xmlreader reader) [0x00000] in <filename unknown>:0    @ system.configuration.configuration.getsectioninstance (system.configuration.sectioninfo config, boolean createdefaultinstance) [0x00000] in <filename unknown>:0    @ system.configuration.configurationsectioncollection.get_item (system.string name) [0x00000] in <filename unknown>:0    @ system.configuration.configuration.getsection (system.string path) [0x00000] in <filename unknown>:0    @ system.web.configuration.webconfigurationmanager.getsection (system.string sectionname, system.string path, system.web.httpcontext context) [0x00000] in <filename unknown>:0    @ system.web.configuration.webconfigurationmanager.getsection (system.string sectionname, system.string path) [0x00000] in <filename unknown>:0    @ system.web.configuration.webconfigurationmanager.getwebapplicationsection (system.string sectionname) [0x00000] in <filename unknown>:0    @ system.web.compilation.buildmanager.get_compilationconfig () [0x00000] in <filename unknown>:0    @ system.web.compilation.buildmanager.build (system.web.virtualpath vp) [0x00000] in <filename unknown>:0    @ system.web.compilation.buildmanager.getcompiledtype (system.web.virtualpath virtualpath) [0x00000] in <filename unknown>:0    @ system.web.compilation.buildmanager.getcompiledtype (system.string virtualpath) [0x00000] in <filename unknown>:0    @ system.web.httpapplicationfactory.inittype (system.web.httpcontext context) [0x00000] in <filename unknown>:0  

if hosting provider supports asp.net mvc deployment process shouldn't different 1 normal asp.net application. if doesn't attempt bin-deployment. , here's another article on msdn.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -