Creating My Website

Discussion in 'ASP.NET Starter Kits' started by wisemx, Jan 23, 2008.

  1. I can offer some basic tips but I'm sure you know by now this gets rather deep...

    1) Unless IIS is installed locally some of your local Start Kit functions will not behave as they will remotely.
    You do not need to install IIS, Cassini will do most of the work for you, but you can't run your virtual files without IIS.
    On your remote DASP server the root of your site is in its own application pool and you can create applications for other folders.
    Locally you will need to load individual folders to run them as applications, without IIS.
    So when you are testing c:\MySite and everything works in Visual Studio but your blog fails...
    You can open c:\MySite\Blog\ (just the \Blog\ folder) and Cassini will use \Blog\ for the root.
    You don't need to do that with your remote DASP server as you can create an application for \Blog\ in your Control Panel.

    2) There are some settings in your web.config that are a bear to run locally, on XP and Vista.
    The security settings in your remote site are not going to be handled the same as your local system.
    You can however create sections in your web.config for Dev and Remote settings, and you can even load special configs.
    http://weblogs.asp.net/scottgu/archive/2007/09/21/tip-trick-automating-dev-qa-staging-and-production-web-config-settings-with-vs-2005.aspx

    http://weblogs.asp.net/scottgu/archive/2006/11/20/common-gotcha-don-t-forget-to-clear-when-adding-providers.aspx

    http://weblogs.asp.net/scottgu/archive/2006/01/31/437027.aspx
     
  2. For the last 3 months I've been trying to build my website using the ClubSite starter kit. However, I've been having no end of troubles when I try to make modifications, and check them using 'View in Browser'. I get a plethora of errors every time. I know some are related to the ConnectionString, but even when I make the changes, necessary, I keep getting errors. Can someone please explain how to customize these sites before uploading to the host server?

    I keep taking 2 steps forward only to take 15 back. When I run into problems with the pre-built sites, I'm forced to try and build my site from scratch (hence the reason it's taken me so long /emoticons/shakehead.gif ). I would really appreciate any help you can give.

    Draykko </font></font>
     
  3. Thank you wisemx.
    I've downloaded and installed the Club/Extended Starter Kit on my local computer. It's my intent to customize and build the website on my local computer first and then upload the whole kit and kaboodle to the host site. I have IIS (and it is active) installed on my local computer, but I keep having a devil of a time trying to view all the customizations using 'View in Browser' for each page I make changes to.

    By the way I'm using VS 2005 to customize/create my sites. I'm not sure what Cassini is.

    Thanks for your feedback.

    Draykko---
     
  4. In VS 2005 when you right-click on a page and chose View in Browser Cassini starts then loads the page for testing.
    Look at your taskbar and you'll see the server icon.
    You can double-click on that to bring it up, view status or close it.
    btw, when you're testing you can paste the local dev url into another browser.
    By default IE will load the page, but you can change that.
    Firefox has a few quirks with Cassini but you can change that too.
    http://blogs.msdn.com/mikeormond/archive/2007/08/14/vista-firefox-cassini-web-server-visual-studio-web-server-revisited.aspx

    Fortunately some of this is actually fun...Will help to keep you from pulling all your hair out. [​IMG]
    Salute,
    Mark Wisecarver aka wisemx
     
  5. Thanks Mark!
    I appreciate your help in this. I know about browsing on FireFox (which is what I use). I've set the default to FireFox, but like you said, I have noticed some quirks.

    More to come...

    Andre
     
  6. Ok, so here's the first error I get while creating a brand new site:

    Server Error in '/LoungeFTM' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

    Source Error:

    Line 60: <system.web>
    Line 61: <xhtmlConformance mode='Strict'/>
    Line 62: <roleManager enabled='true'/>
    Line 63: <authentication mode='Forms'/>
    Line 64: <compilation debug='true'>


    Source File: C:\Documents and Settings\All Users\Documents\Web Projects\LoungeFTM\clubsite\web.config Line: 62


    Show Additional Configuration Errors:

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Documents and Settings\All Users\Documents\Web Projects\LoungeFTM\clubsite\web.config line 63)

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Documents and Settings\All Users\Documents\Web Projects\LoungeFTM\clubsite\web.config line 71)

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Documents and Settings\All Users\Documents\Web Projects\LoungeFTM\clubsite\web.config line 72)



    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

    All I did was run 'View in Broswer' (no customization yet).

    Andre
     
  7. Hopefully one of the DASP crew will chime in on this one because I can never get Forms authentication to work locally on XP Pro.
    I don't use IIS anymore, too easy to test live on the DASP servers.
    That's a relief for me having run IIS for so many years, I could just about throw a "no-local-IIS needed" party. [​IMG]
    Salute,
    Mark
     
  8. How do you test it live? How do you work on the customizing of your site on the live server? Or do you do the customizing in VS 2005 and then just upload the file every time you want to see the result? Isn't that a bit tedious?

    Andre---
     

Share This Page