Help with IIS deployment

Topics: Developer Forum, User Forum
Sep 16, 2008 at 3:40 PM
Edited Sep 16, 2008 at 3:43 PM
Hi, I have a little problem with link paths:
- I created some site templates using the VS2008 ASP.NET dev server
- exported them
- deployed the application to IIS
- installed one of the templates
The problem is that all links are broken. They all should be htpp://localhost/VirtualDirName/something.aspx, but they are htpp://localhost/something.aspx.
Can I make the templates work on IIS or I need to recreate the samples?
Also, should I save the urls with a property like this:

   55 [EditableUrl("Target Url", 100)]

   56         public virtual string TargetUrl

   57         {

   58             get { return (string)(GetDetail("TargetUrl") ?? string.Empty); }

   59             set { SetDetail("TargetUrl", "~" + value, string.Empty); }

   60         }

or with something like this:

   38         [EditableUrl("Target Url", 100)]

   39         public virtual string TargetUrl

   40         {

   41             get { return (string)(GetDetail("TargetUrl") ?? string.Empty); }

   42             set { SetDetail("TargetUrl", value, string.Empty); }

   43         }


Is there any configuration I can make to N2 to automatically use virtual paths?

Thanks,
Adrian

Coordinator
Sep 16, 2008 at 4:10 PM
There isn't any such feature by default but I figure this could be made to work with something like this:

SetDetail("TargetUrl", Url.ToRelative(value))

and perhaps a ToAbsolute when reading.

How do you get that fancy code coloring by the way?
Sep 16, 2008 at 4:49 PM
That would be something nice to have. Seems that I must recreate the templates...
Regarding the code coloring I use a VS add-in called CopyAsHtml http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/11/21/copy-source-as-html-copysourceashtml-for-visual-studio-2008-rtm.aspx

Adrian