Why Would Application_Init Fire Twice When Starting Debugging In VS2008/Casini
Jul 22, 2010
Why would Application_Init fire twice when starting debugging in VS2008/Casini?
Yeah, It's happening in global.asax. Seems fairly random though, only happens once in a while.
View 1 Replies
Similar Messages:
Feb 25, 2010
I am working on an ASP.NET project. When I am debugging, I often want to switch back from my browser to Visual Studio (2008) and edit some code. Visual Studio then won't let me edit the code, unless I explicitly quit debugging first.
Is there any way to configure Visual Studio such that is automatically stops debugging and allow me to edit the code, or do I have to stop it manually each and every time?
Disabling Edit and Continue does allow me to edit the code, but this does not force VS to stop debugging...
View 1 Replies
Nov 21, 2010
I recently downloaded the mvc 3 RC and I am receiving a type load exception everytime i do a fresh compile and start a debugging session. The error is
System.TypeLoadException crossed a native/managed boundary
[code]...
I can click ok and my debug session continues working as normal. I can close the session and restart without making any code changes, and it will open and work correctly. But, everytime I close, make a compilable change and rerun, I get the message.
View 15 Replies
Feb 13, 2010
My workstation does not have Internet access, but it uses a DNS server on the LAN. Every time I start any ASP.NET application from Visual Studio with either F5 or Ctrl-F5, the workstation (I don't know whether it's Visual Studio or Webdev.Webserver.exe) asks the DNS server for the IP address of "time.windows.com". The application is not started until the LAN-only DNS server returns an error, which results in a 10-second delay, during which the Internet Explorer is started, but displays a white background. Is there any way to prevent these connection attempts?
View 2 Replies
May 4, 2010
i have problem with Visual Studio 2010 on Windows 7 x64. When i started asp.net site debugging, it stoped working. Only solution is restarting IIS.
Have anyone experiences with this?
View 3 Replies
Jan 8, 2010
I am currently using Visual Studio 2008 on XP Pro SP3. Developing against http://localhost/ everything including debugging works fine.I need a second website on my machine. IIS 5.1 only allows one website at a time so I used the JetStat XP Pro IIS Admin tool to create a second website. This runs by stopping the Default website and starting the other have added the new website name into the Hosts file and mapped to 127.0.0.1.
View 3 Replies
Jun 3, 2010
I get this error when I hit F5 in VS 2008. I have checked that Windows authentication is enabled on the site and it is. I can mannully attach the debugger to the IIS process and it works. What could be wrong? I have tried alot of things without success.
View 2 Replies
Mar 7, 2011
I'm trying to debug my web application on my localhost machine in Visual Studio 2010 and I keep getting this error: "unable to start debugging on web server. The Microsoft Visual Studio remote debugging monitor(MSVSMON.exe) does not appear to be running on the remote computer."
Is there a way I can turn this off as I'm not trying to make any attempts debugging remotely.
View 1 Replies
Jan 11, 2011
I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging. Unfortunately the help link is not helping me much and leads down a heck of a large tree of things. I checked the following:
Security requirements — I don't recall having to do anything special before. The worker process in IIS7 is w3wp.exe. It says that if it's running as ASPNET or NETWORK SERVICE I must have Administrator privileges to debug it. How do I find out if I need to change something here? Web site Property Pages > Start Options > Debuggers > ASP.NET is checked. Use custom server is set to the URL of the site (which works fine without debugging). Debugging is enabled in web.config. Application is using ASP.NET 3.5 (I want to move to 4.0 eventually but I have some migration to deal with). Application pool: Classing .NET AppPool (also tried DefaultAppPool). Surely it shouldn't be that hard to install IIS, VS, create a web site, and start testing it?
View 2 Replies
Jun 10, 2010
After migrating my app to .NET 4 it's not starting. When i'm trying to load it in browser it endlessly loading it and nothing else happening. There is no errors or timeouts, just loading.
View 2 Replies
Dec 8, 2010
It is possible to have WCF Client that connects persistantly using duplex over net.tcp (netTcpBinding) from IIS?i.e. the normal way would be to host it in a console app or as a windows service, my question is, could one use a shared hosting type of environment to run a WCF Client application. i.e. the application isn't ever accessible from the outside, the application just connects to another service and consumes a remote WCF service over the internet.
View 1 Replies
Feb 26, 2011
While Ive seen plenty of examples in PHP, can't seem to find one in VB, I want to know if this is even possible.
I have a page, a session starts on page load (using global.asax) the user may not move from (or interact with) that page for a long while and I dont want to increase the session timeout. When the session times out after say.. 20 minutes, I want to start a new one, without moving from the page.
I also don't want constant keep-alives
I want to do it via another method (timer, button press...)
View 1 Replies
Feb 14, 2010
At the moment I am starting to learn Silverlight. I have expriences in ASP.NET and like the concepts of "Masterpages. Does Silverlight provides a similar concept ? I have read a little bit about the Silverlight Navigation Framework. Is this a good replacement for "Masterpages" ?
Makes it sense to combine ASP.NET and HTML (with Javascript) with Silverlight or is it more recommandable to design and write pure Silverlight applications ? Mybe in the ner future I will start to develop an intranet (business) application which will have many and complex user interaction (it should behave like a windows client applicion). I think Silverlight is the better choice than ASP.NET !? Makes it sense also to start to use/learn the WCF RIA Services immediatly ? Are there good (VS) templates to start with Silverlight or which are a good basis / starting point for a new Silverlight application ? Unfortunately I am missing "Starter kits" on [URL] like the starter kits on www.asp.net !
View 3 Replies
Jan 8, 2010
which is the best for starting up a new project in ASP.Net MVC? I have added this question as to know what are the different options.
View 4 Replies
Apr 13, 2010
I have the following code:
public void BeginConvert(object data)
{
ConverterData cObject = (ConverterData)data;
string argument = string.Format("-i "{0}" -b {1} "{2}"", cObject.Source, compression, cObject.Destiny);
Process converterProcess = new Process();
converterProcess.StartInfo.FileName = ffPath;
converterProcess.StartInfo.Arguments = argument;
converterProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
converterProcess.Start();
converterProcess.WaitForExit();
}
I use it in a webservice, i start it in a new thread and it return exit code 1 (error, i'm trying to do a video convertion with ffmpeg library), i impersonate ASP.NET to use a local account with permissions to read and write files, when i run it in my machine running or debugging it works but know thta the web service is running in IIS doest'n.
View 1 Replies
Jun 4, 2010
I have a Expression ($ASMLNA$ * $TSM$ * 8 * ($GrossDownTarget$ * $005930K$)+15)Now I am trying to get all the variables which is between $ $. Example $ASMLNA$ so for me it should give ASMLNA.I have tried using RegEx and this is what I have been able to do till now
Regex r = new Regex(@"[^$]");
string Contents = txtRegEx.Text.Trim();
MatchCollection ImageCollection = r.Matches(Contents);
[code]...
View 2 Replies
Oct 27, 2010
I have written the following code in my web application to start the sql Job
[code]....
what could be the cause of this error. The same code and same ddl its running great in my local PC but it is erroring out when the website is deployed to the web server.
View 3 Replies
Sep 4, 2010
I'm starting a port of an existing ASP.NET Web Forms CMS to ASP.NET MVC and want to get the routing right from the start.Note: it isn't important to have the exact same URL structure.I think this answer is close to what I'm looking for but would like some additional input should anyone have it.
?Content=News/CurrentNews/This_is_a_news_article
?Content=Corporate/About_Us/Overview
[code]...
View 1 Replies
Mar 25, 2010
I'm having my first experience with Web Services with .Net. I received from a client an integration manual to consume a web service they have.
In this manual I have the following information:
Request Interface: [URL]
Using SOAP request would return a XML Document with the response.
WSDL: [URL]
Request XML:
[Code]....
There's also XSD for the response XML.
Well, I'm having a little trouble trying to figure out how to consume this web service.
I found a topic here pointing to a MSDN article. There it says that I would have to add a Web Reference for this web service, but in my case this web service is external. Do I really have to add this reference to consume the web service? If yes how do I do that?
Next I have to create the XML Document that will be sent with the SOAP request. But here's a question. Searching on the internet I found mainly two types of request XML. I don't know wich one I should use.
The first one would be:
[Code]....
The second one is a XML file with soap:Body, soap:Header, soap:Envelope, etc.
Wich one should I create with my application in order to consume the web service? If it's the second one, how would look the XML for the data of the first XML?
And finally, how do I send the Soap request? As I said above, I found a MSDN article but it assumes I'm adding a web reference to the web service on my project and I belive that in my case I won't add this reference. So, how do I consume this web service?
I'm kind of lost here and really really soon I will have to estimate how long will take to develop the web service consume code.
View 3 Replies
Jun 17, 2010
The following code for the menu I have in my master page:
<asp:SiteMapDataSource runat="server" ID="SiteMapDataSource" StartFromCurrentNode="false" ShowStartingNode="false" SiteMapProvider="SiteMap" />
View 2 Replies
Feb 10, 2011
I normally debug my web applications using a local copy of iis. Today while testing that code I suffered a couple of stack overflows. Following that visual studio failed to connect to iis to debug further. After rebooting I was again able to debug my web projects against iis. The annoying problem I have now is that the asp.net development server (Cassini) also starts up when I click start debugging. Does anybody have any idea what could be causing the unwanted server start? I've checked my app properties and use visual studio development server is not checked.
View 2 Replies
Jun 24, 2010
I am working on ASP.NET 2.0, I have a list of books Name in my master table, while entering new book name in Textbox I want to display the book names starting with those initial characters. How to achieve this.AJAX, silver light.Etc.google like feature..
View 5 Replies
Dec 28, 2010
So it is time to use some pages i have to a master page.I have limited usage with master pages so i will write some concerns here so i could get some answers cuz i don't want to start breaking stuff on xmas days.
Of course i will give it a go on my own but it will be good to know what problems must be aware of before i start.If someone knows of them.
So i have a concern about page transfer.
I do a post and on the page to go to i use "<%@ Reference Page="~/thepage.aspx" %>"
Will this go on the master page or on the page to be transferred to?
Also i had an issue with the below command:
Dim result = CType(Context.Handler, _Default) .
Apparently asp is quite funny sometimes and it has blued out the code saying, eerrr, can quite remember but something like the page cannot be found or something.Haha.Very funny.I copy pasted all the code to a new page, deleted the old one and renamed and it worked.So if this happens if i embed the page to a master page, will the copy paste technique will work again or i need to modify the master page also?
Another concern is about the daypilot calendar(Gary? ) it's a heavy ajaxed page using panels,:UpdatePanels,ajax,javascript,server manipulation,SqlDataSources etc. I don't expect most of you to know this but will there be a problem by putting the daypilot design interface inside a master page.This page is so complex that i prefer not to use it inside a master page if i suspect that something is wrong.
Paypal concern.I have read somewhere that you cannot use 2 form tags and master page will give errors.However my approach is using a StringBuilder and doing AppendFormat to finally create an iconic form.So has anyone tried this to a master page?Will it work.
Viewstate.I use viewstate encryption when i use viewstate.Will it work on a page inside the master page?
View 2 Replies
Jun 29, 2010
I'm using ASP.NET page methods to check for the updates. I'm using inproc sessions and windows authentication in IIS 6. When page is loaded, a session is started. But sometimes when the page method is called it starts a new session(created with current request return true also). Why that might happen ?
View 2 Replies
Dec 21, 2010
First of all, I'm not a pro on IIS configuration topic.With that being said, I got a website written in VB.NET 3.5 Web Forms. I have a small web service, ASMX, running as a part of this website. One page on the website calls the web service with AJAX (jQuery $.ajax function, post). The server is running Windows 2003 and IIS 6.0. The website and the web service are sharing the same Application Pool.
View 2 Replies