Serves me right for trying something new!

  • Thread starter Thread starter boris.merryweather
  • Start date Start date
B

boris.merryweather

Hi,
I'm VERY new to C#.
I've bought a book (always a bad move) called "Build a Program Now.
Visual C#" by Patrice Pelland.

I got to chapter 4 without difficulty.
I then started the project in chapter 4, "Create your own web browser
in less than five minutes".
I fell at the first hurdle (page 53 for those of you that have the
book), where he says "3) Press F5 to compile and execute the
application". That's where the problems occurs.

I get an error message over the following line:
InitializeComponent();
Which says, amongst the other trouble shooting tips, "When deployingh
an office solution, check to make sure that you have fulfilled all the
necessary security requirements" and "Use a certificate to obtain the
required permission(s)".

Now, I'm hoping that this means something to someone and you can point
me in the right direction.
I'm guessing that there is some sort of box I have to tick, check or
fill-in somewhere within the C# environment to get me past this
problem, otherwise the remaining 158 pages are not goint to get read.

I'm on an SBS2003 server and pottering with this from behind a
firewall. Could that be the cause of the problem?

TIA
Boris
 
Hi,
I'm VERY new to C#.
I've bought a book (always a bad move) called "Build a Program Now.
Visual C#" by Patrice Pelland.

I got to chapter 4 without difficulty.
I then started the project in chapter 4, "Create your own web browser
in less than five minutes".
I fell at the first hurdle (page 53 for those of you that have the
book), where he says "3) Press F5 to compile and execute the
application". That's where the problems occurs.

I get an error message over the following line:
InitializeComponent();
Which says, amongst the other trouble shooting tips, "When deployingh
an office solution, check to make sure that you have fulfilled all the
necessary security requirements" and "Use a certificate to obtain the
required permission(s)".

Now, I'm hoping that this means something to someone and you can point
me in the right direction.
I'm guessing that there is some sort of box I have to tick, check or
fill-in somewhere within the C# environment to get me past this
problem, otherwise the remaining 158 pages are not goint to get read.

I'm on an SBS2003 server and pottering with this from behind a
firewall. Could that be the cause of the problem?

If you want help from more than those who have read the bok and are familiar
with the specific example, could you post a short but complete program that
reproduces the problem? Or at least state the exact line of code and all
relevant information about it that is causing the error, as well as the
exact details of the error including error number and full text of the error
message.
 
If you're new to software development a web browser isn't always a great
place to start. They probably use it as an example for the "wow" effect.
It gives people confidence that "there isn't much to this programming stuff"
and they can demonstrate their new browser to their friends. Of course
they've only dropped a browser component onto a form but I don't want to
spoil the illusion :-)

In any case if you mean this Patrice Pelland http://blogs.msdn.com/ppelland/
(and she refers to the book on her blog) I don't imagine she would mind an
e-mail asking for help or for a pointer to some spot (newsgroup) where
people who have followed her book might hang out.

I can't tell you what it wants or how to fix it but I'll guess that it is
related to all the security issues surrounding unrestricted Internet access.
You "probably" (I use the term guardedly) need to generate some sort of
digital certificate (known as a "self cert" because you're going to
authorize yourself) so the Internet components know who you are.

Google is your friend:
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=194 read this
article and the reference articles supplied to get you started and afterward
I'd suggest you contact the author of the book.

Tom
 
I'd email the author of the book, there could be an error in the print.
 
Hi,
I'm VERY new to C#.
I've bought a book (always a bad move) called "Build a Program Now.
Visual C#" by Patrice Pelland.

I got to chapter 4 without difficulty.
I then started the project in chapter 4, "Create your own web browser
in less than five minutes".
I fell at the first hurdle (page 53 for those of you that have the
book), where he says "3) Press F5 to compile and execute the
application". That's where the problems occurs.

I get an error message over the following line:
InitializeComponent();
Which says, amongst the other trouble shooting tips, "When deployingh
an office solution, check to make sure that you have fulfilled all the
necessary security requirements" and "Use a certificate to obtain the
required permission(s)".

Have you saved your project on a network share? You'll need to copy it to
the local hard disk or change the .NET Runtime permissions for anything to
work.
 
Back
Top