Web Forms :: File Not Found / Hosted Application In Iis 7?
Feb 7, 2011i hosted asp.net application in iis 7.. i can browse everything fine.. But while browsing in between i getting 404 error (file not found) even though the file
View 3 Repliesi hosted asp.net application in iis 7.. i can browse everything fine.. But while browsing in between i getting 404 error (file not found) even though the file
View 3 Replies I have a web application and I'm using asp.net routing. When I publish it with the Only files needed to run this application selected it gives me an error when I'm loading any of the page "HTTP Error 404 - File or directory not found."
but if I choose publish All files it works fine.
Do you know how to resolve this issue?
After login when i logout after 10 minutes my web application gives error (Hosted on iis):
Site URL is www.shoppersonlinecub.com login Id :admin@gmail.com
And Password: 1234 ( on logout it gives error).
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Unable to understand the error.
i hosted my application on the IIS 7
now i've a requirement to show the desktop alert on my IIS desktop when an event fires
I have problem while try to play a swf file from server.
i am using this below code :
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="418" id="csSWF">
<param name="movie" value="FPM_Overview.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#1a1a1a" />
<param name="allowfullscreen" value="true" />
<param name="scale" value="showall" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="autostart=false&thumb=FPM_Application.jpg&thumbscale=45&color=0x1A1A1A,0x1A1A1A" />
<!--[if !IE]>-->..........
But this above code work in my local development version , When i try to open from my domain like: http://domain.com/Files/ sample.swf ,not play the file but it show the timing of the swf file then the slider and info icon of the player.
Am also try to open the swf file using html file from the same domain,it not working.
Im developing a new web application where i need to insert data into the tables(Main table ,Child table1,Child table2) taking Main table id im inserting the child tables....the problem where i got structed is when im inserting data from tha application to databse they are inserting properly but when im inserting through hosted application(which is hosted in IIs) im getting error i.e only main table is getting inserted....but the child tables are inserted..
View 3 RepliesCan I use the <%: tag on an application that will be hosted on IIS6? What about on an application targeted for .NET 3.5?
View 2 RepliesI'm having trouble injecting services dependencies into my WCF service using Autofac 1.4.5. I've read and followed the Autofac wiki page on WcfIntegration but my debugging shows me that my WCF service is created by the System.ServiceModel.Dispatcher.InstanceBehavior.GetInstance() method and not by the AutofacWebServiceHostFactory. What am I doing wrong?
I've set up my ajax.svc file to look like the one in the example for use with WebHttpBinding:
<%@ ServiceHost Language="C#" Debug="true"
Service="Generic.Frontend.Web.Ajax, Generic.Frontend.Web"
Factory="Autofac.Integration.Wcf.AutofacWebServiceHostFactory,
Autofac.Integration.Wcf" %>
My WCF service class Ajax is defined like this:
namespace Generic.Frontend.Web
{
[ServiceContract]
[AspNetCompatibilityRequirements(
RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class Ajax
{
public MapWebService MapWebService { get; set;}.....
The service already works fine but I can't get the Autofac bits (read: creation/injection) to work.
Removing the default constructor unfortunately leads to the following exception:
System.InvalidOperationException: The service type provided could not be loaded as a service because it does not have a default (parameter-less) constructor. To fix the problem, add a default constructor to the type, or pass an instance of the type to the host.
I have an ASP.Net Ajax application that has been built on .net 2.0. My company recently installed a brand new server which has .net 3.5 installed. Is it possible for me to host my application on this server without the .net 2.0 ?
View 1 RepliesMy computername is in non-ascii character like ÄÖßÜÄÖßÜ. I am opening the web application using the url http://localhost/test/login.aspx. It opens with that url. But when i try to open with the url like http://ÄÖßÜÄÖßÜ/processmanager/login.aspx, it is not opening the page.
View 2 RepliesI have an ASP.Net site using Forms authentication. One of the aspx pages loads a WinForms user control hosted in IE. That control must connect with a WCF service located in the same ASP.Net web site.How can I make the WCF service secure? Currently I have set the WCF service to use AspNetCompatibilityRequirements mode but the user control hosted in IE can't connect to the WCF service as it isn't logged in.
View 1 RepliesI have an Asp.net web application which have one WCF hosted inside a .svc file
<%@ ServiceHost Language="C#" Debug="true" Service="MYNameSapce.BatchService" %>
this service is access by some desktop application which have referenced it.
In one of my WCf service method i have to access the path which i were able to get via
string filePathTemp = System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath + @"UploadFiles" + request.FileName;
Now in one of the method i wanted to get the computer Name of the server.
I want to redirect from one aspx page to another aspx page of different application.Both applications are hosted in different application servers. I want to pass a value from one application to another.I tried - 1. Response.redirect with Query string - But query string is not secure as it is visible to user in browser.2. Cookies - This is also not a secure way. Again if the cookies are disable in the browser it may not work.3. Server.transfer - In different web application we cant use server.transfer.Please provide any easy solution how to achieve this. I dont want to display the values to the user as it is confidential data.
View 13 Replies Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Time to tiime a get that kind of error and i dont really have clue.
An ASP.NET application (actually with Silverlight but it doesn't matter) is hosted in Outlook as folder home page. In this application there's a link to open popup window, which opens a separate IE window, not in Outlook.
The problem is that in this case it seems that ASP.NET session is lost. A call to ASP.NET service has nothing in Session and Session._id is different. I suspect that Outlook has different cookies than IE.
How do I preserve session when opening IE popup from Outlook? Maybe pass session id via URL somehow, or configure this in web.config?
I've been fighting with this error for a long time and am feeling very hopeless.
Under App_Themes, I have DataWebControls but the compiler does not seem to acknowledge this. The actual error occurs in the following line in 'web.config' file:
<pages theme="DataWebControls" >
This had worked before and now it does not and there's nothing that has been changed in the mean time.
I am trying to filestream to my hosting Companies sever.I have tried the below expecting it would not work. How can I find the correct path.Could not find a part of the path 'C:ERAPDFERA202.60.64.136.1.pdf'.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:ERAPDFERA202.60.64.136.1.pdf'.
Source Error:
[Code]....
How can I test an application that I am publishing to a remote provider's IIS7 hosted site, with the VS2008 development server that is built in with VS2008 on an XP Machine?
My membership/roles work perfectly up on the remote host. On ths hosted IIS7 site when I try to access a secure directory it redirects to login, and I am able to login, however when I launch (debug - F5) from VS2008, it will provide that folder/resource, no questions asked. Same build, config, etc... nothing has changed.
I am running XP, and local IIS version installed is 5.1.
My guess is what is happening is that the new format required in the web.config is configured properly for IIS7 deployment, which is why it works remotely, but when running locally through VS2008/XP it is running with an older version on IIS and does not recoginize the new tags.
I'm doing a tutorial for error logging. It seems to be pretty basic. Everything works the way it should but I get an error I did not expect in my error log. The error says file not found for favicon.ico. From what I've read this is a file for the icon that would appear in the address bar, to the left of the url. I don't understand why I'm getting this error. I have no code that does this or references this file. It happens when I run the app in chrome and in firefox. Does the browser automatically look for this file to display to the left of the url? Is it automatically looking for this file as part of it's normal routine when loading a page?
View 3 RepliesI come from a VB environment. I'm looking at 2 different file extensions. If one doesn't exist look at the next. I was hoping to use the try/catch function. I can get it to find the first extension but not the second. Here is my the try/catch part of code:
try
{
string website = xAll;
Response.Redirect(website);
}
catch (FileNotFoundException)
{
string website1 = xAll1;
Response.Redirect(website1);
}
The error dialog that pops up shows Connection Error in the title and a yellow exclamation point with File Not Found! I thought the FileNotFoundException would work(?).
I'm trying to put all the coding in my various pages into the code behind file...
I'm also using a Master page.
This is what I have at the top of my .aspx file:
<%@ Page MasterPageFile="master.Master" AutoEventWireup="false" CodeBehind="search.aspx.vb" Inherits="search" Src="search.aspx.vb" %>
This is how what I have in my aspx.vb file:
Partial Public Class search
Inherits Page
Visual Studio 2005 doesn't show any errors, but when I view in the browser I get...
Compiler Error Message: BC30451: Name 'fieldOfSearchDropDownList' is not declared.
fieldOfSearchDropDownList is definately declared.
I need large file upload support in my hosted (godaddy) medium trust asp.net app.It obviously needs to be responsive with indication of progress, so handling the stream myself is important.This all seems pretty simple and works well when in full trust:
1.Write an HttpModule that listens for file uploads.
2.Get the HttpWorkerRequest object from the Context using reflection.
3.Write out stream to a FileStream
All very well and good except that I keep getting permission exceptions when trying to get the HttpWorkerRequest object from the context in medium trust. Whether I use reflection or I use System.IServiceProvider.GetService() to get the object (which is clearly using reflection), I get the same error.
I have also tried using System.Web.HttpPostedFile. It has a property InputStream. But it seems this object is uploading the entire file on initialization, so no good.I have googled myself tired, and can't find another alternative.
Even if it is a security risk to let users have the HttpWorkerRequest object, surely the framework provides another way to handle the stream of files when Method="POST" and enctype="multipart/form-data"
i have two application suppose wwwroot/one and wwwroot/two.
there is one .aspx page on "one" application into which i want to get file(.xml) from application "two" and do some work on that file like save,edit,delete etc..
and than save that file into "two" application.
like
wwwroot/one/MyFile.aspx --> this is file into which i want to access aaa.xml file from application two/File where File is a folder. all file operation is here.
wwwroot/two/File/aaa.xml --> this is xml file which is reside in another application
strFilePath = Directory.GetCurrentDirectory();
strFilePath = Directory.GetParent(strFilePath).ToString();
strFilePath = Directory.GetParent(strFilePath).ToString();
strFilePath = strFilePath + "\ACH" + "/ACHFile.txt";
StringBuilder sb = new StringBuilder();
StreamWriter sw = new StreamWriter(strFilePath);
if i browse for a text file and displays it in the text box and trying to save it as the name provided above i am getting the error as Directory Not Found Exception.
I have a problem with my chart image not refreshing and I narrowed it down to the fact that there's an unrelated image that according to MS VS2005 IDE, that the image file is not found... BUT..when I run/debug it... it displays properly.The image is right in the root of the aspx directory so it is not in any folder.<img src="right-thumb.png"> // this works but ide shows error and causes chart to have update problemi get an error in the IDE file is not found. however, if I display a FULL PATH, the problem goes away. WHY? i don't want to display the whole path because i don't want public users to see the server file location.
<img src="c:webapplication
ight-thumb.png"> // this works for everything
i also tried
<asp:image runat="server" id="Image2" ImageUrl="~
ight-thumb.png" />
and that too also has a problem! It underlines in red and says teh file is not there, but when i debug, of course it works and the image loads....