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

Unable to reference files..

VJ
My application is installing files in C:\Program Files\Common Files\Company
Name\Shared Files\. The application installed cannot find files in this
directory. I thought putting this in Path (system) variable should help!. I
even restarted the computer... what should I do?

VJ
Nov 16 '05 #1
12 1377
VJ,

Well, the simple answer is to remove those files from the install. If
your application is completely managed, then why are you not just placing
all of the files in the application directory?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
My application is installing files in C:\Program Files\Common
Files\Company Name\Shared Files\. The application installed cannot find
files in this directory. I thought putting this in Path (system) variable
should help!. I even restarted the computer... what should I do?

VJ

Nov 16 '05 #2
The .Net CLR is programmed to look, for an assembly, up the BIN, the GAC
and the URL specified in the app's config file to download and other
related files of the application.

What type of files are you talking about ?

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
VJ
I should have said this. We have 5 applications and would like to share like
6 Dll's among these applications. All five applications are installed
separately. I want to be able to put these 6 DLLs in common location and
make it available for all 5 applications. I don't think shipping them with
each package is also a great idea. Plus the requirement is also that one of
the container application would refer to the other 4 applications and
certain Dll's, & will not carry these common Dlls in its package

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
My application is installing files in C:\Program Files\Common
Files\Company Name\Shared Files\. The application installed cannot find
files in this directory. I thought putting this in Path (system) variable
should help!. I even restarted the computer... what should I do?

VJ

Nov 16 '05 #4
VJ,

If that is the case, then when you want to update a component, you would
have to make sure that the five applications have been shut down (for the
most part, unless you are working with multiple application domains, then
you can just shut down those application domains which have your component
loaded).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:eu**************@TK2MSFTNGP14.phx.gbl...
I should have said this. We have 5 applications and would like to share
like 6 Dll's among these applications. All five applications are installed
separately. I want to be able to put these 6 DLLs in common location and
make it available for all 5 applications. I don't think shipping them with
each package is also a great idea. Plus the requirement is also that one of
the container application would refer to the other 4 applications and
certain Dll's, & will not carry these common Dlls in its package

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
My application is installing files in C:\Program Files\Common
Files\Company Name\Shared Files\. The application installed cannot find
files in this directory. I thought putting this in Path (system) variable
should help!. I even restarted the computer... what should I do?

VJ


Nov 16 '05 #5
VJ
I still have not resloved this?... without using the GAC how do I shared
files (dlls) across two of my .NET applications

Thanks
VJ

"VJ" <vi********@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
My application is installing files in C:\Program Files\Common
Files\Company Name\Shared Files\. The application installed cannot find
files in this directory. I thought putting this in Path (system) variable
should help!. I even restarted the computer... what should I do?

VJ

Nov 16 '05 #6
VJ
How do I specify the URL in config file and make the application look for
it?

VJ

"Ravichandran J.V." <jv************@yahoo.com> wrote in message
news:uy*************@TK2MSFTNGP14.phx.gbl...
The .Net CLR is programmed to look, for an assembly, up the BIN, the GAC
and the URL specified in the app's config file to download and other
related files of the application.

What type of files are you talking about ?

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #7
For a strong named assembly you can use a codebase hint. Look up the <codebase> element in teh application config file

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I still have not resloved this?... without using the GAC how do I shared
files (dlls) across two of my .NET applications

Thanks
VJ

"VJ" <vi********@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
My application is installing files in C:\Program Files\Common
Files\Company Name\Shared Files\. The application installed cannot find
files in this directory. I thought putting this in Path (system) variable
should help!. I even restarted the computer... what should I do?

VJ


Nov 16 '05 #8
VJ
for not a strong named what do we do?

VJ

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:O0**************@TK2MSFTNGP15.phx.gbl...
For a strong named assembly you can use a codebase hint. Look up the
<codebase> element in teh application config file

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I still have not resloved this?... without using the GAC how do I shared
files (dlls) across two of my .NET applications

Thanks
VJ

"VJ" <vi********@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
My application is installing files in C:\Program Files\Common
Files\Company Name\Shared Files\. The application installed cannot find
files in this directory. I thought putting this in Path (system)
variable
should help!. I even restarted the computer... what should I do?

VJ

Nov 16 '05 #9
non-strong named assemblies cannot be loaded from outside of the appbase (the directory the app is run from) without using explicit loading using Assembly.LoadFrom (which takes an explicit path to the assembly) and thenyou'll have to access the types via latebound instantiation

Or you could hack it by installing both apps into the same directory

Is there some reason you don't want to strong name the assembly?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

for not a strong named what do we do?

VJ

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:O0**************@TK2MSFTNGP15.phx.gbl...
For a strong named assembly you can use a codebase hint. Look up the
<codebase> element in teh application config file


Nov 16 '05 #10
VJ
No particular reason...Just was exploring the other options.. I will strong
name it and then try the codebase attribute.. looks like a more secure and
smooth way to do it..

Thanks
VJ

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:Ol**************@TK2MSFTNGP12.phx.gbl...
non-strong named assemblies cannot be loaded from outside of the appbase
(the directory the app is run from) without using explicit loading using
Assembly.LoadFrom (which takes an explicit path to the assembly) and
thenyou'll have to access the types via latebound instantiation

Or you could hack it by installing both apps into the same directory

Is there some reason you don't want to strong name the assembly?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

for not a strong named what do we do?

VJ

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:O0**************@TK2MSFTNGP15.phx.gbl...
For a strong named assembly you can use a codebase hint. Look up the
<codebase> element in teh application config file

Nov 16 '05 #11
VJ
Thanks Richard the signing key worked pretty well..... Had to figure out the
deal with some COM dll's we were using that complained as not signed... The
AXimp.exe util took care of that problem... I just have one question.. are
there are any disadvantages to using one key for all our company's
assemblys?

VJ

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:Ol**************@TK2MSFTNGP12.phx.gbl...
non-strong named assemblies cannot be loaded from outside of the appbase
(the directory the app is run from) without using explicit loading using
Assembly.LoadFrom (which takes an explicit path to the assembly) and
thenyou'll have to access the types via latebound instantiation

Or you could hack it by installing both apps into the same directory

Is there some reason you don't want to strong name the assembly?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

for not a strong named what do we do?

VJ

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:O0**************@TK2MSFTNGP15.phx.gbl...
For a strong named assembly you can use a codebase hint. Look up the
<codebase> element in teh application config file

Nov 16 '05 #12
You specify the url through a codebase element in the app/web.config
file. You can test this by adding a reference to a DLL but after
successful completion delete the DLL. You will get exceptions related to
"Trying to download "file" etc. This technique is called probing that
is done through the <codeBase> element.

For example, the following sets a codebase url for an assembly

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<codeBase version="2.0.0.0"
href="http://www.litwareinc.com/myAssembly.dll"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

The above can be found in msdn at

http://msdn.microsoft.com/library/de.../en-us/cpgenre
f/html/gngrfCodeBase.asp

You can set this element when using the .Net Framework Configuration 1.1
tool in the Administrative Tools when you are configuring an application
or you can manually code it into the web.config file. Remember to
copy/paste the above into the web.config file separately.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #13

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

Similar topics

1
by: Joel Finkel | last post by:
Folks, I am unable to execute any ASPX files on a Windows 2000 Server, running as a Primary Domain Controller. The error is "Error BC31019: Unable to write to output file '<filename>'" By...
3
by: Saman | last post by:
I have a third party dll and I am sure that it is not an activeX or dotnet assembly . I have check it up with Dependency Walker software and found the list of it's exported function in C++ syntax...
1
by: Dan | last post by:
Environment: Win2k Server, ASP.NET(v1.1.4322) Everything seemed to work fine till this morning...and than this happened What could this possibly mean? Is it the file? (The file in the error...
1
by: Dave | last post by:
I have a web service on a site and I want to add a web reference to it in my VS 2003 project. The service is sitting on a site enabled with basic auth. I login, I find the service OK but when I...
0
by: Amil | last post by:
I've upgrade to VS 2005. I have several pages that dynamically load user controls; I get an exception like: "Unable to cast object of type 'ASP.xxxxx' to type" I've investigated and found...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
by: rkgarimella9 | last post by:
Hi All, I'm encountering with an error countinously whenver i'm trying to Add an Web Reference to my Windows Application. The details are as follows:- Unable to download following files from...
1
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
Hello, Using VS2008 in a C# web service application, a class has been created that inherits from the ConfigurationSelection. This class file has been placed in the App_Code folder. The...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.