asp.net upload file License file not found error - c#

i have page to upload files with CuteWebUI.AjaxUploader
when i run this page in my local computer it work correctly
but when i run this page on the domain server it give this error

The error is clear, this program is commercial and its need a license to run.
You do not have include the AjaxUploader.lic on the bin directory with the CuteWebUI.AjaxUploader.dll file.

Related

C# How to programmatically import files into Visual Studio project

I have a file upload control that imports files into a directory on the server. I would like to import the file in the servers file system into my project programmatically using C#. It is an image that I would like to import so I can display that image to the website. An Alternative method maybe when I use the file upload control, to import directly into the websites folder. Can anyone help with this?
The code I have is as follows:-
Image1.ImageUrl = "~c:\users\fitzy\documents\visual studio\2013\Projects\PhotoGallery3\PhotoGallery3\photos\Appliance Insurance.JPG";
I want to be able to display the imported image using Image1.ImageUrl but the path on the server does not let me.
Since we do not know the error message, I am sharing 2 mostly possible reasons:
Your server user identity may not have a write permission to the upload folder. Check your upload folder if a newly uploaded file is located there or not.
Usage of an incorrect file path for uploaded images on the server, so your website cannot find them. You can see this case by 404 error message on your browser.

After installing, can WindowsService read the data from the file exists in the same machine

I am working on windows service using .NET Core 3. At the time of development I am reading credentials and server url from xml file which is there in D:\ drive of the same machine.
Just I want to know after generating exe and installing in machine, will the exe able to read the data from the same file?
xml file has credentials and server url. Later if I want to change the user we do not need to compile the code just modify xml file and it should work.
Yes, if account under which the service is running will have "read" permission to your file.

File or directory not found in IIS7 in asp.net?

I have published my project in IIS7. When I browse particular .ashx file in the browser, I got File or directory not found issue.
When I browse the same .ashx file in my local server file details have been shown. But in my local PC file details have not been shown. How to resolve that isse?
I would suggest you few steps:
Make sure you have added the file into your .Net project. The file is probably missing in your project.
Also double check the spelling. Sometimes is just a typo.
Type the path manually in your browser and see where it is looking for the file.
These options might be enough.

Error Installing Custom DNN Module

I have created a custom DNN module, but it fails when I install:
A critical error has occurred. Could not find file 'C:\inetpub\wwwroot\Customers\RevIndex\RevIndexDNN.Web\Install\Temp\hlivdv1q\Test.dnn'.
Here are the steps I took:
I created a module with this manifest called test.dnn:
http://pastebin.com/qKVqNYEg
I zipped up the project and it looks like this:
I placed the zip folder in the Install/Modules folder. I went to host > extensions and I clicked manage. I selected the Install/Modules/MyModule.zip folder and I received this error:
A critical error has occurred. Could not find file 'C:\inetpub\wwwroot\Customers\RevIndex\RevIndexDNN.Web\Install\Temp\hlivdv1q\Test.dnn'.
Why can't it find my manifest?
My site is running as local system and I uploaded it from my desktop.
Often times this is a bit misleading. I would start by checking to ensure that the ASP.NET worker process is able to write to the root of the site and all child folders.
The reason for this assumption is that since it knows it is looking for Test.dnn it was able to read the zip, just couldn't read the physical file that should have been put on disk.
Go to the Host/Extensions page, choose the Install Extension Wizard and upload the ZIP file for your module (from whatever location you have it at)
From there you should see if there are any errors and hopefully get a more detailed log of the problem.

Access to the path 'C:\xxx\yyy\zzz\abcd_20120309.pdf' is denied

I have an ASP.Net website and a C# console application (both developed in VS2010). Both upload files to our web server (Windows Server 2003/IIS 6.0). Users logging in to the website can then view and download these files.
This works fine in website. But when I try to download files uploaded by the console application, I get the error:
UnauthorizedAccessException
Access to the path 'C:\xxx\yyy\zzz\abcd_20120309.pdf' is denied.
I have already manually provided "Full Control" to NETWORK SERVICE account for that folder.
Why is Asp.Net code unable to access a folder created by the console application?
Any idea?
Thanks!
You need to provide access to the folder for IIS_IUSRS (or something along this line).
AKA you need access for IIS.
Including access to everyone, doesnt include this user. So it must be done directly.
Network service will not suffice.
If IIS_IUSRS doesnt appear in the list, search for it.
Don't know if it matters in this case but one thing I have seen in the past is:
The application first saves the file in a temporary folder and then moves it to the target folder.
Sometimes, don't know the exact rules, the file access right follows the file in the move. i.e. the file ends up with the access rights for the temporary folder even in target folder.
Check the access rights on the file and see if it differs from the target folder.

Categories