Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

App won't run with extra "\"
kc
#1 Posted : Friday, February 3, 2006 10:00:02 AM(UTC)
Groups: Member
Joined: 2/3/2006(UTC)
Posts: 5
Location: NJ

When I pass cassini a path, using the configuration api, of "c:\program files\mydir\\mywebapp", cassini crashes if I try to access my app. If I use your management interface and edit the properties, then my app runs fine and cassini doesn't crash. My app reads a path specified by the user and then appends "\mywebapp" to it. It works fine with everything else within my app except cassini. I have modified my configuration UI to catch this, but I just wanted to give you a heads up.
Ultidev Team
#2 Posted : Friday, February 3, 2006 10:59:18 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
To concatenate file path elements correctly, please use System.IO.Path.Combine() method instead of regular string concatenation. That will insure that slashes are present where they should be, and it also removes double slashes.

Regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
kc
#3 Posted : Monday, February 6, 2006 4:19:16 AM(UTC)
Groups: Member
Joined: 2/3/2006(UTC)
Posts: 5
Location: NJ

Thanks, I'll check that out.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.