I have created a dll using .net->classlibrary,which fetches the mac id of client machine.I implemented it in a web application using javascript and it works well in server and client machines in the network.but for that,I have to register the dll using regasm commands in each client machine manually. but I want to use the dll in a senario where I cannot able to register it manually in each client machine...so my Idea is to create a cab file containing the dll and implement it in the login page of web application(using javascript? or codebehind?which is suitable) so that when the client opens the login page,the cab file that contains the dll extracts itself and get installed in the client machine and fetches the mac id of the client machine to the server. Is this the suitable way?if so how can i create the cab file holding my dll?any links? how can I implement it in the web appln?
Actually I want to deploy(run) my asp.net 2.0 application using ajax control toolkit2.0 on remote server. Also I have added all the required dlls to the bin folder. Now apart from that Will i have to install ajax extensions on server(OS- Windows Server 2003, IIS 6.0)
I am new to Ajax Control Toolkit, with the help of online tutorials I had created a cascading dropdown list in asp.net and tested it on my local machine. For this dropdown list data source would be an xml file (which is saved on my local machine c drive). I haven't encountered any issues until I deploy the precompiled web site on to IIS 7. When I open the web site from IIS I would see the two dropdown boxes on the web page with an error "Method error 500". I believe this error occured due to incorrect xml file path provided on IIS. I had copied xml and xsd files into IIS server C drive but it did not help out and then I created a network map and placed the xml and xsd files in that shared folder tried to access that path from web service, it's working on local machine but not on IIS. It would be great, if any one could explain me the solution.
I am using XAMPP to publish my a .net application. The server is working fine. I created a sample login.aspx file, and it works fine. I deleted the sample login file, and I build and copy all the files to the XAMPP directory. When I tried to acces the page, it gave an error message "Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, contact the
I am developing a small asp.net mvc intranet application for our company. Right now the home page will get the Windows username from the windows logged on user and make a call to our active directory based on that username to get more detailed info about the user (email, ect.) Everything works great on my local Visual Studio 2008 server. But when I deploy all the files to my IIS 6.0 server I get the following:
[NullReferenceException: Object reference not set to an instance of an object.] STPIntranet.MvcApplication.Session_Start() in C:Documents and SettingscsallemiMy DocumentsVisual Studio 2008Projects<ProjectName>Global.asax.cs:50 [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29 System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +42 System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +8779824 System.Web.SessionState.SessionStateModule.CompleteAcquireState() +237 System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
It is failed in my Global.asax.cs file where I try to populate a custom User object (has a username and email property). In line 50 where the error is occuring I make a call to a class called SecurityUtil to get the username from WindowsIdentity.GetCurrent() and then get the email by making a call into our active directory. I almost want to say that the necessary libraries are not getting added in either my project dll or web.config file because of the null pointer. Also, the error line is point to my local file structure (C:Documents and SettingscsallemiMy DocumentsVisual Studio 2008Projects) and not the file structure residing on my iis 6.0 machine.
My web server does not have the framework installed and they are telling me to use the DLLs in bin folder.. is there any difference (performance, security etc) between deploying it by server installation and through bin..
i have created a website in vs 2008. and i want to deploy that website on other system. i don't want to give all the source(just like .exe file not source).
I have an asp.net panel having various controls including gridview. I have converted this panel into pdf and attached it as an email attachment using memory stream. Everything is working fine. Now I have an File upload control outside panel through which I have to attach a file and send it in mail along with the already attached panel. But I am unable to figure out how to do it.
I am using the async file upload control to upload to a image file. I want the user to upload only jpg files. And for that I am checking the uploadedfile content type in server side, after the upload complets. I wanna check this, before upload starts. There is one javascript method
function startUpload(sender, args){}
but how to access the content type of the file selected by user.
When iam try to add ajax control dll file to my ajax toolkit given in visualstudio express edition 2005, i am getting the following error.
"There are no components in 'C:ProgramFilesMicrosoft ASP.NETASP.NET 2.0 Ajax Extensionsv1.0.61025AJAXExtensionsToolbox.dll' that can be placed on the toolbox." what is the error in this?
I have an Async File Uploader control inside a Repeater which is inside an update panel. Now,I am uploading the file into ftp,so I am not uploading the video file,using SaveAs() method. For uploading the file in ftp,I have this UploadFile method which takes these four parameter:FileName, UploadPath, FTPUser, FTPPassword.Now this FileName,I have to send the full file path. My UploadComplete event looks like this:
<pre lang="cs">protected void AsyncVideoUpload_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e) {//VideoPath is a session variable VideoPath = string.Empty; if (AsyncVideoUpload.HasFile) { // string filepath = AsyncVideoUpload.PostedFile.FileName; string filepath = e.filename;//above two captures only the file name,but I want the total path,like c:/MyDocuments/... UploadFile(filepath, "ftp://172.20.117.102","test","Value*12"); VideoPath = AsyncVideoUpload.PostedFile.FileName; } }</pre>
With the ajax file uploader, would it be possible to check the size of the image before uploading?Currently, it uploads the file to the server and then lets me know that it's bigger than the limit size.
I'm trying to use below simple code for ajax postback. With file upload, neither javascript the "function startRequest" ever triggers, the file control shows null value somemore.Earlier I had Update progress which didn't work with file upload ever so I removed it. Now I just want to disable the button as the file is uploaded and its inputs are processed in the background. Once the response comes back, the "submit" button is re-enabled.But the file-upload with Updatepanel doesn't work at all. What am I doing wrong,
I would like to restrict what they see in the file upload dialog, which is set to "All Files" by default. I understand how to validate that they only uploaded a certain file type, that is not the question here. I would just like to know how to default the file type in the file selection dialog.
Is there any way to change this to "PNG only" or "*.png"?This is using AsyncFileUpload in the ASP.NET AJAX Control Toolkit.
I am using this control to give the user the possibility to upload up to 5 pics. Well, it generally works fine but i started to test it using a folder full of pics. This folder contains more than 900 pics which are named from "DSC_8138.jpg" to "DSC_9255.jpg" (some has been deleted).
When i try to upload the pic "DSC_8138.jpg" it saves the pic "DSC_8168.jpg".
When i try to upload the pic "DSC_8141.jpg" it saves the pic "DSC_8147.jpg".
There is not any clear critieria in this.
I am quite sure that my code in the AsyncFileUpload1_UploadedComplete method cannot cause this problem. Actually, when i try to upload the pic "DSC_8141.jpg" the file name is still "DSC_8141.jpg" even though the pic uploaded is the "DSC_8147.jpg". in any case, the control deals with the uploading process.
I was trying to deploy an asp web app over to a different server and when I ran the .msi setup I got the error:
Setup requires Internet Information Server 4.0 or higher and Windows NT 4.0, Windows 2000 or higher...
Now its obvious that it has version 6.0 since windows server 2003 is installed, do you have why this is happening or should I just move my entire application with code over? My database has already successfully been installed on this server and just need the app to be deployed to this server.
Used Visual Studio 2008 to publish web app to a local IIS7 Website but still hooked to VS development .mdf file with EF. With this I can successfully access web app via local host. As long as the development db server is running, web access is fine.
Then I tried to change connection to local .SQLEXPRESS where I have other databases (this is my production server). I have replicated the development data into the SQLExpress database already. The connection string appears OK.
The problem is the application's entity data model (.edmx file) is still tied to the development .mdf file.
When I tried to rebuild the entity data model, I can see the production instance in list of db connections but cannot select it. Only the development db objects are available.
So I don't think the problem is related to connecting to the production db. It is more about getting the .edmx file to point to the production table. Either it should migrate over or it needs to be rebuilt. I don't see any MVC deployment pages discussing EF deployments.
I have a local .net webapplication which needs to be run everytime to see the output . Instead of that can i deploy it on the local host server...so that through url i can see the output.
We have an application built on ASP.NET MVC 1.0 which, once deployed, should be accessed with HTTPS. I tried few approaches for HTTPS but I have a few questions.:My home page does not need to be Secured (HTTPS), but rest of the hyperlinks following it will be Secured.I read about the action method attribute [requiresHTTPS] however I want to understand what happens to that tag during development on local machine. In a development enviroment, how do I install a certificate on a dev machine/virtual directory to code and test my changes.So this application is complex in nature and we have around 13 controllers and 50 action methods. This application will have information like Credit card numbers since we do accept payment through this website.
I have the domain name and space and also prepared my website on visual studio. now i want to know how to make it ready, so that i can copy it the hosting server. means what is the prerequisite for hosting? and then how to publish it?
I have a problem deploying crystal report on Windows 2008 R2 server. I had a web app that was developed with VS 2003 and working fine with Crystal Reports on a Win 2003 Server. I recently migrated the app to .NET 2.0.Crystal references are pointing to version 10.2.3600.0 in web.config but when I try to run the report from my web app, it says "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.".I have installed CRRedist2005_X64.msi on the server.Any ideas on how to solve this issue?
I was given a compiled asp.net web application v2.0 which was created in visual studio 2005. I have made some changes to the site and created various new classes and made it look abit cooler . On my localhost I go to the Visual Studio Project and click rebuild and its stays that the dll has been successfully and all the dll, pdf have been created again with new modified dates. So when I publish the site to the production server, the site uses the old current dll which doesn't show any of the changes I have made.
I have done the following - Deleted all the files from obj/Debug before rebuilding the site
Made sure there were no files defined in the application which are not there in the local system (apparently this is a bug)
I'm don't know what else to try, I' have used red gates .net decompiler and can see all my new class names so I know what all the extra classes are in the new dll.
One thing I'm not sure about is what 'Build Action' do you need to set for the binxxx.dll, at the moment it is set to 'content' but if I set it 'compile' I get "Error 1 Unable to write to output file
'C:1stDirectobjDebugvb-website.pdb': System Error &H80004005&" .