Wednesday, March 28, 2012
Strange Behaviour
I have developed a multi-frame web application with asp.net in c#. One frame
contains an embedded windows media 9 player for playing .wmv files. While
there is a file loaded in the player the other frames do not reliably
refresh.
Specifivally, if I try to refresh a page where I have overridden the Render
method, IE will stall. My attempts to debug this seem to indicate that this
stalling occurs before any code is excecuted. Refreshing the player frame
allows the stalled frame to load properly. When no file is open in the
player frame, everything works fine. This does not occur for asp.net pages
that do not override the render method, or simple html pages.
The page that causes this problem performs a SQL select in its render
method. It seems that this does not occur if there is no select in Render.
I have no idea what could be causing this. Any ideas would be greatly
appreciated.
thanks,
Grace SainsburyHi
Perhaps because the file in the player is still loading?
I did a test and no problems: http://213.190.104.211/
P.S Low bandwidth so it can take time to load...
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Grace Sainsbury" <grace@.multimediatranscripts.com> wrote in message
news:jjtrc.173$Nb4.7551@.news20.bellglobal.com...
> Hi,
> I have developed a multi-frame web application with asp.net in c#. One
> frame
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
> Specifivally, if I try to refresh a page where I have overridden the
> Render
> method, IE will stall. My attempts to debug this seem to indicate that
> this
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.
> thanks,
> Grace Sainsbury
>
"Vidar Petursson" <thekingYoUKnOwWhatToDoHEREeh@.icysoft.com> wrote in message news:<uAh2$I5
PEHA.2132@.TK2MSFTNGP11.phx.gbl>...
> Hi
> Perhaps because the file in the player is still loading?
> I did a test and no problems: http://213.190.104.211/
> P.S Low bandwidth so it can take time to load...
>
The problem occurs even when the entire file has been loaded -- i.e.
media pler is playing from its cache. With further experimentation, I
noticed that changing the focus away from IE, then returning causes
the refresh to complete.
thaks,
grace
Grace,
In my opinion I would try to duplicate the issue on another machine. This wo
uld eliminate your video and or system as a contributing factor. Is this for
Internet Explorer and if so which version are you using? I'm pretty certain
that the code running on the server is irrelevant unless the frame is hung
up while processing that frame.
Good Luck!
-Calvin Luttrell
ProjectThunder.com
> I have developed a multi-frame web application with asp.net in c#. One fra
me
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
>
> Specifivally, if I try to refresh a page where I have overridden the Rende
r
> method, IE will stall. My attempts to debug this seem to indicate that thi
s
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
>
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
>
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.
Strange Behaviour
I have developed a multi-frame web application with asp.net in c#. One frame
contains an embedded windows media 9 player for playing .wmv files. While
there is a file loaded in the player the other frames do not reliably
refresh.
Specifivally, if I try to refresh a page where I have overridden the Render
method, IE will stall. My attempts to debug this seem to indicate that this
stalling occurs before any code is excecuted. Refreshing the player frame
allows the stalled frame to load properly. When no file is open in the
player frame, everything works fine. This does not occur for asp.net pages
that do not override the render method, or simple html pages.
The page that causes this problem performs a SQL select in its render
method. It seems that this does not occur if there is no select in Render.
I have no idea what could be causing this. Any ideas would be greatly
appreciated.
thanks,
Grace SainsburyHi
Perhaps because the file in the player is still loading?
I did a test and no problems: http://213.190.104.211/
P.S Low bandwidth so it can take time to load...
--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Grace Sainsbury" <grace@.multimediatranscripts.com> wrote in message
news:jjtrc.173$Nb4.7551@.news20.bellglobal.com...
> Hi,
> I have developed a multi-frame web application with asp.net in c#. One
> frame
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
> Specifivally, if I try to refresh a page where I have overridden the
> Render
> method, IE will stall. My attempts to debug this seem to indicate that
> this
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.
> thanks,
> Grace Sainsbury
"Vidar Petursson" <thekingYoUKnOwWhatToDoHEREeh@.icysoft.com> wrote in message news:<uAh2$I5PEHA.2132@.TK2MSFTNGP11.phx.gbl>...
> Hi
> Perhaps because the file in the player is still loading?
> I did a test and no problems: http://213.190.104.211/
> P.S Low bandwidth so it can take time to load...
The problem occurs even when the entire file has been loaded -- i.e.
media pler is playing from its cache. With further experimentation, I
noticed that changing the focus away from IE, then returning causes
the refresh to complete.
thaks,
grace
Grace,
In my opinion I would try to duplicate the issue on another machine. This would eliminate your video and or system as a contributing factor. Is this for Internet Explorer and if so which version are you using? I'm pretty certain that the code running on the server is irrelevant unless the frame is hung up while processing that frame.
Good Luck!
-Calvin Luttrell
ProjectThunder.com
> I have developed a multi-frame web application with asp.net in c#. One frame
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
>
> Specifivally, if I try to refresh a page where I have overridden the Render
> method, IE will stall. My attempts to debug this seem to indicate that this
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
>
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
>
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.
Saturday, March 24, 2012
Strange Error in ASP.NET C# Application
including three ASP.NET applications that use Access databases. I create
virtual directories for the applications in IIS (running Win XP SP1 and Win
2000 SP4 dual boot - error occurs under either OS), then load the app into
the VS.NET 2003 IDE. When I attempt to run the application, I get the
following error in my browser, instead of the startup page:
Server Error in '/RoadSignReview' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS1595: 'RoadSignReview.RoadSigns' is defined in
multiple places; using definition from
'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\roadsignreview\cebae5e1\8b8437d2\assembly\dl 2\da6e1f98\00031afb_ea55c3
01\RoadSignReviewCS.DLL'
Source Error:
Line 27:
Line 28:
[System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
Line 29: public class RoadSigns_aspx : RoadSignReview.RoadSigns,
System.Web.SessionState.IRequiresSessionState {
Line 30:
Line 31:
Source File: c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET
Files\roadsignreview\cebae5e1\8b8437d2\ss6l2cvv.0. cs Line: 29
The above does not, of course, refer to anything the developer created.
And, just to make it even more fun, if I create this application myself on
the same PC (using the source code in the book), it runs OK.
Remember, this same phenomenon in *three different* apps.
If anybody has seen this and/or has any idea how to deal with it, I'd very
much appreciate some feedback.
--
************************************************** ********************
** All opinions are mine alone.Do not attribute elsewhere!
************************************************** ********************
** Peter van der Goes, Professor, Computers & Information Technology
** Rose State College
*********************** Contact ************************************
** Office e-mail: pvan@dotnet.itags.org.rose.edu
** Home e-mail: p_vandergoes@dotnet.itags.org.cox.net
** Web Page: http://www.rose.edu/Faculty/pvan/index.htm
************************************************** ********************"codewriter" <code_writer_2003@.yahoo.com> wrote in message
news:hcfXa.319$pq5.100276@.news20.bellglobal.com...
> This question has been asked hundreds of times before, as far as I
remember.
> The couse is either conflicting assemblies for the same source or code
> behind tags are screwed up.
> Delete your dlls and recompile.
I appreciate the information. Works like a charm.
Somehow, I was unable to find this simple fix on my own, but I won't forget
it.
Thanks very much!
Strange Errors
What is wrong?
Thanks,
Barb
Server Error in '/' Application.
------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'test1.LitStoreHome'.
Source Error:
Line 1: <%@dotnet.itags.org. Page Language="vb" trace="true" EnableSessionState="True" AutoEventWireup="false" Codebehind="LitStoreHome.aspx.vb" Inherits="test1.LitStoreHome" %>
Line 2: <HTML>
Line 3: <HEADyou need to copy the /bin dir with required assemblies
or add references to global assemblies in the web.config file
Have you copied the dll from the bin folder.
You guys are absolutely correct, I need to recompile the project or copy dlls.
THANKS!!!
Strange Errors
Deleting a directory in asp.net is tricky. Afetr you delete a directorythe application will restart and u will looase all ur session dat if uare using in-proc session. Here is a link explaining that
http://vikramlakhotia.com/Post.aspx?postID=6
Thursday, March 22, 2012
Strange IIS Issue
I attempt to Install I.I.S. (Add Windows Components)
I include
Common Files
Documentation
FrontPage 2000 Server Extensions
Internet Information Services Snap-In
SMTP Service
World Wide Web Service (All items checked)
During the install the the program Pauses at "Completing configuration of SMTP Service" for quite some time (Minutes). "Problem may lie here?"
Once it finally moves on to "Completing configuration of FrontPage 2000 Server Extensions" it pops up the following error.
Microsoft Server Extensions
"Unable to access configuration for Microsoft Personal Web Server"
Once I click [OK] the wizard claims I have successfully completed the Windows Components Wizard.
However when I run the MMC console for Internet Information Services, I notice that under the version tab it says "IIS V5.0". Isn't XP supposed to be V5.1?? .. It is on my other workstation and my laptop.
Any attempt to expand the "MyComputer" (local computer) tab produces the following error.
ERROR
"You have been denied access to this machine
This makes no sense at all. There is no error number, just that statement. This is my desktop, I am the only user, and Administrator.
Any suggestions? .. Ideas? .. I'm stumped.I get the feeling the Full Monty is coming...
(Windows reinstall)
Did you previously try to install PWS? Microsoft PWS? Made for 98.
Are you an administrator? If you are do you have full permissions to the C: drive? Its giving you a permissions error you say... make sure you have permission...
Thats all i can hope to offer.
The computer is brand new, and the installation was done by a Tech at BCom where I bought the "parts".
The Tech mentioned he had some problems with drivers, although I suspect he did not install PWS or any I.I.S. related software.
And Yes .. I am the only user and an administrator. I have installed I.I.S. on my laptop and on my other desktop. I have also configured Microsoft Visual Studio 2003 .NET so I can develop and debug ASP.NET code.
What is odd about this install, is this inability to click on the I.I.S. (local computer) without triggering the aformentioned error.
The version as listed on the other workstations is 5.1. This version displays itself as 5.0. That in itself doesn't seem right, althoug perhaps some later patch updated it to 5.1. Been a while and I don't remember.
I have decided to reinstall the O.S. (Yup the full monty as mentioned by "Lord_Rat").
I'll post again if this ends up resolving these issues.
Strange Page Behavior
Hello to you all.
I have an aspx page with an update panel, and outside that update panel i have a htmlinputfile for uploading some files. It is outside because i understand that htmlinput will not work correctly with an update panel. Near the htmlinputfile i have a Add button and a cancel button. After i add a file, and want to sort a gridview in wich the file is after upload, when the page refreshes the lien execution goes threw the Add button's click event, adding the file again.
Thank you for your time, hope someone can help me with this.
Where are you placing or calling your Add method code? Let us see your code please!
Regards
Here is the markup in the aspx:
<asp:UpdatePanel runat="server" ID="updatePanel" EnableViewState="true">
<ContentTemplate>
<asp:Panel ID="pnlFiles" runat="server">
<asp:GridView ID="grdvFiles" runat="server" AutoGenerateColumns="false" DataKeyNames="FileName" OnRowCommand="grdvFileName_RowCommand" OnRowCreated="grdvFileName_RowCreated" CssClass="datatable" Width="100%" CellPadding="0">
<Columns>
<asp:TemplateField HeaderText="File name">
<ItemTemplate>
<asp:HyperLink Target="_blank" ID="hypAttachment" runat="server"></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="DateModified" HeaderText="Date" />
<asp:ButtonField ButtonType="Image" CommandName="_delete" ImageUrl="~/images/delete.gif" />
</Columns>
</asp:GridView>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" DropShadow="true" PopupControlID="pnlModalUpload" TargetControlID="btnModalUpload" CancelControlID="btnCancelAttach" BackgroundCssClass="modal_bg">
</cc1:ModalPopupExtender>
</ContentTemplate>
</asp:UpdatePanel>
So this i sthe content of the update panel. The modal popup extender is used to bring up the following panel:
<asp:Panel ID="pnlModalUpload" runat="server" BackColor="#E0E0E0">
<table style="width: 168px">
<tr>
<td>
<input id="fileBrowse" type="file" runat="server" enableviewstate="false" />
</td>
</tr>
<tr>
<td align="center">
<asp:ButtonID="btnAddFile" runat="server" CausesValidation="False" Height="20px" OnClick="btnAddFile_Click" Text="Add" />
<asp:Button ID="btnCancelAttach" runat="server" Text="Cancel" Height="20px" /></td>
</tr>
</table>
</asp:Panel>
And the btnAddFile onclick event is the following:
protected void btnAddFile_Click(object sender, EventArgs e)
{
if (fileBrowse.PostedFile != null & fileBrowse.PostedFile.FileName != "")
{
string fileName = fileBrowse.Value;
fileName = System.IO.Path.GetFileName(fileName);
.........
///here is a work arround the problem i've mentioned
bool addFile = true;
DataSet existingFiles = tvWS.GetFiles(Convert.ToInt32(ViewState["taskID"]));
foreach (DataRow dr in existingFiles.Tables[0].Rows)
if (dr["FileName"].ToString() == fileName)
{
addFile = false;
break;
}
else
addFile = true;
if (addFile)
{
fileBrowse.PostedFile.SaveAs(ConfigurationManager.AppSettings["AttachmentsWrite"] + fileName);
.........
Thank you for your time!
Tuesday, March 13, 2012
strange problem
I use IIS5 and is does everything I want it to do.
I moved my site to the networkserver (it's a intranet site) and then
something strange happens.
On my photo page, I show a few pictures that are found in a certain folder.
But instead of seeing my pictures, I see only the placeholders with a little
icon in the left-upper corner with a red cross in it.
I know it finds the files, because if I change the filepath in the apsx
file, I get a message telling me the file cannot be found.
But why are my pictures not normaly visible?
If I go to them via an URL, I can see them in my explorer.
Because there is a list created, before the pictures are shown, I can see
that all my picture - filenames are put in that list, so the program does
find them.
it just isn't showing them.
Please advise?
rg,
EricIs it possible that your browser or a proxy server has cached a non-existent
version of the images? Make sure IE is set to get a new page every time.
I worked at a place where the system cached pages so aggressively that it
was almost impossible to tell if a problem had been fixed.
When you right-click on the missing image to check the properties, does it
give a clue as to where the server "thinks" the image is located?
Ken
"EMW" <SomeOne@.MicroSoftdotCom> wrote in message
news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscal i.nl...
> On my pc on which I created my aspx files, my site works fine.
> I use IIS5 and is does everything I want it to do.
> I moved my site to the networkserver (it's a intranet site) and then
> something strange happens.
> On my photo page, I show a few pictures that are found in a certain
> folder.
> But instead of seeing my pictures, I see only the placeholders with a
> little
> icon in the left-upper corner with a red cross in it.
> I know it finds the files, because if I change the filepath in the apsx
> file, I get a message telling me the file cannot be found.
> But why are my pictures not normaly visible?
> If I go to them via an URL, I can see them in my explorer.
> Because there is a list created, before the pictures are shown, I can see
> that all my picture - filenames are put in that list, so the program does
> find them.
> it just isn't showing them.
> Please advise?
> rg,
> Eric
Yes, it gives the full path of where the images are located.
If I change this path a little, knowing it would never find the images, it
doesn't find them and I get an error.
I have one pulldown listbox and a datagrid on my page.
The images are in a subfolder of the folder "Fotos" and the subfoldernames
are shown in the listbox.
Then the user can select one and the datagrid becomes visible with the
images from that folder.
I works fine on my own PC when running it in VS.NET or when I go to the page
as a user and not as developer.
What could this be?
rg,
Eric
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
> Is it possible that your browser or a proxy server has cached a
non-existent
> version of the images? Make sure IE is set to get a new page every time.
> I worked at a place where the system cached pages so aggressively that it
> was almost impossible to tell if a problem had been fixed.
> When you right-click on the missing image to check the properties, does it
> give a clue as to where the server "thinks" the image is located?
> Ken
>
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscal i.nl...
> > On my pc on which I created my aspx files, my site works fine.
> > I use IIS5 and is does everything I want it to do.
> > I moved my site to the networkserver (it's a intranet site) and then
> > something strange happens.
> > On my photo page, I show a few pictures that are found in a certain
> > folder.
> > But instead of seeing my pictures, I see only the placeholders with a
> > little
> > icon in the left-upper corner with a red cross in it.
> > I know it finds the files, because if I change the filepath in the apsx
> > file, I get a message telling me the file cannot be found.
> > But why are my pictures not normaly visible?
> > If I go to them via an URL, I can see them in my explorer.
> > Because there is a list created, before the pictures are shown, I can
see
> > that all my picture - filenames are put in that list, so the program
does
> > find them.
> > it just isn't showing them.
> > Please advise?
> > rg,
> > Eric
btw. I use the physical path of the application to locate the images and
pass this on to every image.
ie.: img.imageurl = "d:\inetpub\wwwroot\......\image.jpg"
There is a few folders in the dotted space, but I didn't want to write them
all...
If I call an image in IE with http:// etc. then it shows the image.
I'm puzzeled...
rg,
Eric
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
> Is it possible that your browser or a proxy server has cached a
non-existent
> version of the images? Make sure IE is set to get a new page every time.
> I worked at a place where the system cached pages so aggressively that it
> was almost impossible to tell if a problem had been fixed.
> When you right-click on the missing image to check the properties, does it
> give a clue as to where the server "thinks" the image is located?
> Ken
>
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscal i.nl...
> > On my pc on which I created my aspx files, my site works fine.
> > I use IIS5 and is does everything I want it to do.
> > I moved my site to the networkserver (it's a intranet site) and then
> > something strange happens.
> > On my photo page, I show a few pictures that are found in a certain
> > folder.
> > But instead of seeing my pictures, I see only the placeholders with a
> > little
> > icon in the left-upper corner with a red cross in it.
> > I know it finds the files, because if I change the filepath in the apsx
> > file, I get a message telling me the file cannot be found.
> > But why are my pictures not normaly visible?
> > If I go to them via an URL, I can see them in my explorer.
> > Because there is a list created, before the pictures are shown, I can
see
> > that all my picture - filenames are put in that list, so the program
does
> > find them.
> > it just isn't showing them.
> > Please advise?
> > rg,
> > Eric
You can't use a physical path like that because the browser will look on the
local machine for the image. You have to use a relative path.
That's where your problem lies. You can't use the file system path that way.
Ken
"EMW" <SomeOne@.MicroSoftdotCom> wrote in message
news:40e67498$0$62399$5fc3050@.dreader2.news.tiscal i.nl...
> btw. I use the physical path of the application to locate the images and
> pass this on to every image.
> ie.: img.imageurl = "d:\inetpub\wwwroot\......\image.jpg"
> There is a few folders in the dotted space, but I didn't want to write
> them
> all...
> If I call an image in IE with http:// etc. then it shows the image.
> I'm puzzeled...
> rg,
> Eric
>
> "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
> news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
>> Is it possible that your browser or a proxy server has cached a
> non-existent
>> version of the images? Make sure IE is set to get a new page every time.
>>
>> I worked at a place where the system cached pages so aggressively that it
>> was almost impossible to tell if a problem had been fixed.
>>
>> When you right-click on the missing image to check the properties, does
>> it
>> give a clue as to where the server "thinks" the image is located?
>>
>> Ken
>>
>>
>> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
>> news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscal i.nl...
>> > On my pc on which I created my aspx files, my site works fine.
>> > I use IIS5 and is does everything I want it to do.
>>> > I moved my site to the networkserver (it's a intranet site) and then
>> > something strange happens.
>>> > On my photo page, I show a few pictures that are found in a certain
>> > folder.
>> > But instead of seeing my pictures, I see only the placeholders with a
>> > little
>> > icon in the left-upper corner with a red cross in it.
>> > I know it finds the files, because if I change the filepath in the apsx
>> > file, I get a message telling me the file cannot be found.
>>> > But why are my pictures not normaly visible?
>> > If I go to them via an URL, I can see them in my explorer.
>>> > Because there is a list created, before the pictures are shown, I can
> see
>> > that all my picture - filenames are put in that list, so the program
> does
>> > find them.
>> > it just isn't showing them.
>>> > Please advise?
>>> > rg,
>> > Eric
>>>>
Finally solved it. This page helped:
http://west-wind.com/weblog/posts/269.aspx
for the imageurl I needed to use "~/fotos/image1.jpg".
thanks!
Eric
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:ui$AEEQYEHA.2364@.TK2MSFTNGP12.phx.gbl...
> You can't use a physical path like that because the browser will look on
the
> local machine for the image. You have to use a relative path.
> That's where your problem lies. You can't use the file system path that
way.
> Ken
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40e67498$0$62399$5fc3050@.dreader2.news.tiscal i.nl...
> > btw. I use the physical path of the application to locate the images and
> > pass this on to every image.
> > ie.: img.imageurl = "d:\inetpub\wwwroot\......\image.jpg"
> > There is a few folders in the dotted space, but I didn't want to write
> > them
> > all...
> > If I call an image in IE with http:// etc. then it shows the image.
> > I'm puzzeled...
> > rg,
> > Eric
> > "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in
bericht
> > news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
> >> Is it possible that your browser or a proxy server has cached a
> > non-existent
> >> version of the images? Make sure IE is set to get a new page every
time.
> >>
> >> I worked at a place where the system cached pages so aggressively that
it
> >> was almost impossible to tell if a problem had been fixed.
> >>
> >> When you right-click on the missing image to check the properties, does
> >> it
> >> give a clue as to where the server "thinks" the image is located?
> >>
> >> Ken
> >>
> >>
> >> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> >> news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscal i.nl...
> >> > On my pc on which I created my aspx files, my site works fine.
> >> > I use IIS5 and is does everything I want it to do.
> >> >> > I moved my site to the networkserver (it's a intranet site) and then
> >> > something strange happens.
> >> >> > On my photo page, I show a few pictures that are found in a certain
> >> > folder.
> >> > But instead of seeing my pictures, I see only the placeholders with a
> >> > little
> >> > icon in the left-upper corner with a red cross in it.
> >> > I know it finds the files, because if I change the filepath in the
apsx
> >> > file, I get a message telling me the file cannot be found.
> >> >> > But why are my pictures not normaly visible?
> >> > If I go to them via an URL, I can see them in my explorer.
> >> >> > Because there is a list created, before the pictures are shown, I can
> > see
> >> > that all my picture - filenames are put in that list, so the program
> > does
> >> > find them.
> >> > it just isn't showing them.
> >> >> > Please advise?
> >> >> > rg,
> >> > Eric
> >> >> >
strange problem
I use IIS5 and is does everything I want it to do.
I moved my site to the networkserver (it's a intranet site) and then
something strange happens.
On my photo page, I show a few pictures that are found in a certain folder.
But instead of seeing my pictures, I see only the placeholders with a little
icon in the left-upper corner with a red cross in it.
I know it finds the files, because if I change the filepath in the apsx
file, I get a message telling me the file cannot be found.
But why are my pictures not normaly visible?
If I go to them via an URL, I can see them in my explorer.
Because there is a list created, before the pictures are shown, I can see
that all my picture - filenames are put in that list, so the program does
find them.
it just isn't showing them.
Please advise?
rg,
EricIs it possible that your browser or a proxy server has cached a non-existent
version of the images? Make sure IE is set to get a new page every time.
I worked at a place where the system cached pages so aggressively that it
was almost impossible to tell if a problem had been fixed.
When you right-click on the missing image to check the properties, does it
give a clue as to where the server "thinks" the image is located?
Ken
"EMW" <SomeOne@.MicroSoftdotCom> wrote in message
news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscali.nl...
> On my pc on which I created my aspx files, my site works fine.
> I use IIS5 and is does everything I want it to do.
> I moved my site to the networkserver (it's a intranet site) and then
> something strange happens.
> On my photo page, I show a few pictures that are found in a certain
> folder.
> But instead of seeing my pictures, I see only the placeholders with a
> little
> icon in the left-upper corner with a red cross in it.
> I know it finds the files, because if I change the filepath in the apsx
> file, I get a message telling me the file cannot be found.
> But why are my pictures not normaly visible?
> If I go to them via an URL, I can see them in my explorer.
> Because there is a list created, before the pictures are shown, I can see
> that all my picture - filenames are put in that list, so the program does
> find them.
> it just isn't showing them.
> Please advise?
> rg,
> Eric
>
Yes, it gives the full path of where the images are located.
If I change this path a little, knowing it would never find the images, it
doesn't find them and I get an error.
I have one pulldown listbox and a datagrid on my page.
The images are in a subfolder of the folder "Fotos" and the subfoldernames
are shown in the listbox.
Then the user can select one and the datagrid becomes visible with the
images from that folder.
I works fine on my own PC when running it in VS.NET or when I go to the page
as a user and not as developer.
What could this be?
rg,
Eric
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
> Is it possible that your browser or a proxy server has cached a
non-existent
> version of the images? Make sure IE is set to get a new page every time.
> I worked at a place where the system cached pages so aggressively that it
> was almost impossible to tell if a problem had been fixed.
> When you right-click on the missing image to check the properties, does it
> give a clue as to where the server "thinks" the image is located?
> Ken
>
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscali.nl...
see
does
>
btw. I use the physical path of the application to locate the images and
pass this on to every image.
ie.: img.imageurl = "d:\inetpub\wwwroot\......\image.jpg"
There is a few folders in the dotted space, but I didn't want to write them
all...
If I call an image in IE with http:// etc. then it shows the image.
I'm puzzeled...
rg,
Eric
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
> Is it possible that your browser or a proxy server has cached a
non-existent
> version of the images? Make sure IE is set to get a new page every time.
> I worked at a place where the system cached pages so aggressively that it
> was almost impossible to tell if a problem had been fixed.
> When you right-click on the missing image to check the properties, does it
> give a clue as to where the server "thinks" the image is located?
> Ken
>
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40e5e76c$0$62380$5fc3050@.dreader2.news.tiscali.nl...
see
does
>
You can't use a physical path like that because the browser will look on the
local machine for the image. You have to use a relative path.
That's where your problem lies. You can't use the file system path that way.
Ken
"EMW" <SomeOne@.MicroSoftdotCom> wrote in message
news:40e67498$0$62399$5fc3050@.dreader2.news.tiscali.nl...
> btw. I use the physical path of the application to locate the images and
> pass this on to every image.
> ie.: img.imageurl = "d:\inetpub\wwwroot\......\image.jpg"
> There is a few folders in the dotted space, but I didn't want to write
> them
> all...
> If I call an image in IE with http:// etc. then it shows the image.
> I'm puzzeled...
> rg,
> Eric
>
> "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
> news:OvSCsVKYEHA.1652@.TK2MSFTNGP09.phx.gbl...
> non-existent
> see
> does
>
Finally solved it. This page helped:
http://west-wind.com/weblog/posts/269.aspx
for the imageurl I needed to use "~/fotos/image1.jpg".
thanks!
Eric
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:ui$AEEQYEHA.2364@.TK2MSFTNGP12.phx.gbl...
> You can't use a physical path like that because the browser will look on
the
> local machine for the image. You have to use a relative path.
> That's where your problem lies. You can't use the file system path that
way.
> Ken
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40e67498$0$62399$5fc3050@.dreader2.news.tiscali.nl...
bericht
time.
it
apsx
>
Strange Problem in dot net framework 2.0
We are uploading files on the server using HtmlInputfile control with
visual studio 2005, 2.0. In this there is an option for user to keep on
uploading the files finally file actually uploaded on the server after
clicking Upload Button. So when user add the file we store the content of
HTMLInputfile control in session object. This overall functionality is
working in visual studio 2002, 1.0 environment but the problem we are facing
in 2005 is , The Posted file from session object is becoming “Nothing”
Please let us know the solution.
Thanks & Regards
NetajiYou are confusing technologies a bit. Visual Studio doesn't run on the
server so I assume you mean that the session object is null on a server
running ASP.NET 1.0. Where as, on another server running 2.0 (since they
can't possibly be the same server), the session object works correctly. If
this is correct, review your session time-out settings on the 1.0 server. If
it is not, please explain further.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
"Netaji" <Netaji@.discussions.microsoft.com> wrote in message
news:C6D35A8B-DCCF-4DD2-BA15-6AEEC572DAB5@.microsoft.com...
> Hi Experts
> We are uploading files on the server using HtmlInputfile control with
> visual studio 2005, 2.0. In this there is an option for user to keep on
> uploading the files finally file actually uploaded on the server after
> clicking Upload Button. So when user add the file we store the content of
> HTMLInputfile control in session object. This overall functionality is
> working in visual studio 2002, 1.0 environment but the problem we are
> facing
> in 2005 is , The Posted file from session object is becoming “Nothing”
> Please let us know the solution.
> Thanks & Regards
> Netaji
>
Hi Alvin
Thank you very much for the reply.
I think it is not session time out issue. becuase on both the server session
are a alive but only one property is getting blank if we execute the same
code in 2.0 framework. below is detail explaination.
We are using htmlinput file control to upload files and storing this
uploaded files across multiple post back in session object which is working
very fine in asp.net 1.0 framework
When we are trying to use the same thing in asp.net 2.0 framework the stored
htmlinputfile content is getting nothing from session . session object is
still there but we are not able to acess the
htmlinputfile.postedfile.filename properties it shows nothing which means
that is is not session expiry problem since all the session are working
properly.
Please let me know if you require more clarification..
Really appriciate your input on this issue...
Thanks
Netaji
"Alvin Bruney [ASP.NET MVP]" wrote:
> You are confusing technologies a bit. Visual Studio doesn't run on the
> server so I assume you mean that the session object is null on a server
> running ASP.NET 1.0. Where as, on another server running 2.0 (since they
> can't possibly be the same server), the session object works correctly. If
> this is correct, review your session time-out settings on the 1.0 server.
If
> it is not, please explain further.
> --
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
> [Shameless Author plug]
> The O.W.C. Black Book, 2nd Edition
> Exclusively on www.lulu.com/owc $19.99
>
> "Netaji" <Netaji@.discussions.microsoft.com> wrote in message
> news:C6D35A8B-DCCF-4DD2-BA15-6AEEC572DAB5@.microsoft.com...