473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Serves me right for trying something new!

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

Jan 8 '07 #1
4 1328
bo****************@gmail.com wrote:
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.
--
Tom Porterfield

Jan 8 '07 #2
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/P...cle.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

<bo****************@gmail.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
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

Jan 8 '07 #3
I'd email the author of the book, there could be an error in the print.
Jan 8 '07 #4

<bo****************@gmail.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
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.
>
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

Jan 8 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sergi Adamchuk | last post by:
I need determine which web service (class WebService or its inheritors) serveces current request (I need Type instance of class that serves request). For example you wrote your own WebService: ...
2
by: garyusenet | last post by:
I could do with something similiar, can you tell me if you think this would work for me, and if there's any advantage in working with controls this way than how I currently am. At the moment...
161
by: Dan Lenski | last post by:
Hi all, I'm a recent, belated convert from Perl. I work in a physics lab and have been using Python to automate a lot of measurement equipment lately. It works fabulously for this purpose. ...
22
by: ashkaan57 | last post by:
Hi, I am trying to put text on left and right side of the page and used: <div> <span>blah blah</span> <span style="float:right">blah blah</span> </div> The 2nd text does go to the right but the...
1
by: avanti | last post by:
Hi, I am trying to show a context menu on a right click in some of my controls. I want to show it at the right location. However it is getting shown away from the mouse click location. Here is...
5
by: OtisUsenet | last post by:
Hi, I'm killing myself trying to get a "horizontal nav bar" where some text is left aligned, and some is aligned to the right, kind of like this: LEFT ...
7
by: David | last post by:
i think i just realized i'm an idiot. again. (not syntactically correct code... just pieces to illustrate) class StateObject { members like socket, receiveBuffer, receiveBufferSize,...
16
by: news | last post by:
I'm trying to parse an XML formatted post reply, and I can't figure out how to get the value of the right tag. The XML is formatted like this: <A> <foo>val1</foo> </A> <B> <foo>val2</foo>...
5
by: Mani | last post by:
Hi I have created one sample php script to upload excel sheets of very bigger sizes. Also the process happening with each records given in the excel sheets is bit complex. To allow bigger sizes,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.