Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi
I'm a beginner in asp.net, have finished my first form, everything works fine in testing out of VS 2008, the form is displayed in FireFox (most recent version), autocomplete works. Then I built the stuff, published it and moved the generated path to the working directory for localhost. The parent called my form and firefox displayed:
XML Parsing Error: not well-formed Location: http://localhost/dynamische_website/KontaktFormular/KontaktForm.aspx
Line Number 1, Column 2:<%@ page language="C#" autoeventwireup="false" inherits="KontaktFormular, App_Web_hrddzj4a" %>


The parent is index.html in localhost/dynamische_website, here is in the directory KontaktFormular the file KontaktForm.aspx, the first line causes this error.

What I'm doing wrong?
Please help
Thanks in advance MiKr41
Posted
Comments
Sergey Alexandrovich Kryukov 1-Oct-13 17:55pm    
What are you doing wrong? — Not showing your code is wrong.
What does it mean, "called a form"? Can you run it under the debugger and see where the exception is thrown? And show relevant code?
—SA

1 solution

Replace this
C#
<![CDATA[<%@ page language="C#" autoeventwireup="false" inherits="KontaktFormular, App_Web_hrddzj4a" %>]]>

with
C#
<![CDATA[<%@ page language="C#" autoeventwireup="false" inherits="KontaktFormular.KontaktForm" %>]]>


Thanks
 
Share this answer
 
Comments
Member 10284036 3-Oct-13 3:33am    
Hi Mr. Singh, thank you very much for your advice - trying to compile I receive an error: type "KontaktFormular.KontaktForm could not be loaded" - ?
Your's MiKr41
Gitanjali Singh 3-Oct-13 3:52am    
ok try by replacing KontaktFormular with soluiton name , under which your project is built.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900