Running The Project Versus Viewing In IIS
Nov 19, 2010
This could be a simple one but it has got me baffled. I have a ASP.NET solution that I have stored in C/inetpub/www/root/website. The solution and project files are all stored in there and I have set it up as a virtual directory in IIS.so I can view the web page in 2 ways.
1. - By running the solution [URL]
2. - By viewing the url in IE: [URL]
I changed the project to use windows authentication and I added alabel in the top right of the page which displays the user logged in i.e. DOMAINusername.
When I run the solution from VS2008 it displays the username on the page no problem (that is my logon id since I am running it). But when I view the page by typing the URL into IE - it doesnt seem to recognise the authentication and it doesnt display my DOMAINusername in the label.
Any ideas why this is? I thought maybe it was something to do with the .dlls but I did a simple test. In the project I created a new a label on the page and in the page_load I wrote "label.text = "Test Text". In both cases the label showed "Test Text" as expected so it is nothing to do with building the solution. Is there something about windows authentication - why would it work in one case and not in the other? So as a third test I actually opened IIS and right-clicked on the my website in the console and choose "browse".
I then got the following error:
Sequence contains no elements
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Sequence contains no elements
Source Error:
[Code]....
Now I set a break point at this point in my project in VS2008 - but when I run it there it doesnt even go to this code!
View 3 Replies
Similar Messages:
Aug 13, 2010
Wondering if there is a performance difference between letting a long running process hang in asp.net vs running the process via a windows service. I have done this once before and the windows service was much quicker and didnt bog down my system, whereas the asp.net request seemed to wreak havoc.
View 1 Replies
Mar 20, 2010
I created an MVC project in vs2010 RC and i cant really tell if its running on MVC 2 Beta or the freshly released MVC Release. Is there anything i can look out for to determine this?
View 12 Replies
Feb 3, 2010
when i tried to run my old project then i am getting this error:
Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.C:UsersGautamDocumentsVisual Studio 2005WebSitesOnlineShoppingProjectWeb.Config33
View 13 Replies
Sep 16, 2010
What is the difference between; Deploying an application Releasing an application Implementing an application
View 1 Replies
May 23, 2010
I have had a project called Articles and the project complies fine. I have it running as a seperate site on my machine and it works like a charm under IIS7. When I start the project from VS2010 in debug mode (by pressing F5) it lands on a page that says: "Parser Error Message: Could not load type 'Articles._Default'."
I i however change the path in the browser from [URL] Home it works fine again, indicating that my routing table is bust but it was working yesterday and I did not change any route, The error page also says: "Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server." That idicates to me that it went to default.aspx...right?
View 3 Replies
Dec 17, 2010
I use Mac as my primary OS, but I often work on ASP.NET MVC projects. I want to use the same file system for them, and not virtual OS image.
The reason for that is because I want to integrate the projects with Mac OS (i.e. upload them to the server via Transmit, a Mac OS FTP app).
But the problem here is that ASP.NET can't really work with projects located on network drives. So when I try to run a site (either with VS 2010's built in web server or with IIS 7), I get
Error Summary HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
And this is a common mistake but no solution that I could find worked for me.
If I create a project on Parallel's virtual C: drive, everything works fine.
P.S. I hear that VMWare has better network drives support, but is it as smooth as Parallels? Parallels 6 runs extremely fast for me, and my Mac Mini doesn't even get warm with VS 2010 and several other Mac apps open.
P.P.S. I also heard about using DropBox and/or Windows Live Mesh. Is clouding a good idea in this case?
View 1 Replies
Feb 16, 2011
when i run my project i got bellow 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."
View 1 Replies
Feb 25, 2011
I'm attempting to run/debug an ASP.NET MVC project under .NET 4.0 using VS2010's Dev Web Server. The server appears to spawn successfully and an instance of IE Explorer opens. However, the browser never seems to find the page. The browser just "spins" showing only a white page...no error message.VS is configured to randomly select a port, although I get the same results when configuring numerous static ports.The ASP.NET project is the start-up project.
View 2 Replies
Jan 25, 2010
When I build me C# web app in VS 2008 I am presented with a white screen. Internet exporer shows that it is 'Done'. This happens no matter which Form of my project I run and will not display even the directory screen.
I recently copied and pasted controls from one form to another and after this it seems to have stopped working. I have tried deleting the newly created controls and then eventually the Form.
View 2 Replies
Mar 16, 2010
So I have seen the items about the differneces between web application and web site projects. My big question is - how can I tell which one I am running in the RC of VS 1010?
View 1 Replies
Jul 23, 2010
I've gone rounds with this ever since I started programming classic ASP 12 (or so) years ago and I've never found a great solution because the architecture of ASP and ASP.NET has always been a swamp of bad practices, magic shared singletons, etc. My biggest issue is with the HttpApplication object with its non-event events (Application_Start, Application_End, etc.).
If you want to do stuff once for the entire lifespan of an HTTP application, Application_Start is the obvious place to do it. Right? Not exactly. Firstly, this is not an event per se, it's a magic naming convention that, when followed, causes the method to be called once per AppDomain created by IIS.
Besides magic naming conventions being a horrible practice, I've started to think it might be a reason there exist no such thing as a Start event on the HttpApplication object. So I've experimented with events that do exist, such as Init. Well, this isn't really an event either, it's an overridable method, which is the next best thing.
It seems that the Init() method is called for every instantiation of an HttpApplication object, which happens a lot more than once per AppDomain. This means that I might as just put my startup logic inside the HttpApplication object's constructor.
Now my question is, why shouldn't I put my startup logic in the constructor? Why does even Init() exist and do I need to care about Application_Start? If I do, can anyone explain why there is no proper event or overridable method for this pseudo-event in the HttpApplication object?
And can anyone explain to me why in a typical ASP.NET application, 8 instances of my HttpApplication are created (which causes the constructor and Init to run just as many times, of course; this can be mitigated with locking and a shared static boolean called initialized) when my application only has a single AppDomain?
View 2 Replies
Nov 6, 2010
i have one problem in executing the ssrs reports..
i've developed one project for that project there are some SSRS reports which are deployed
in path ( "http://localhost/reports/") it is working fine...
when i run through the project and press F5 ( i.e execute) the reports
are displaying correct with full of content in that...
now i want to host that project.. so i've created one virtual folder named as proj in IIS7..
and i've assigned the project to that..
when i execute from IE7 and type the path http://localhost/proj then the main page is displayed
and when i click the button print then it is showing the empyt report with only the toolbar above
no content are there in reports ...
but when the run the project i.e F5 then the report is displayed with full of content...
View 1 Replies
May 2, 2010
I installed VS2010. Then The Azure toolkit. I created a new solution, with one webrole in it. I added 'HelloAzure' to the default.aspx, and then pressed f5 to run it.
It runs! I see my text 'HelloAzure' in IE8. Yeah!
Now, when I close IE8, it seems that VS2010 simply hangs, is frozen. It accepts no input from mouse/keyb. Nothing moves ... you know ... it hangs.
Taskmanager is required to get out if this state.
View 5 Replies
Feb 11, 2011
The problem is I have a laptop that I take to University with me to all my lessons and lectures and it has Visual Studio 2008 installed on it and I work on my assignments in Visual Studio just fine. However when I get home I would like to use my desktop PC which has the exact same copy even from the very same disk of Visual Studio 2008 that is installed on my laptop. The problem is no matter what I do I can't open and work with any projects that I have created on my laptop.
Now if I create the project on my desktop PC it will open just fine on my laptop and I can continue to work with the project but the minute I save and take that project over to my desktop I get the self same error message shown below. [URL] I did do a little research and I found what looked like a solution for some people and that was to change the "SQL Server Instance Name" to SQL2008. As shown below it was set to SQLEXPRESS which is the same as what it says on my laptop copy. [URL] But all this did was present me with a new message as shown below. [URL] Uploaded with [URL] I'm completely at a loss as to what the issue is. Both my laptop and desktop run a fully updated copy of Windows 7 64Bit and have the same copy from the same CD of Microsoft Visual Studio 2008.
View 13 Replies
Apr 1, 2011
I'm creating a website in Visual Studio 2010. I would like to use Visual Studio for C# debugging, but it also uses Visual Studio as JavaScript debugger. Is there a way to disable script debugging for Asp.Net website projects? I run my projects by hitting F5 in my Visual Studio. (I've noticed that when I attach the debugger manually, I can specify the type of stuff I would like to debug.) Note: I would like to debug, but not with Visual Studio. The developer toolbar is enough.
View 3 Replies
Mar 6, 2010
I have a new development machine running windows 7 professional 64 bit. On loading up a website project Im getting this error
'The Web Application Project 'websitename' is configured to use IIS. To access local IIS websites, you must install IIS components:
IIS 6 Metabase and IIS 6 Configuration Compatibilty
ASP.net
Windows Authentication
In addition you must run Visual Studio in the context of an administrator account
As far as Im aware, I am an administrator of my own pc and I have the .net framework installed.
View 4 Replies
Jul 5, 2010
Before using any class in your website project/page we have to add it's assembly reference to our project. Right?
Now, when I am using SmtpClient class from System.Net assembly after adding the System.Net.Mail namespace in namespace node of application's web.config file but without adding assembly reference to the project, it still accepting and running the code. Why?
I enquired the machine's web.config file located at C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIG but didnt find assembly reference for System.Net there also.
So bit confused how it is working and where the assembly reference has been added and how?
View 1 Replies
Aug 7, 2010
can i determine programmatically if im running my web project in debug mode or compiled?
or even better if im running it on my local machine or on a server? example to change the path for databases etc..
View 7 Replies
May 23, 2010
When I turn on Code Coverage in my test settings, on a project that references the Unity DI container I get the following error:
Cannot initialize the ASP.NET project'{Project Name}'.
The event log specifies the following reason:
Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.
View 2 Replies
Jul 1, 2010
I am executing a long-running Oracle stored procedure from .NET. The procedure takes about three hours to run. Ideally, the user should be able to kick off the procedure, close the browser, and come back later to check the results.
The problem is that the connection to the Oracle procedure is lost after exactly an hour. As you would expect, the Oracle procedre runs to completion if it is executed from SQL Plus. Strangely enough, it will also run to completion if I run in debug mode on my local machine (I start two threads, one of which executes the procedure. I set a breakpoint on the second thread).
Here is my connection string:
data source= (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=serverx)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TestSID)))
Some relevant sections from web.config:
<sessionState mode="InProc" cookieless="false" timeout="3000" stateNetworkTimeout="72000"/>
<httpRuntime executionTimeout="18000" maxRequestLength="2097151" />
Any thoughts as to why the connection is being lost in exactly an hour, and what I can do to maintain the connection until the procedure finishes?
View 1 Replies
Aug 19, 2010
I am a windows application developer doing a web application with VB.net and SQL 2008 for the first time.I have developed a web application where users are supposed to view a file after selecting from a listbox. I then pick the users logon ID from windows then store in database and produce statistical reports later. It was working fine on my local machine till i deployed it on server to make it accessible on the intranet. The server OS is Windows 2008 Server and runs IIS. My issues are as follows,1. The application is unable to store the user logon id from the client.2. When more than one user uses the application, then there are errors but one user does not produce errors.
View 1 Replies
Aug 27, 2010
Scenario: Table Name:Emp ,Columns:id,name,sal
I have a combobox which is populated by id which is there in a database. And two Textboxes Name,Sal to insert Name and Salary of the Employee. I have no problem in inserting the datas to database and viewing all the inserted datas.
I got issue when I tried to view name and salary of the employee when a particular id is selected from combobox and finally clicking on a button to get the name and salary in the textboxes.
string str = ComboBoxName.getSelectedItem();
and a command as :"Select name,sal from Emp where id = +str"
View 4 Replies
Dec 13, 2013
I am viewing a file on my web page
Response.WriteFile(filepath).
In IE, if I view document properties or if I click File - send, the document name is the name of the web page - pdfviewer.pdf. How can I specify the file name, without prompting the user?
View 1 Replies
Jun 10, 2010
Can anybody give me a technique on how I can develop the system:
If the user is the ADMIN, he/she can upload pictures.
if the user is USER only, viewing is only allowed.
Note: What specific control can I use for viewing images wherein there is also page index
View 2 Replies