I am developing an WPF browser application on VS2008. Whe I build the project it says cannot find "C:.....xbap". Make sure the internet address or path is correct? What could be the reason.
Thanks
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Devin21 reputationPosted Jun 19, 2009, 3:18 PM EDT
-Devin
Raveendar Oddi3 reputationPosted Jun 21, 2009, 8:50 PM EDT
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace MyWPFBrowser
{
///
/// Interaction logic for Page1.xaml
///
public partial class Page1 : Page
{
public Page1()
{
InitializeComponent();
}
private void btnOnline_Click(object sender, RoutedEventArgs e)
{
WebOuput.Navigate(new Uri("http://dtkht.com"));
}
private void btnLocal_Click(object sender, RoutedEventArgs e)
{
WebOuput.Navigate(new Uri("http://localhost:1535/Website/Default.aspx"));
}
private void btnCustom_Click(object sender, RoutedEventArgs e)
{
Uri SiteAddress = new Uri(txtInput.Text.Trim(), UriKind.RelativeOrAbsolute);
if (SiteAddress.IsAbsoluteUri)
{
WebOuput.Navigate(SiteAddress);
}
}
private void btnJS_Click(object sender, RoutedEventArgs e)
{
string ret = WebOuput.InvokeScript("ChangeColor", txtInput.Text.Trim()).ToString();
MessageBox.Show(ret);
}
}
}