Configuration :: Compiling Source Code?
Jan 31, 2011How is this achieved so that my source code is protected as put on a server other people have access to?
View 6 RepliesHow is this achieved so that my source code is protected as put on a server other people have access to?
View 6 RepliesI get the dreaded "the compiler failed with error code 1" error message when application starts. Sometimes, it does not even start and in VS 2008 I get:"Could not load file or assembly 'file///C:WindowsMicrosoft.NetFrameworv2.0.50727Temporary ASP.NET FilesInternal2d7d8a83649918fApp_Web_timecard.aspx.3ecd542a.aa9wycbd.dll' or one of its dependencies. The system cnnot find teh file specified"I have searched for this error and tried everything suggested to no avail. I deleted the "Internal" folder in Temporary ASP.NET Files folder, changed something in one of teh file and also in web.config to force a recompile and restared IIS. Same thing happens. I checked all the files and do not a circular definition/referencing.
View 2 RepliesWe have some problem in develepment server so we didnt recover the our project source code (asp.net 1.x with C#). now i have downloaded the files from the production server but the production server doesnt have the C# source code. its contain only the .dll file (singe dll file for all the aspx.cs and .cs classes) and design files. we need to update some functionalities in my project,so can i get .aspx.cs and .cs clasess from the project .dll? or how can i modify the clacess without source(.cs,.aspx.cs)?
View 1 RepliesIf I deploy my ASP.NET project to a shared server web hosting, then is there a way to secure my source files so that the provider will not be able to access the source?. For example, the provider of my web hosting may download my files and then he will be able to get access to all my source.
View 9 RepliesI want to know that how can i secure my project dll from decompiler.
There are some methods available like reflactor and obfuscator through which we can protect dll from decompilation.
So how can i use that and is it really secure or not?
Our company has developed its own CMS system and there is a requirement that customers may purchase the source code for this system but only to be used for the one application (1 domain).My question is, is it possible to give them the source code but prevent them from reusing it to run another site (domain) for it.
My first thought was to have some license checking mechanism or have an uncompiled dll that checks the domain but obviously if they have the source code they can simply remove this code or checks.
I just discovered that a (simple) website I'm working on will be deployed to a server running framework 2.0. My quandry is that I started it using VS2010 and framework 4.0.
Is the solution as simple as changing the compile to options? I'm assuming that I'll have to remove the Listview controls I am using as they didn't get introduced until 3.5 (i think).
Am I basically correct with this or am I missing something?
I have a project ointo which I have copied a folder form another website - that folder consists of aspx and associated aspx.vb files and folders cotaining js, css and ashx stuff. The folder is in the same place relative to root in both the original and target projects/sites. I have added the copied items to the destination project using VS "show all files"|right click add_to_project_method.
Things seem to have worked - e.g intellisense seems to recognise the controls in an aspx file when working on the matching aspx.vb file. However, whne you build the project (even though inteliisense is recognising them) the comiler moans that all of teh controls on the copied pages are undefined.
So intellisense says they are there but the compiler says they are not....
I need to have a textbox on a ASP.NET page in which a user would paste code and select one of the preset languages (C#, VB.NET, Python, Ruby etc) and I need to verify if the code compiles successfully. If it doesn't, then I need to show the errors and warnings with line numbers.
View 1 RepliesI am using Visual Studio 2008 and my project is a Web Application Project so that I can compile my all files in just one assembly.
It is working but web form code behind files are compileing into single assembly but aspx files are not compiling. In addtion, these aspx files are present in the directories and they can be viewed.
Is there any technique to compile my all files into single assembly?
Together with Ben (@BuildStarted), we've been building the RazorEngine project, which is designed to allow you compile and parse arbitrary templates outside of ASP.NET MVC. The project has had a couple of releases for a while now, and the feedback has been greatBut, we have encountered an issue: Medium trust.
Because we are using the CSharpCodeProvider to compile the Razor-generated classes (to load into the current AppDomain for execution), we encounter a SecurityException when trying to invoke it, due to the LinkDemand enforced on it. When a normal ASP.NET page is compiled (regardless of trust level), it does so through a BuildProvider which is normally GAC'd, and thus is implicity granted the appropriate permissions to compile. Hence ASP.NET WebForms works as standard in Medium trust.
Our code does not, and we need to target scenarios where our built library won't be deployed to the GAC and is running in Medium trust. So we considered building a BuildProvider specifically for it and defer compilation to the ASP.NET build system, but this seems overly complex and disjointed, and the provider itself requires both a mapping through a file extension, and a virtual path (which may or may not resolve to a physical file - think VirtualPathProvider). It all seems overkill, just to get the project working in Medium trust; not just that, but purely for ASP.NET projects as our engine also works outside of ASP.NETSo my question is this, does anyone know of any techniques or technologies for compiling C# code in a Medium trust environment?
We have had a web application built in vs2008. We have recently set up vs2010, and when we build the solution we are getting this error.
The CodeDom provider type "Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not be located.
We have tried placing the following in web.config
<compiler language="vj#;vjs;vjsharp" extension=".jsl;.java" type="Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
i am urging to share my progect until developement to my server if i upload by ftp aspx files and .vb files it runs fine the problem is then i try to upload app_code folder, it returns error
how can i do for upload my classes?
I faced the following problem. Once I have completed my whole application it genereate dll file for each aspx file in bin folder. Now in published state the application faced some run time error in specific page. now I want to only republished that page generating error. while Visual Studio don't let me compile the individual page. can some one guide me in this regards.
View 1 Replieshow to make my source code to display on one line instead of multiple in source view. The display drives me batty when I'm trying to find something and I would prefer to display across the page instead of multiple lines down the page.
View 2 Repliesasp.net open source Lead management system with source code.
View 9 RepliesI want to call a function present in code behind from front page (html : source code)
i want to use like this:
Source code
<a href='<%# linkAlpha("B").ToString()) %>' title="B" id="B_List" runat = "server">B</a>
Code Behind
protected string linkAlpha(string value)
{
// /market-research/<%#Eval("customname")%>/
string str = "";
if (Request.Url.DnsSafeHost == "localhost")
{ // /market-reports/<%# Eval("customname")%>/
str = "Alpha_Category.aspx?q=" + value.ToString().Trim();
// Response.Redirect("Alpha_Category.aspx?q=" + value.ToString().Trim());
}
else
{
// str = "/market-reports/" + value.ToString().Trim() + "/";
str = "/Alpha_Category.aspx?q=" + value.ToString().Trim();
}
return str;
}
Here is what im trying to do I want to, from my c# code-behind, get the code between 2 <asp:Content> tags that are located in one of my .apsx pages.
View 8 RepliesWeb service error response (code/message etc) would you store it in a database? or would you keep the error response in a method.By the time I'm done with this, there will be hundreds of error response, maybe in the future, thousands? (I dont know yet, depends how large this web service grows).EDIT: error response is the response returned back to the application via the web service, (not to be confused with error logging).
View 1 Repliesany ERP in asp.net with source code.i need to customize it .
View 1 RepliesI am doing SOA architecture and the data base is in service side ie.within the project(website 7)
how can i can mention relative path for the data source ?
OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\sathiyabalu\My Documents\Visual Studio 2005\WebSites\WebSite7\App_Data\alumni_member.mdb");
I have inherited a VS 2008 project that hosts 5 services in a web directory and am attempting to add a new service. The existing services all work well, and my service is working except when I tried to add authentication like the existing services have using the membership.ValidateUser method. The SOAP request runs for ~18 seconds, and an exception (listed in full below) is thrown with a "network-related or instance-specific error". Other services validate the user, run some code and return in about 500 milliseconds, I think it is safe to assume I am hitting a timeout.
What makes this odd is that the new service lives in the same web application directory as the old services. It uses the same web.config file. I had been intensely reading posts and documentation related to the "network-related or instance specific error" until I noticed the Data Source in the connection string was not a name I am familiar with.
I changed the Data Source to be the name of the machine where the services run (thereis a database called membership on there), and I instantly got kicked out with an exception because the database login credentials were incorrect. Still confused as to why the new service would have this problem, I set out to find this data source. Running the SQL 2000 Server Network Utility doesn't list this instance. osql /L only lists the (local) instance. How do I find this instance? Why does my service not see the instance as the other ones do? More information listed below.
Server is Server 2003 Standard SP1, IIS 6
SQL Server 2000 is the DB
Each service is a C# Windows forms project (is there any valid reason to do this?) that has been changed to output a class library.
Services inherit from the webservice class.
A final project in the solution is an ASP.NET web application that has dependencies on all the other projects and hosts the asmx files which simply refer to the C# classes from the other projects.
Authentication is using Membership.ValidateUser against SQL server 2000. The web.config contains this:
[Code]....
The exception is here:
[Code]....
I have 2 connection strings which connect to the same database. I used the exact same syntax for both of them, the only difference is the address which they point at.
The "ApplicationServices" connection string functions just fine.
The "GoMelodyEntities" connection string produces Keyword not supported: 'data source'.
[Code]....
<configuration>
<add
name="stringname"
[code]...
I know I can load the symbols for the class but i can't get it to work. I tried everything so i give up.
I only need the code for this class. It's because i am using a custom script manager and i must know how the .net one works.