Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9030119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:24:37+00:00 2026-06-16T07:24:37+00:00

Hey I wrote an aspx file on a web application project, now i transferd

  • 0

Hey I wrote an aspx file on a web application project, now i transferd the aspx file to a wpf project and i want to load it in a browser.

I’am getting an error when the browser loads:

This page contains the following errors:
error on line 1 at column 2: StartTag: invalid element name
Below is a rendering of the page up to the first error.

Here is my code:

XAML:

 <Button Content="Press Here" Height="145" HorizontalAlignment="Left" Margin="260,175,0,0" Name="button1" VerticalAlignment="Top" Width="271" Background="{x:Null}" Click="AddNewUser" Foreground="#FFF7F1F1" FontSize="18" FontWeight="Bold" FontStyle="Italic" />

C#

 private void AddNewUser(object sender, RoutedEventArgs e)
    {
        System.Diagnostics.Process.Start("Default.aspx");

    }

Could anyone tell me what i’am doing wrong?, is it even possible to open an aspx file in web browser?, if not whats the solution?

Kind reggards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:24:39+00:00Added an answer on June 16, 2026 at 7:24 am

    You are attempting to run an ASPX page directly within a web browser. That’s not possible. An ASPX WebForm needs to be hosted on a web server, executed by this web server and the resulting HTML sent to the browser. Don’t forget that browsers do not even know what an ASPX page is, not how to properly render. Web browsers understand and work with HTML, CSS and javascript.

    So the correct way is to host this WebForm on a web server and then specify the address of this server:

    System.Diagnostics.Process.Start("http://mydomain.com/Default.aspx");
    

    If you don’t have a web server then you could retrieve the generated HTML and then use this HTML in your application:

    System.Diagnostics.Process.Start("file:///c:/work/Default.html");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys I have a weird error I wrote this code against setbubblepopup $(document).ready(function
Hey guys, PHP and MySQL newguy here. Wrote this php file which display the
Hey guys i wrote a quick test. I want delete to call deleteMe which
Hey I am going to write an algorithm for my android application. Now the
hey guys,i'm new to mysql.here i wrote a procedure that error occured: DELIMITER $$
Hey guys I need to print a project that I wrote in C to
Hey I guys I wrote a function to force out a json file, but
Hey I wrote this to grab get a FB page feed and output it
_Hey, I have a question. I want to write application which will have multiple
For instance, if the original message (message 1) is... Hey Jon, Want to go

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.