473,396 Members | 1,809 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,396 software developers and data experts.

Downloaded code fails to compile

BBM
Hi everyone,

This is probably a truly stupid question, but here goes.

I'm trying to use the VB version of an application framework. I'm sure it
works. I've been using the C# version for about 2 years.

The errors that I get when I compile are as if inheritance has stopped
working or as if I didn't have a valid reference to the System namespace.
For example a simple framework method that uses the "equals" method fails
because "'Equals' is not a member of Framework.BusObj"

The project references contain a reference to the System namespace, and
Imports System is set for the project.

One additional (probably significant) thing. When the framework projects
are being loaded into VS, I get a message that the .Net Runtime does not
fully trust the location of the code (it's only source at this point). Would
this stop the compiler from using Object.equals in my example above?
Apr 27 '06 #1
3 1063
BBM
Continuing on...

I got rid of the "project location is not fully trusted" messages on load by
changing the code access security settings. I still don't know why I had to
do this as the download is only project source (no .exe's or .dll's).

At any rate I still have the errors I described in my original question.

Thanks for your help.

"BBM" wrote:
Hi everyone,

This is probably a truly stupid question, but here goes.

I'm trying to use the VB version of an application framework. I'm sure it
works. I've been using the C# version for about 2 years.

The errors that I get when I compile are as if inheritance has stopped
working or as if I didn't have a valid reference to the System namespace.
For example a simple framework method that uses the "equals" method fails
because "'Equals' is not a member of Framework.BusObj"

The project references contain a reference to the System namespace, and
Imports System is set for the project.

One additional (probably significant) thing. When the framework projects
are being loaded into VS, I get a message that the .Net Runtime does not
fully trust the location of the code (it's only source at this point). Would
this stop the compiler from using Object.equals in my example above?

Apr 27 '06 #2
BBM
This is supposed to be a Managed Newsgroup. Having this conversation with
myself BITES!

The reason the downloaded code wasn't fully trusted is because of a change
that MS made to the way that Zipped Folders, and VS files in Zipped Folders
work. On NTFS filesystems, if you download Zipped Folders, the folder, and
code projects contained in the folder, are flagged as "untrusted". VS
notifies you that the code is untrusted when you attempt to load the projects
into VS. To get them to load "normally" you can right click on the zipped
folder, and choose the "unblock" button at the bottom of the first property
sheet.

I think this was a change that was made by a recent security "fix". Pretty
soon Windows / .Net will be so filled with kludged security crap that it
will take two days to figure out how to do anything.

on 4/27/2006 at 7:14 AM PST BBM wrote:
Hi everyone,

This is probably a truly stupid question, but here goes.

I'm trying to use the VB version of an application framework. I'm sure it
works. I've been using the C# version for about 2 years.

The errors that I get when I compile are as if inheritance has stopped
working or as if I didn't have a valid reference to the System namespace.
For example a simple framework method that uses the "equals" method fails
because "'Equals' is not a member of Framework.BusObj"

The project references contain a reference to the System namespace, and
Imports System is set for the project.

One additional (probably significant) thing. When the framework projects
are being loaded into VS, I get a message that the .Net Runtime does not
fully trust the location of the code (it's only source at this point). Would
this stop the compiler from using Object.equals in my example above?

Apr 28 '06 #3
BBM
Hi everyone,

My problem was caused by an omission in the documentation of the framework
code I was using. The framework was changed (a project was added to hold
globalized string resources), but the installation instructions failed to
mention that the new project assembly.info contained a strongname key value
that had to be updated to one accessible from VS.

Once updated to my strongname key, the dll compiled properly.

What I don't understand is how this could have possibly caused the behavior
I saw. But it did.

Another stimulating conversation with myself.

"BBM" wrote:
Hi everyone,

This is probably a truly stupid question, but here goes.

I'm trying to use the VB version of an application framework. I'm sure it
works. I've been using the C# version for about 2 years.

The errors that I get when I compile are as if inheritance has stopped
working or as if I didn't have a valid reference to the System namespace.
For example a simple framework method that uses the "equals" method fails
because "'Equals' is not a member of Framework.BusObj"

The project references contain a reference to the System namespace, and
Imports System is set for the project.

One additional (probably significant) thing. When the framework projects
are being loaded into VS, I get a message that the .Net Runtime does not
fully trust the location of the code (it's only source at this point). Would
this stop the compiler from using Object.equals in my example above?

May 2 '06 #4

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

Similar topics

2
by: John Beschler | last post by:
I have a c# function that runs fine in VS.Net when in debug mode; however, when I switch to Relase mode or compile the app, the function fails with "object refernce not set". Here is the whole...
3
by: Fabio Garufi | last post by:
Hi, all, I built the fftw-3.0.1-fma on a LynxOS 4.0 running on a board equipped with a PowerPC G4 7457. To compile it I had to slightly modify the configure script to use the -fvec instead of...
1
by: Trevor Morgan | last post by:
I've been having problems when a templated member function has the same name as ANY previously defined template parameter. Here's the simplest case that demonstrates the problem. This fails to...
1
by: Nobody | last post by:
I'm trying to write a class where I need to sort a list of TreeNode objects in a certain way. So I thought I'd use: List<ListNodeData> and then use the Sort method. I have the code working...
8
by: mastermagrath | last post by:
Hi, I'm about half way through Bruce Eckels thinking in C++ Vol 1. He gives a very short example of how compiler function name decoration helps remove subtle bugs by type-safe linkage. However,...
1
by: deane.barker | last post by:
Is there any recommended solution to this error message? I get it *all the time.* It's seemingly random, but it obviously happens right after I change some code so a page or the app recompiles....
2
by: Serman D. | last post by:
Hi all, I'm trying to complete the samples from the excellent 2003 developerWorks article "Bringing the Power of Regular Expression Matching to SQL" by Knut Stolze: http://tinyurl.com/3bhrnn...
2
by: Philipp Reh | last post by:
Dear group, I recently tried to port some of my code to a VC++8.0 environment. I noticed that some boost::enable_if related code fails to compile there which works under gcc. I've made a...
2
by: tvnaidu | last post by:
Downloaded PowerPC cross compiler tool chain for LINUX, trying to compile C / CPP file, I am getting "Floating Point exception" to compile any file, no problem with regular GCC. any idea why I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.