Showing posts with label files. Show all posts
Showing posts with label files. Show all posts

Saturday, March 31, 2012

Web Server NOT grabbing File1.PostedFile

Help Needed Please!!! With a VB.NET web application, I am trying to
save pictures and files to a directory on the web server. However, the
web server is not grabbing the Posted Files. For example:
File1.PostedFile Is Nothing = True. Like it always seems to go, this
page and the File1.PostedFile method works perfectly fine on my
development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or
reason why the web server(2000 Server, .Net 1.0) is not getting the
File1.PostedFile.

Any ideas as to why this will work on my development machine and not
off the server. Possibly security issues on server? I am really
stumped because I have used the same methods before on other servers.

Thanks,

Brett

How I narrowed down to the above problem:
http://groups-beta.google.com/group...63b135dae60c1c1Does your form have enctype="multipart/form-data" attribute?

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU

<bwalke@.lbrspec.com> wrote in message
news:1113404938.416180.252200@.l41g2000cwc.googlegr oups.com...
> Help Needed Please!!! With a VB.NET web application, I am trying to
> save pictures and files to a directory on the web server. However, the
> web server is not grabbing the Posted Files. For example:
> File1.PostedFile Is Nothing = True. Like it always seems to go, this
> page and the File1.PostedFile method works perfectly fine on my
> development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or
> reason why the web server(2000 Server, .Net 1.0) is not getting the
> File1.PostedFile.
> Any ideas as to why this will work on my development machine and not
> off the server. Possibly security issues on server? I am really
> stumped because I have used the same methods before on other servers.
> Thanks,
> Brett
> How I narrowed down to the above problem:
> http://groups-beta.google.com/group...63b135dae60c1c1
No, I do not believe so. Where exactly do you put this?

Thanks for your help.
<form runat="server" enctype="multipart/form-data"...>
<%-- Controls go here --%>
</form
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU

<bwalke@.lbrspec.com> wrote in message
news:1113407675.740786.76040@.g14g2000cwa.googlegro ups.com...
> No, I do not believe so. Where exactly do you put this?
> Thanks for your help.
thanks that did the trick!!

Web Server NOT grabbing File1.PostedFile

Help Needed Please!!! With a VB.NET web application, I am trying to
save pictures and files to a directory on the web server. However, the
web server is not grabbing the Posted Files. For example:
File1.PostedFile Is Nothing = True. Like it always seems to go, this
page and the File1.PostedFile method works perfectly fine on my
development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or
reason why the web server(2000 Server, .Net 1.0) is not getting the
File1.PostedFile.
Any ideas as to why this will work on my development machine and not
off the server. Possibly security issues on server? I am really
stumped because I have used the same methods before on other servers.
Thanks,
Brett
How I narrowed down to the above problem:
http://groups-beta.google.com/group...63b135dae60c1c1Does your form have enctype="multipart/form-data" attribute?
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
<bwalke@.lbrspec.com> wrote in message
news:1113404938.416180.252200@.l41g2000cwc.googlegroups.com...
> Help Needed Please!!! With a VB.NET web application, I am trying to
> save pictures and files to a directory on the web server. However, the
> web server is not grabbing the Posted Files. For example:
> File1.PostedFile Is Nothing = True. Like it always seems to go, this
> page and the File1.PostedFile method works perfectly fine on my
> development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or
> reason why the web server(2000 Server, .Net 1.0) is not getting the
> File1.PostedFile.
> Any ideas as to why this will work on my development machine and not
> off the server. Possibly security issues on server? I am really
> stumped because I have used the same methods before on other servers.
> Thanks,
> Brett
> How I narrowed down to the above problem:
> http://groups-beta.google.com/group...63b135dae60c1c1
>
No, I do not believe so. Where exactly do you put this?
Thanks for your help.
<form runat="server" enctype="multipart/form-data"...>
<%-- Controls go here --%>
</form>
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
<bwalke@.lbrspec.com> wrote in message
news:1113407675.740786.76040@.g14g2000cwa.googlegroups.com...
> No, I do not believe so. Where exactly do you put this?
> Thanks for your help.
>
thanks that did the trick!!

Saturday, March 24, 2012

web service help

Hello,
I am developing an "image server" that will perform image processing on
image files sent from many computers on a local network My concern is send
images as quickly as possible and not have the files crashing into each
other on the server. I have demonstrated sending images very quickly using
the vb.net socket class but I am wondering if a Web Service might be able to
do this also. I have looked at some Web Service examples but none of them
concern uploading large files.
Anyone able to provide some suggestions or better yet some coding examples?
Thanks
JohnThe difficulty of using service for large files deals with the fact that the
binaries have to be encoded/decoded to transfer as soap. With Remoting, you
might get around this, as long as your partner is using Windows. Otherwise,
for interoperability, you are stuck either with sockets or web services.
I am not saying a web service will not work, only that it could be
problematics, as it could time out on slower connections.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
*********
Think outside of the box!
****************************************
*********
"ubars" <jjleiby@.verizon.net> wrote in message
news:lN43h.2335$bg7.519@.trndny04...
> Hello,
> I am developing an "image server" that will perform image processing on
> image files sent from many computers on a local network My concern is send
> images as quickly as possible and not have the files crashing into each
> other on the server. I have demonstrated sending images very quickly using
> the vb.net socket class but I am wondering if a Web Service might be able
> to do this also. I have looked at some Web Service examples but none of
> them concern uploading large files.
> Anyone able to provide some suggestions or better yet some coding
> examples?
> Thanks
> John
>

web service help

Hello,

I am developing an "image server" that will perform image processing on
image files sent from many computers on a local network My concern is send
images as quickly as possible and not have the files crashing into each
other on the server. I have demonstrated sending images very quickly using
the vb.net socket class but I am wondering if a Web Service might be able to
do this also. I have looked at some Web Service examples but none of them
concern uploading large files.

Anyone able to provide some suggestions or better yet some coding examples?

Thanks

JohnThe difficulty of using service for large files deals with the fact that the
binaries have to be encoded/decoded to transfer as soap. With Remoting, you
might get around this, as long as your partner is using Windows. Otherwise,
for interoperability, you are stuck either with sockets or web services.

I am not saying a web service will not work, only that it could be
problematics, as it could time out on slower connections.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*************************************************
Think outside of the box!
*************************************************
"ubars" <jjleiby@.verizon.netwrote in message
news:lN43h.2335$bg7.519@.trndny04...

Quote:

Originally Posted by

Hello,
>
I am developing an "image server" that will perform image processing on
image files sent from many computers on a local network My concern is send
images as quickly as possible and not have the files crashing into each
other on the server. I have demonstrated sending images very quickly using
the vb.net socket class but I am wondering if a Web Service might be able
to do this also. I have looked at some Web Service examples but none of
them concern uploading large files.
>
Anyone able to provide some suggestions or better yet some coding
examples?
>
Thanks
>
John
>

Thursday, March 22, 2012

Web Services

Hi All,

What are the web services (.asmx files)?

When these are used? what is the purpose of these web services?

Give some brief idea about this.

Thanking you

Abdul

Web services are like any other function in the .cs file. It has an attribute [webmethod()] mentioned at the top of the function.

Webservices are used to communicate with some other application or something like that.

eg: if you are a wholesaler/manufacturer. You want the retailers to place an order online. you dont want them to have an direct access to you database or sensitive data. so you create a web service which ll display the required data to the retailers.You can also publish the web service so that others can also use your web service.


Hi,

Here is a complete articles especially 1st one

http://aspnet.4guysfromrolla.com/articles/100803-1.aspx

http://aspnet.4guysfromrolla.com/articles/062602-1.aspx

http://www.codeproject.com/cs/webservices/myservice.asp http://articles.techrepublic.com.com/5100-3513_11-5643603.htmlhttp://www.aspfree.com/c/a/ASP/Consuming-a-WSDL-Webservice-from-ASP/http://www.codeproject.com/soap/ConsumWebServicefromASP.asp

Monday, March 12, 2012

Web Services Not Working

Dear Gurus:

On my local computer I am running IIS 5.0 and I have written a web service, and I have put all relevant files in my local inetpub/wwwroot folder and my web service works fine. I get the proper asmx interface.

But when I move the relevant web service files to a server running IIS 6.0 and open IE and put in the correct URL all I get is the following line of text at the top of my page in IE:

<%@dotnet.itags.org. WebService Language="c#" Codebehind="SalesReport.asmx.cs" Class="SalesReportWebService.SalesReport" %>

My web service was written and compiled with VisualStudio.net.

Yes, I have added my .dll as an allowed web service extension.

Do I have to register my web service somewhere? Any idea what might be going wrong?

Thank you in advance,

Kailin.

OK I have now fixed this problem.

The problem was somebody had modified the machine.config file on the computer where the web service was not working. The <httphandlers> section that setasmx as a recognized file type in themachine.config file was removed rendering the web service inoperable. I have now replaced the broken machine.config file with a default machine.config file and this fixed the problem.

Thank you to anyone who took some time to look into this issue.