How Do You Include A Non-referenced Dll When Publishing A Web Application

Dec 30, 2010

I have various dll's that I am not directly referencing in a ASP.NET website I am attempting to publish via the "Package/Publish Web" feature in Visual Studio 2010.

How can I tell the publishing feature that it needs to include these certain files?

Note that I do not want to directly reference these dll's (the solution has specifically been setup in a way so that these specific dll's are not directly referenced).

I've found a <ExcludeFilesFromDeployment/> but I can't find a way to specifically include files.

View 3 Replies


Similar Messages:

Force VS Or Asp Application To Use Referenced DLL

Nov 19, 2010

There is an ASP.NET Web application that makes use of a reference DLL. The same DLL is registered in GAC. Is there a way to force VS or ASP.NET application to make use of the referenced DLL inside Bin folder rather than using the one in GAC?

View 2 Replies

Web Forms :: How Do You Obtain The Absolute Web Application Path In Class Called From A Referenced Dll In A We...

May 1, 2010

I have a class (.cs) in my web application project called CompanyResponseInfo.cs. This class inherits from a class called, ResponseInfo.cs, which is from a class library which is referenced as a compiled dll in the web application. CompanyResponseInfo is called from the ResponseInfo base class. In the CompanyResponseInfo class I need to build a file path to a file that resides in the directory 'web root/resources/standard.xslt'.

Now i know that because CompanyResponseInfo is instanciated from within the inherited ResponseInfo class from a referenced library, the 'System.Web.HttpContext.Current' object is null so I cannot gain access to MapPath and all the other Server object properties for me to obtain path properties relating to the web application.

I have also tried using 'System.Web.Hosting.HostingEnvironment.MapPath' which did work locally, but when I put the web application on our test IIS server it never worked correctly as it seemed to use the path in which IIS resides.

I guess this would be a common problem, so what are my options in my case when I need to get the absolute web application path so I can use it to get the absolute path for a XSLT file so I can load it into the XslCompiledTransform.Load()?

View 3 Replies

Publishing An Asp.net Web Application

Jan 4, 2010

I want to know a few things about Publishing an asp.net web application,

Why should i publish my web application? What are the advantages of publishing a web application?

View 3 Replies

Installation :: Cannot Login After Publishing Web Application In IIS

Jan 26, 2011

have a problem when published web application in IIS.

First of all, I converted my web application from 2008 version in 2010 version of visual studio, but I didn't change the framework, so framework is 3.5. This application is writen in c#.net.

I published it succesfully in IIS. The problem is that this application run , but when I try to login , it remain in the same page , so I cant login ,cant go inside my application. It seems like the server redirect the browser in the same conten page.

View 8 Replies

One Click Publishing A Web Application Without Restarting It

Mar 22, 2011

I have installed Web Deployment service on a Windows 2008 machine, started using one click publishing in VS2010 and it works.

With one glitch, even though I change a view only file (like a *.cshtml razor file which is not compiled), web site is restarted. Therefore user sessions are lost. Maybe I am missing something so trivial, because it knows uploading only the changes.

Does anyone know whether restarting can be prevented using one click publishing or not?
If not, suggestions are welcome ^_^

View 2 Replies

Iis7 - Exception After Publishing Asp.net Web Application

Feb 23, 2011

I have a web application and when I decided to test on IIS 7 i have this Exception when trying to load a couple of pages that uses Entity Framework 4. I use EF 4 with my own CRUD assemblies but sometimes using the EntityDataSource. I have noticed that the problem is not appearing in all my Web Pages but I think in those that I use the EntityDataSource.

Here's the log from a Page:

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

mscorlib

System.Type[] GetTypes(System.Reflection.RuntimeModule)

at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly()
at System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load()
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData)
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors)
at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage)
at System.Web.UI.WebControls.EntityDataSourceView.ConstructContext()
at System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)

................it's not complete but I guess you can see the latest breadcumb...

Just for more info i post another page problem.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

mscorlib

System.Type[] GetTypes(System.Reflection.RuntimeModule)

at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly()
at System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load()
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData)
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors)
at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage)
at System.Web.UI.WebControls.EntityDataSourceView.ConstructContext()
at System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at System.Web.UI.WebControls.FormView.DataBind()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.FormView.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I think its the EDM problem but I can't get through.
I should mention that in my development pc is working all perfectly!!!

My controls are DevExpress but I dont think this should play any role!

[EDIT]

Forgot to mention that I use Self tracking Template with the Entities.tt in a separate assembly!

[EDIT 2]

On my local Windows 7 IIS works OK! It's Windows Server 2008 I can't get it done!

View 1 Replies

Configuration :: Publishing Web Application To Website?

Nov 29, 2010

I am trying to move my web application from my computer to a server by publishing as a web site. But, after publishing, the user controls defined in the designer files are no longer recognized by the code behind.

View 5 Replies

Configuration :: Publishing Website / Application On Localhost

Nov 16, 2010

How to publish the website/application on localhost and what should be entered in browser while accessing it from localhost

View 1 Replies

SQL Reporting :: .rdl Report To Be Used In Web Application W/o Publishing To ReportServer?

Apr 22, 2010

I have a .rdl report generated by using Report Server Project(BIDS).I want to use this existing rdl report in my web application without deploying it to Report Server...i.e i want that .rdl report object so that i can additinal columns dynamically and display that report in ReportViewer

View 1 Replies

Configuration :: Images Not Visible After Publishing Web Application?

Nov 18, 2010

i have built a webapplication using VS08 and IIS 5.1

then i published it to IIS but now i have noticed that the images the application has are not visible.

also the Javascript that i have added are not being added.

this was not the case when i was developing the application.

i was sure that i was path problem but i changed it <img alt="Loading" src="images/progress.gif" />

still the image is not being shown.

also if i try to browse the path http://localhost/MyApplication/images/progress.gif then i see this message

You are not authorized to view this page

View 4 Replies

Security :: Publishing Application On Windows Server 2008 And IIS 7

Dec 12, 2010

i published an application on windows server 2008 and IIS 7 i am facing a problem when user are trying to access the server or the web application in address they put ip address of the server /application a pop up screen asking for username and password problem IIS on windows server 2008 ..the server is configured it s making me crazy it s asking users for username and password

View 3 Replies

Include MVC 3 Views In Web Forms Application

Dec 15, 2010

I am developing one new area of a fairly large web application using MVC3 and Razor, where the rest of the application is ASP.NET 4 Web Forms based. Can I include my MVC components in this application, and what do I have to do to achieve this?

View 2 Replies

Include Vb Page In C# Web Application In VS 2008?

Apr 3, 2010

I need to add one new vb.net page in my C# web application but when i go for the option ADD NEW ITEM it does'nt show the vb page

View 2 Replies

Include Javascript From Application Root?

Jul 30, 2010

How do I include a javascript using ~/ expression? It works with <asp:Image>, I don't know how to do the same thing with javascript.

View 3 Replies

Publishing Web Application To A Mapped Drive With Visual Studio 2008 And Windows 7

Oct 21, 2010

We have a shared drive where web applications are published to. When I attempt to publish I get the following error:

------ Publish started: Project: XXX.Web, Configuration: Release Any CPU ------
Connecting to T:WebSitesXXX...

Unable to create the Web site 'T:WebSitesXXX'. The path 'T:WebSitesXXX' does not exist or you do not have access. The system cannot find the path specified.

Details

OS: Windows 7
IDE: Visual Studio 2008 (running as administrator)
Path exists? Yup.

I assume it's some permissions issue, but I have no idea where to start.

View 2 Replies

Visual Studio C# .NEt Web Application Publishing Tweet / Status On Twitter / Facebook?

Aug 26, 2010

If you could give me some guidelines It would mean a lot to me. what type of authentication I use, how to do id from localhost, how to modify web.config file etc

View 1 Replies

Visual Studio 2010 - Web.config Returns Null After Publishing Application?

Nov 4, 2010

After i publish my web.config i get null reference to all the code that uses the webconfig.What could be happening?I checked my web.config property and its set to Embedded Resource.

View 2 Replies

C# - Include Another Project Console Application Exe In A Website?

Mar 30, 2011

I've got two projects: a .Net 4.0 Console Application and an Asp.Net 4.0 Website (they are in the same solution). Now I'd like to include the console application (its .exe) in the web application, because I need to run it on the server when the user clicks on a certain button.

Now I would like to include it in a way that the console application will be updated whenever I recompile the solution, so it stays up to date.

So... how can I include my .exe in my web app?

View 2 Replies

C# - How To Include A Newline In A Text Message Sent As Email From .Net Application

Apr 6, 2010

I have an ASP.Net Application that sends text messages to mobile phones. It does this by sending an email. For instance, if your phone number is 555-555-5555 and your wireless carrier is Verizon, you can send an email to 5555555555@vtext.com and it will show up as a text message.

I want to be able to include a newline in the body of the message. How do I do this? Also please note that my ASP.Net program gets the message from a database (MS SQL Server) so what I really need to know is what characters to include in the message body when I store it in my database.

I already tried but it just showed up in the text message as

View 4 Replies

MVC :: UML Class Diagram For Application Include All The Controllers And Views And Their Relationships?

Mar 16, 2011

I would like to ask a plain and simple question about the Model-View-Controller architecture - should the UML Class diagram for my application include all the controllers and views and their relationships, or should it just include my model classes, i.e. the entities that are the heart of the application, you know - like in an ordinary application - i.e. User, Administrator, Student, Teacher, Course, Grade etc...?

View 1 Replies

Include Normal Pages (webforms Or Mvc) In Dynamic Data Web Application

May 21, 2010

can I include normal asp.net pages (webforms or mvc) in a Dynamic Data web application?

View 2 Replies

Include Files Within Include File

May 20, 2013

I have just started with ASP.NET.

I like the idea of using Include files so that I can create various versions of individual parts of a site and decide in code which to display. I used:

<%Response.WriteFile("contentcontent.aspx")%>

to include a content.aspx file within my default.aspx page.

I would like to include a Left.aspx, Main.aspx and Right.aspx file inside the content.aspx file. I tried using the reponse.writefile function but noticed when I debug the website that the text "reponse.writefile..." displays instead of the code contained within the referenced file(s).

Can this not be done?

View 6 Replies

The Referenced Dll Could Not Available In The Page

May 13, 2010

I have created a class file with a name space of name1. I have created the dll for that. I referenced this dll in my webapplication. But in the namespace section i can't get this namespace 'name1' in the intellisence. I am using the .net 3.5 frame work

View 1 Replies

C# - How To Get Referenced .dll's Path In Web Project

Jan 21, 2010

I have a C#.net class library that references a folder and the files in it.

I've added this library as a reference in my ASP.NET web project and I can't figure out how i'm supposed to get the path to this folder.

Or would you have to pass the Server.MapPath in from the website?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved