I have a project in VS 2010 and works great in my dev environment, including a single post that has the def:
[Code]....
But when I publish to another box, I get an error "Could not instantiate file name generator.". This only occurs on the post, all the other ActionResults work fine.
My application is working fine in local environment but not working after push code in live. My locale environment and hosting environment both are having same configuration. Same app working fine 2 month before but in different domain but same hosting server.
how to check the both config / any possible to run debug mode in hosting server please let me know. below code used in all page for checking user session status but when I click on any link page redirect to login.aspx I think session got timeout. I don't know why session got time frequently, but this issue not happening in local environment (desktop).
I developed a web page using asp.net 2.0 and ajax toolkit on my laptop on Windows 7 and IIS 6. I have my ajax/atlas toolkit DLL in my bin. The updatePanel works fine and does not postback my page. But when i hosted my website on a dedicated server the page postback totally like i have no updatepanel/ajax in my page...
I am using : Windows server 2008, IIS 6Ajax 2.0 installed on the server. I don t understand what is the difference with windows server or IIS or something else?
have added an asp menu to my site which i populate depending on the user/group from an entity framework object using a re-entrant function. This successfully adds menu items with associated child menu's to level n in the development environment.The problem comes when i publish to the server. when i view the published site the menu view changes and instead of a nice neat menu bar it shows a big list of the correct menuitems in a flat structure blanking out the rest of the page(asp menu is set to horizontal normally)server - windows server 2003 x64 - iis6 - asp 4.0.30319 + net4 framework packsdev - windows 7 - Visual studio 2010i am checking both sites with the same browsers so its not a browser issue.
I am sorry to be asking what is probably a really stupid question, but i have a problem with my asp menu, when i run it on my dev machine(thru vs2010) it works perfectly, all the menu's are displayed correctly with the correct child items in the correct order but when i publish it to the server all the menu items become flat and take up the whole page. I am populating the menu using a reentrant function as follows to call the function and add the menus i am using
Dim childMenuItems As List(Of MenuItem) = CreateMenuLevel(0, uniquemenulist) childMenuItems.ForEach(Sub(n) NavigationMenu.Items.Add(n)) Public Function CreateMenuLevel(ByVal parentId As Integer, ByVal menulist As List(Of MenuList)) As List(Of MenuItem) Dim menuItems As New List(Of MenuItem) For Each menuListItem As MenuList In menulist.Where(Function(n) n.ParentId = parentId) Dim MenuItem As New MenuItem If (Not String.IsNullOrEmpty(menuListItem.PagePath)) Then MenuItem.NavigateUrl = menuListItem.PagePath End If MenuItem.Text = menuListItem.MenuName MenuItem.Selectable = True MenuItem.Enabled = True menuItems.Add(MenuItem) Dim childMenuItems As List(Of MenuItem) = createMenuLevel(menuListItem.MenuId, menulist) childMenuItems.ForEach(Sub(n) MenuItem.ChildItems.Add(n)) Next Return menuItems End Function
now as i say this all works fine in the dev environment so i dont think its a coding issue unless i am missing something mad.
server 2003 x64 iis 6.0 asp 4.0.303.19 relevant .net 4 framework packs installed dev environment visual studio 2010
am using the same browser for to check both dev and server
I need to retrieve the windows login name in my asp.net application.
I put System.Environment.GetEnvironmentVariable("UserName") in and it works only when I am debugging my application. However, when I try to run it from the url, and do a response.write it gives an empty string for the "username",how I can get this to work?
I made an aspx site with .net 4.0 framework through visual studio and it worked perfectly in the development environment but when I upload it to the server and try to run it I get this error: Server Error in '/' Application. Runtime Error Does anyone have an idea on how to fix this?
I'm trying to save and update contacts. I can add new contacts, but when I try to update a contact it will be inserted as a new contact in the database. I can't understand what I'm doing wrong.
I am using Facebook Toolkit. I have appKey and appSecret, but I dont want that visitor need to conenct to facebook. I will use my login/passwork to get my wall posts.
I am doing my final year project and have decided to make a website in asp.net. For that I'll be using Micrsoft Visual Studio 2008. I'm making a Real ESTATE properties website. I want to know how to localize or create new posts in asp.net( like in WORDPRESS) and also when I hit SEARCH it should search for the desired keyword or the searched post.
If post is not possible then it should display pages...
On my site I've got a section which displays the latest tweets from my twitter account. I used Twitterizer to read latest tweets from my account and bind them to a Repeater However, with Twitter's new security, I can't use this as I must use oAuth.
What is the best way of returning tweets from an account?
I am working on asp.net. and i want to implement partial posts in my application. my situation is like that i dont want to url changed in address bar and even page should not refreshed at all.
for that i used script manager and update panel but still page refreshes and url also changes.
post - postid(pk), topicid(fk), post (content), createdby, createddate, updatedby, updatedon.
As i told in my last post, I am designing a forums website. I am not able to design the query to retrieve the topics for a category for example say catid=1. I want to display it in a grid view as done in every forums.
I made some query :
SELECT Topic.Sub, Topic.CreatedBy,COUNT(Topic.viewers) from topic where catid=1
group by Topic.Sub,Topic.CreatedBy
This is for retrieving the topic name from the subject and the createdby giving the topic starter and the total no. of views of that topic.
Now i want to make a query from the post table displaying the last post in the topic and if the post does not exist, i want to display the 1st post from the topic table as the last post done.
I have an asp.net login page, which when initialized sets some session variables. When the user clicks login, an AJAX request is made which validates the user and sets additional session variables and returns a result to the client. The client is then redirected based on the login result. In the redirected page, I can access the session variables set when the login page was initialized (i.e. before the login) but none are present for those set during the login validation (part of an ajax call).
is this expected behaviour? Why would an ajax call generate a new session and thus cause the data to be lost?
Basically, I would like to include my latest Wall posting on my website. But, so far, everything I have read needs the visitor to the site to log-in to Facebook which, in theory, would then retrieve their latest Wall post. In prinicpal, I guess it would be like an RSS Feed.
Does a response.Redirect first postback to the page that's calling the redirect before actually redirecting? I don't think so but my debugging is showing me that it is.
I can see it doing so and that causes me a problem. The problem is this:
1) My page has an asp.net button on it 2) When the button is clicked, the page posts back of course. Then the following is called in the event handler method for that button:
Response.Redirect("Checkout?frpp=1"), true);
3) But I notice that when the redirect is called, it first goes back and hits the page load for this page, the page that's doing the redirecting. Well that is causing me problems because it's calling code that I don't want it to be calling again such as this:
if (!IsPostBackl) ShowOrderItems();
so it's like I'm doing a 2nd postback:
first postback happens when you click the button, hits the event handler, runs my handler method which calls the Redirect. Redirect is called but it's doing another postback to the same page here..why?
i have looked all over the forum but i cant find what im looking for, so here it goes:I need to create some sort of newsletter system that works like ths:User has 3 options (subscribe to):1. all new posts 2. comments on a specific post 3. all comments All i could find on forum and google was a newsletter system that an admin can use to send newsletters, but i need it to be automatically when someone posts a new post/comment. Mostly something like forums.asp.net is using :)Using vs 2005 express / c#.
I've been looking at google for the past few hours, trying to find an issue to a apparently simple problem. I have a UserControl named RolloverLink that basically contains a asp:LinkButton and a <img /> . I tried setting the OnClick handler like this:
[code]....
I put a breakpoint in the propagate method, but it doesnt stop there. The page does post back (it flashes), but the event doesn't get called.
I have a website where people can send an email to a group of people and then choose to have that letter posted on our website.
The problem has now become that I get so many of them, I can't keep up with doing it manually. What I'd like to do is have it go to a database and then have it automatically update the site. So, one page will have "teasers" with the Author's name, etc and a few lines of the letter and then it links to another page that has the entire letter.