 |
|
 |
Hi i hav just downloaded this project but i m getting this error after clicking on upload button can u tell me why
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/test/upload/doUpload.asp, line 32
waiting for your reply
nitu
|
|
|
|
 |
|
 |
any want can help? when i download the file , it say " cannot open file" why?
JU
|
|
|
|
 |
|
 |
hi,
good work, it runs well on win2k,but is it supposed to be working on server2003? my trail failed, if so , how to fix it ?
|
|
|
|
 |
 | ttt  |  | Anonymous | 7:56 23 May '03 |
|
|
 |
|
 |
Does anyone have the compiled dll?
|
|
|
|
 |
|
 |
Hi Guys,
How can you get this component to call a virus scanner.dll and scan the files as they uploaded to the webserver. Or scan the files prior to completing the file-upload process? In that way you can send a message back to the web-user that their file contained a virus.
If you have just a normal virus scanner sitting on the server scanning memory etc, then the end users don't get any feedback about the uploaded file. Plus you are left with a virus on your hard drive and your hoping that the virus scanner will pick it up on the next scan.
Plus if you are wanting to do something with that file from another automated process and the virus scanner hasn't already killed or cleaned it, your in trouble.
Any suggestions??
Andrewpe
|
|
|
|
 |
|
 |
OPSWAT (www.opswat.com) has an API called Metascan that supports integration with most antivirus packages in the market. It also comes with several commercial engines built-in. Whether your project involves using an AV package you already own or using the built-in engines, Metascan supports providing call-backs to the user concerning the status of the file uploaded. It also supports scanning in memory buffer.
The product includes sample code projects in C, C++, Java, ASP, VB, others.
Filterbit (www.filterbit.com) demonstrates Metascan integration with a web-based (PHP) upload mechanism using 6 AV engines. It features scan results and scan performance of each engine against the file uploaded.
Tom Mullen
|
|
|
|
 |
|
 |
The article is impresive and clear, uploading files is not an easy task.
My question is simple: will your component upload a binary file?, let´s say a MSWord document or a .jpg file?. Thank you.
|
|
|
|
 |
 | help!!  |  | Anonymous | 5:57 10 May '02 |
|
 |
When I download the project and build... it creates and exe file instead of a dll. Why? Some mistake on my part?
I changed the congiguration to save the build file as INetUtil.dll instead of INetUtil.exe. This lets me run the item on my local server.. the one that compliled the project. But I cannot do a regsvr32 on this dll: get "DllRegistryServer Entry Point Not Found"
|
|
|
|
 |
|
 |
Dear "Anonymous",
At the end of my article I've explained that the component is in a executable. In order to create a dll you have to create a new project and copy the implementation.
Cheers,
- xico -
|
|
|
|
 |
|
 |
This is a very good sample code to understand how to complete the kind of component of uploading a local file to remote host.But I am not familiar with the function "MyStrStr",Could you give me some explaination for its purpose?
Thanks.
Junior C++ Programer is the first phase of codding.
|
|
|
|
 |
|
 |
If my memory doesn't fail it's because the first parameter is a buffer treated as a string but it isn't \0 ended.
Got it?
Cheers,
- xico -
|
|
|
|
 |
|
 |
Thanks for your answer,but I am still not clearly understand what you said.
For example the following code:
// looks for name="fieldName"
CString sField("name=\"");
sField += sFieldName;
sField += "\"";
LPCTSTR lpszField = MyStrStr((LPTSTR)m_lpBytesData, sField, m_lDataSize);
1. Do you mean that the first parameter((LPTSTR)m_lpBytesData) must treated as string(sField) and the string's end is not \0?
2. So, if no such process,memory will fail? after such a process,memory will not fail?
3. What does the following code represent?
if (strCharSet[iCharSetIndex] == 0)
return &(string[iIndex-iCharSetIndex]);
I am an junior C++ programer,and sorry to bother you again.
Thanks for your kindly conduct.
|
|
|
|
 |
|
 |
Stan,
As I said before I quite don't remember why I did this function. But I understand what you mean.
If the buffer is not \0 ended there's no need to do the check:
if (strCharSet[iCharSetIndex] == 0)
return &(string[iIndex-iCharSetIndex]);
I plan to test it whenever I have the time, so I'll repost later.
Cheers,
- xico -
|
|
|
|
 |
|
 |
Thanks for your kindly answer.
I have another question want to ask for you,hope you can teach me how to do it successfuly.
I want to simulate your interface declaration to add a new method just like:
[id(7), helpstring("method SetAllowedExtensions"), vararg] HRESULT SetAllowedExtensions([in] SAFEARRAY(VARIANT) FileExtensions);
but always fail to got it and has a error message occur:
Unable to create the function because the header or the implementation file could not be found.
I don't know how to solve it,and I am wonder how do you complete the piece of declaration.Could you give me a direction to avoid the error and complete the declaration?
Thank you vary much.
While, I am happy to read your articles and appreciate your professional codding skill.
Late is better than never.
|
|
|
|
 |
|
 |
I think you have a big memoryleak in your code.
Right before calling IRequest::BinaryRead you initialize array:
sarrayBytes.CreateOneDim(VT_UI1, m_lDataSize);
IIS will initialize it again, without calling VariantClear first. I think IIS expects to get an empty variant.
If you try this code, and doenload a big file, you will see what I mean.
Wout Louwers
|
|
|
|
 |
|
 |
change file %windows%/system32/inetsrv/MetaBase.xml
change line:
AspMaxRequestEntityAllowed="204800"
|
|
|
|
 |
|
 |
I encount a problem when running the asp page - library not registered. I am running win2k win iis5. I check the registry and found the entry for the lib ID. I don't know why it is giving me this error.
|
|
|
|
 |
|
 |
I would also like anyone with a compiled DLL to email it to me. I would truly appreciate your assistance.
|
|
|
|
 |
|
 |
I think this is a very good idea.
|
|
|
|
 |
|
 |
it's not a dll, but a exe file(INetUtil.exe).
use shell command:
INetUtil /regserver
to reg &:
/unregserver
to unreg
liangar
|
|
|
|
 |
|
|
 |
|
 |
I compile the project and register it in my computer, then it runs without any problem. Then I copy the dll to my another computer, it does not run. The ASP page give me error that cannot Create the object. Is there anything I need to fix before I can use it or do I have to compile it again in the other computer.
|
|
|
|
 |
|
 |
Did you Regsvr32.exe "dll name"?
You cannot just copy a .dll you need to register it.
|
|
|
|
 |
|
 |
you wil have to register the DLL again by using [regsver DLL_name]
|
|
|
|
 |