Q1:
Does aspnet_compiler.exe compile into assembly(ies) all files contained inside the website directory, even JPG, DOC, and PDF types?
If you add images to the list of files (thus add them to the project file) in your web project, will these images also get compiled by VS into assembly?
Q2:
When aspnet_compiler.exe compiles applica...
I have a problem that is not uncommon when building a plug-in architecture.
Assembly A is the core code -- the framework.
Assembly B is a plugin to that code, expected to load dynamically at runtime and make code available for Assembly A to use.
In Visual Studio, Project B (which generates Assembly B) has a reference to Project A (wh...
Hello,
Q1 - Asp.Net is able to detect when you change the original files and automatically recompilles the application when next request arrives
A) But it appears that while with Web sites Asp.Net is able to detect changes, regardless of whether they happen in code-behind file (.cs) or in aspx file, with Web projects Asp.Net only d...
Hello,
Q1
A) I’ve created a new .cs file, declared a class inside it and then save it on my disc. Now according to my book, I should be able to import this file into App_ Code folder of a website application ( via Website --> Add Existing Item. BTW – since file was copied into root folder of a website, I had to move it into App_Cod...
Hello,
Q1
Any assemblies stored in Bin directory will automatically be referenced by web application. We can add assembly reference via Website --> Add Reference or simply by copying dll into Bin folder. But I noticed that when we add reference via Website --> Add Reference, that additional files with .pdb extension are placed inside ...
Hello,
Q1 - As far as I know, Visual Studio doesn’t use aspnet_compiler.exe when compiling web application projects. And since Web Deployment Projects (WDP) tool is only used for manipulation the output created by aspnet_compiler.exe, I don’t understand how VS 2008 also has an option for using WDP with web application projects?!
Q...
I am compiling classes at run-time using the CodeDomProvider class. This works fine for classes only using the System namespace:
using System;
public class Test
{
public String HelloWorld()
{
return "Hello World!";
}
}
If I try to compile a class using System.Web.UI.WebControls though, I get this error:
{error...
Unable to use HTTPS path in Assembly.LoadFrom.
Tried using TrustAllCertificatePolicy class too and it didn't work.
i have given fulltrust to server using caspol from the client machine. the same url works with ssl disabled. it does not work only for ssl enabled. please help...
The exception is:
System.IO.FileLoadException: Security ...
Hello,
When we install Web Deployment Projects ( WDP ), we also have an option to use it inside VS 2008. By selecting Property Pages we are presented with several options for configuring compilation options.
The Use IIS Metabase Path for Source Input option on the Compilation
tab of the Property Pages dialog box is important ...
From the description of sn.exe utility and this question I see that a copy of the public key is added to every assembly signed with the strong name. This is enough to validate that the assembly binary has not been altered.
But how does one verify that given assembly was really signed with some given keypair and compiled by a given compa...
Hello,
When we install Web Deployment Projects tool, we also have an option to use it inside VS 2008. By selecting Property Pages we are presented with several options for configuring compilation options.One of Property Pages dialog boxed is named Output Assemblies. It presents us with the following options:
* Merge all outputs to ...
Hello,
Q1
We can add assembly reference to a web project via Website --> Add Reference , and assembly will automatically be referenced by all pages in that web project.
But I’ve read somewhere that even if we simply copy ( thus we don’t add it via Website --> Add Reference ) an assembly to the Bin directory of a web project, that i...
My ASP.NET application loads an assembly and creates a class instance from an object within it. The assembly itself has a reference to a dll called "Aspose.Cells.dll" which it can access without any problems and is located on the same path as the assembly file itself. However, when I make a method call to one of its methods I get this er...
Hello,
I was wondering if anyone could tell me if what I'm trying to accomplish is possible.
I am using C# in VS 2008.
I have two project templates and another template which links the two projects and calls their templates. The first project is a user control and the second is a test app that needs to reference the user control. I ...
I am stuck with one asp.net error.
My application work fine on development and test environemnt. But on production it give me following error.
Could not load file or assembly 'someProject' or one of its dependencies. Access is denied.
I need immediate help.
...
Is it possible to use the Assembly.LoadFrom overload with the Evidence parameter to ensure the assembly is strongly named? I want to be able to specify the assembly name, culture, version, and public key token. If any of this information does not match the assembly should fail to load.
...
I have multiple services that is pulling an assembly from the GAC. When I install one of these services it is updating the GAC with a new assembly that is shared by various services, and inserts a new policy file into the GAC so that all previous versions look for the new assembly. All the services pick up on the policy without restart...
I want to export the assemblies built in my project. But where are they physically stored?
...
I have this scenario:
i have a assembly with my business object types and this assembly is loaded with reflection at runtime(Assembly.LoadFile) in WCF with KnownTypesProvider but this assembly maybe can change (some developer add a new method or new property o even change some functionality maybe bugfix) but using Assembly.LoadFile the ...
It is my understanding that .NET runtime will always look for referenced assemblies in GAC first and then in the local folders. Is there a setting in Web.Config that would invert this order?
...