C# - Share Libraries Without Using The GAC?
Sep 9, 2010
I have a library that is meant to be used by many websites. The way I am doing it now is in the library's properties, I set the "Post-build event command line" to: copy "$(TargetPath)" "$(SolutionDir)MyWebsitein$(TargetFileName)"
Every time I want a new website to use the shared library, I add a new line like this: copy "$(TargetPath)" "$(SolutionDir)MyWebsite2in$(TargetFileName)"
Is there an easy or better way to do this besides using the GAC?
View 1 Replies
Similar Messages:
Jun 10, 2010
I need a code to have the ability to share my news on social networks.My site structure is in Asp.net and vb.net.
View 1 Replies
Jun 29, 2013
I am showing thumbnail images in dataList on a page of my website. When i click on any image they open in big size. How i will share(Facebook). that particular big size image. My code is given below:
<script type="text/javascript">
var CurrentPage = 1;
function GetImageIndex(obj) {
while (obj.parentNode.tagName != "TD")
obj = obj.parentNode;
var td = obj.parentNode;
[CODE]..
View 1 Replies
Mar 4, 2011
I have an ASP.NET MVC application that attempts to read a file in using a filestream and File.OpenRead().
When the path to the file is a share on the same workgroup, and I give access to NETWORK SERVICE for the share, this works perfectly as desired.
However, when the path to the share is a UNC path to a remote share within the LAN, with read permissions open for "Everyone", the "File.OpenRead()" method throws an exception saying "Could not find a part of the path".
In my test cases I'm debugging locally with the ASP.NET MVC app being given a UNC path to the computer that it's actually running on. It's a share on my C drive, being "Shared" with permissions to "Everyone" for read access.
Is there something in IIS that needs to be configured? If I try to impersonate, in this context, the impersonation doesn't matter because NETWORK SERVICE was the user trying to access the files when it worked for a share in the same workgroup.
View 2 Replies
Jan 19, 2010
We have an application coded in .NET 1.1. We plan to upgrade to .NET 3.5
But there are few core libraries written in .NET 1.1 that we use from other groups.My question is will our 3.5 app can still reference those 1.1 libraries? Or do we have convert them also to .NET 3.5?
View 3 Replies
Nov 21, 2010
I have a Solution that has two class libraries. I'm trying to convert the whole solution from asp.net 3.5 to 4.
Right now the libraries are in my Visual Studio 2008 projects folder. I've installed VS 2010. Should I just copy the libraries from the 2008 project folder to my 2010 project folder and open them in VS 2010?
What is the best practices for this? The entire solution is in a single folder in my VS 2008 Project folder, and each application and class library is in their own subfolder.
View 3 Replies
Jul 16, 2010
In .net framework. what are libraries available for working in sharepoint and their uses
View 1 Replies
Jan 1, 2010
I work with many diverse technologies, and don't possess the time to evaluate every single UI framework, so I'd appreciate hearing other coders' experiences with various frameworks.
The stuff I've worked with so far (and my perceptions):
WinForms: DevExpress (love the looks, hate the API and bloat), Krypton (free!, looks good, but limited), Telerik (don't like the looks)WPF: have only used WPF Themes pack. Asp.Net: Telerik MVC Controls (love it), jQuery UI (looks great)
View 1 Replies
Jan 22, 2010
Task is to develop class libraries that can be re-use in projects but assambies should be copy righted. By this I mean developer will not give the code of class libraries to the clients yet they will provide the code of there sites/ applications, these libraries will be used just as internal development libraries. I want to make Business Logic Layer, DAL, Business Objects as class libraries
Q1. How I can control unathorised use of libraries ?
Q2. How to make assamlies non extendable ?
Q3. What security measurs I should take on this.
View 6 Replies
Jan 12, 2011
I am starting an MVC application and designing the class libraries structure at the moment. I started off with the following class library structure as below.
[code]....
As there will be about 3-4 developers working on the project I thought it might be useful to split out each section of the application into their own class libraries so each developer can work on a different section without interferring with each other.
In our application we have 5 tabs e.g. Dashboard, Admin, Reports, Editor, Subscribers. Would it be wise to put each tab into its own class library like below.
[code]....
View 1 Replies
Jan 11, 2010
Does anyone know of a good treeview control/libraries that is free, and fully customizable? Different nodes need to be able to have different icons/folder images. It needs dashed lines to show the parent nodes, etc, etc.
View 9 Replies
Sep 18, 2010
I'm in the process of building a webforms site. In the grand tradition of programmers, I have been looking for collections of skins/themes/css for asp.net controls to avoid the work of building them myself.Especially since I'm graphically challenged. I've found numerous sites with templates for drupal, DNN, etc but the only places I've found asp.net control themes/skin/css collections is within commercial component libs that cost more than i'm able to afford.
The absence of these collections is also making me question how I'm building the site since I assume the "theme" sites would be providing these collections if there was a demand.
Can anyone point me to where I can find inexpensive or free asp.net theme/skin collections or give me some pointers about how to build a site without requiring a bunch of work to create them from scratch.
View 1 Replies
Oct 7, 2010
I'm getting a couple of libraries from Google / Microsoft CDNs.
ONLY one page on the system uses SSL but since I'm referencing libraries on the master page I'm getting the javascript libraries using the SSL so the single page that actually requires it doesn't throw security errors because accessing unsafe resources.
I've read that the browser cache doesn't work for most of the browsers if the resource is loaded using SSL, my test using fiddler indicates the opposite (Firefox and IE).
What's the truth? I'm using the CDN for improving performance so if getting the library using SSL is against my purpose, I would revert this "improvement".
I could build send the code for referencing the library on the code behind ans use SSL or not according the case, but I would like to avoid this.
View 3 Replies
Nov 30, 2010
I have some code in the web application which reads data from excel and saves to the db, and also functionlaity to generate new excel files, based on user input. ITs working ifne in local, but once deployed on the test server, i get the error
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified
For this I tried to insall the PIA 2003 version on the server, The server has only .NET 2.0 framework. FOr the PIA to install what are the requirements? A Microsoft Office Product should be present on the server?
When I tried to install on the server, I got the message "Product: Microsoft Office 2003 Primary Interop Assemblies -- Configuration completed successfully", but whn looked in GAC, the Interop excel dll was not there.
Whats worng with the installation? Whats the minimum requirement on the server to install the PIA?What are the oher options to copy PIA to the GAC in the server?
View 1 Replies
Jan 18, 2010
our dev shop uses the naming guidelines as laid out in MS's MSDN content "Design Guidelines for Developing Class Libraries". It's a pain though having to refer to this via the web only. Does anyone know if this content is available in PDF or CHM format? My devs are resisting reviewing the webpage and I think sticking a portable file in their face might be more successful.
View 2 Replies
Jan 27, 2010
I have a Solution with a web project and some class libraries. The enumerations are in a the enumerations folder within my web project. I would like to make some of the enumerations available to other class libraries within my Solution. Should I just add another class library and call it Enumerations to my Solution so that all class libraries and my web project can access them?
View 3 Replies
Sep 13, 2010
We are currently developing an ASP.NET MVC application which will be deployed on a corporate intranet, with a slightly-modified customer facing version available on the public internet.We're making use of a number of external javascript libraries (e.g. jQuery) and a discussion has come up regarding referencing the libraries - should we reference them from an external source (e.g. via the Google load jQuery method) or keep our own version locally and reference from there?The project manager is a little concerned about having a 'dependency' on Google (or whoever) if we reference from there, and thinks that having our own copy of the library makes us more independent. On the other hand, I have heard there are a number of advantages to letting someone else host the library - for example, they handle versioning for us, Google aren't going anywhere anytime soon...
(for the purpose of the discussion assume the intranet we're hosting on has external access - obviously if it turns out it doesn't the decision is very much made for us!)So. Does this matter? And if so, what should we do and why?(I appreciate this is subjective - but it would be very useful to get advice from anyone with experience or thoughts on the matter. Not sure if this is a candidate for community wiki or not, let me know if I should have put it there and I'll know for future!)
View 5 Replies
May 31, 2010
Is it possible to version a asp.net site like doing so with AssemblyInfo.cs in Class Libraries?
View 2 Replies
Jun 29, 2010
Is there any good code (paid or open source) out there for:Handling PPC ads on our site? This would (hopefully) include pages to create ads, reports of ads run, determining what ad to show, and tracking billing.Adding comments to our site? This would (hopefully) include up/down/inappropiate votes on other's comments.A product catalog? This would (hopefully) include advanced search and entering product items.
View 1 Replies
May 5, 2010
CRRedist2008_ia64.msi installs the crystal reports runtime dlls in the GAC.
However, I would like to install these dll in the bin directory of my .NET project and deploy. I copied all the Crystal Reports dlls which gets installed by CRRedist2008_ia64.msi in the GAC ino the in directory of the project and referenced these dlls in my project. However, I still get the following error message.
Is there a way to not install the runtime but copy the dlls manually?
Server Error in '/***_net' Application.
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. [URL]
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. [URL]
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
View 3 Replies
Feb 18, 2010
I want to move some class libraries (server controls in a .NET 4.0 solution) from one folder in windows explorer to another.
How can I do this and not break anything in the actual .NET solution?
View 1 Replies
Mar 14, 2011
Short question: what the highlighted option for? I just don't see any difference mark it vs.
View 1 Replies
Aug 20, 2010
I am having problems with a user control. I want my solution to have a separate project for holding my user controls.The main project can get a reference to this user control project and can import this user control dll into my main project.
View 3 Replies
Feb 17, 2010
Has anyone seen any solid libraries for working with active directory (mainly user related stuff) in C# and asp.net. Am I better off intergrating with asp membership or building something customised.
I took a look at LINQtoAD but it doesnt seem to be active anymore.
View 2 Replies
Jan 27, 2011
I am using ajax control toolkits and ajax extentions in my projects. and as you know it overhead some libraries to page. How can I combine them into 1 js file to reduce requests to server ???
View 2 Replies